Forum Discussion
Hi CBleunven, how's going?
I think what you're looking for is the WaitForCompletion parameter of the Run method. If you set it for True, it'll run all of your units simultaneously.
For examples and better explanation: https://support.smartbear.com/viewarticle/72150/
To clarify (as I use distributed testing and love it) "WaitForCompletion" will have the runtime "wait" on that line until the respective job is finished executing. Then continue on with the logic flow. So in th below example TestComplete or TestExecute will wait on the ".Run(true)" line until the remote VM finishes executing the Job.
If it was false, the runtime would quickly start the Job and move on to the next step in the logic flow. It would NOT wait for the Job to be finished.
function Test()
{
for (var i = 0; i < NetworkSuite.Jobs.Count - 1; i++)
NetworkSuite.Jobs(i).Run(true);
}
Related Content
- 4 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago