definition variables when them are not exist yet
In my TC project I have created file "definition".
it contain such definitions of variables:
main_menu = Sys.Process("OptionsWorkshop").WPFObject("HwndSource: MainForm").WPFObject("MainForm").WPFObject("DockPanel", "", 1).WPFObject("ToolBarTray").WPFObject("FeaturesToolBar");
... and others.
So, when I run the first file of my test:
function PLZ_cnct()
{
TestedApps.OptionsWorkshop.Run();
or
TestedApps.OptionsWorkshop_Launcher.Run(1, true);
...some code...
}
... I have got an error in the line:
main_menu = Sys.Process("OptionsWorkshop").WPFObject("HwndSource: MainForm").WPFObject("MainForm").WPFObject("DockPanel", "", 1).WPFObject("ToolBarTray").WPFObject("FeaturesToolBar");
... in definition file.
The error means that test try to find main_menu object before starting the app.
How can I explain to TC that to find defined variables after starting?