I tried to increase the number of Count in the Tested Application and in
script wrote TestedApps.RunAll()
My application is a desktop app built in Delphi. When the script was run
it launched 5 instances of the Application but only one of them was only
able to excute the script ahead other 4 were just launched.
How do I manage to run all the instances at the same time.
To reference a particular instance of the app, you need to reference the correct process object for that instance.
I would suggest, so that you get the proper references, something like this. This probably will need tweaking, etc, and should not necessarily be used as is. This is just an example:
<font class="small">Code:</font><hr /><pre>
lAppObj := Evaluate('TestedApps.' + AppName);
Result := lAppObj.Run;
This function will return the instance of the application being run. You would then put this function in a loop that has an index from 1 to TestedApps.AppName.Count and, each time through the instance, assign the process object to a different variable, possibly an element in an array of some sort.
Then, when you want to access a particular instance of your application, just reference the array element for that instance.
HOpe this gets you started in the right direction.