Forum Discussion
AlexKaras
Champion Level 2
13 years agoHi Ilija,
Use the OnStartTest event (http://support.smartbear.com/viewarticle/11118/ and http://support.smartbear.com/viewarticle/15535/) to populate the variable with the data. The event is triggered when TestComplete starts a test run and with a simple check you can test if the variable was already initialized or not. The variable should be either ProjectSuite or Project of object type. Variable of object type does not mean that it stores a reference to some object of the tested application, but means that the variable can store the reference to any programmatic object or entity (http://support.smartbear.com/viewarticle/18921/ and http://support.smartbear.com/viewarticle/11858/).
Use the OnStartTest event (http://support.smartbear.com/viewarticle/11118/ and http://support.smartbear.com/viewarticle/15535/) to populate the variable with the data. The event is triggered when TestComplete starts a test run and with a simple check you can test if the variable was already initialized or not. The variable should be either ProjectSuite or Project of object type. Variable of object type does not mean that it stores a reference to some object of the tested application, but means that the variable can store the reference to any programmatic object or entity (http://support.smartbear.com/viewarticle/18921/ and http://support.smartbear.com/viewarticle/11858/).