ParallelUtil Object
A utility test object for use in web and mobile parallel test runs, using the ParallelRunner command line too.
In this topic:
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 UFT One 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 UFT One Help Center.
Syntax
ParallelUtil.StartIsolatedExecution
Example
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 UFT One Help Center.
Syntax
ParallelUtil.StopIsolatedExecution
Example