Marking Steps For Parallel Execution
TestComposer script steps can be executed both sequentially and in parallel.
Running a step in parallel basically entails creating a new thread for the parallel step and then advancing the execution flow to the next step, without waiting for the parallel thread to finish first.
To mark a step for parallel execution:
The step is highlighted in the Script Steps table.
At step creation time, a parallel step is assigned an Id that can be used subsequently in Join statements to force the step termination. Since this Id has a global scope, no two active threads with the same Id can exist at one time.
For example, assuming we had a RunProcedure step inside a For loop, such as in the following example:
For i in {0 9 1}
RunProcedure P1 // parallel step
EndFor
then a thread is spawned for the first procedure call, but no threads would be created for the rest of calls, since a thread Id needs to be globally unique.
IxLoad TestComposer │ User Guide |