ParallelUtil Object
A utility test object for use in web and mobile parallel test runs, using the ParallelRunner command line too.
StartIsolatedExecution method
Description
Use this method to start a section of isolated test steps, protecting them from interference from other tests running in parallel.
Steps are run in isolation until OpenText Functional Testing encounters the StopIsolatedExecution method.
When used:
- Only the isolated block of code is executed from all tests currently running in parallel.
- If multiple isolated blocks are started from different parallel threads, they are each run one by one.
- Scripts that not running in parallel are not affected by the isolated blocks.
Note: This method only works when running tests in parallel. For details, see the OpenText Functional Testing Help Center.
Syntax
ParallelUtil.StartIsolatedExecution
Example
ParallelUtil.StartIsolatedExecution
Browser("Advantage Shopping").Page("Google").WebEdit("Search").Click
Dim mySendKeys
set mySendKeys = CreateObject("WScript.shell")
mySendKeys.SendKeys("Values")
ParallelUtil.StopIsolatedExecution
StopIsolatedExecution method
Description
Stops running test steps in isolation, as was started by the StartIsolatedExecution method.
Note: This method only works when running tests in parallel. For details, see the OpenText Functional Testing Help Center.
Syntax
ParallelUtil.StopIsolatedExecution
Example
ParallelUtil.StartIsolatedExecution
Browser("Advantage Shopping").Page("Google").WebEdit("Search").Click
Dim mySendKeys
set mySendKeys = CreateObject("WScript.shell")
mySendKeys.SendKeys("Values")
ParallelUtil.StopIsolatedExecution