Skip to end of metadata
Go to start of metadata

A Loop will execute its child objects multiple times within a test case iteration. Thus, loops allow simplifying recording test scenarios consisting of repeated actions.  

 To create a loop, perform the following steps:

1. Go to the Build Test Case node.

2. Select the starting page, top-level request, or transaction

3. Open the Context Menu by right-mouse clicking.

4. Click Create Container -> Create Loop.

Quick Create:

Another way to create a loop is to select multiple objects in the test case tree -> right-click -> select Create Loop. That will create a loop around the selected objects.

5. A new loop dialog will appear.

6. Select the last request or transaction in the loop.

7. Give it a meaningful description (optional).

8. Click Create Loop. A basic loop will be created. To change the loop definition, click Edit on the toolbar.

9. Set the Number of Repeats property to a constant or an expression that, when evaluated, will return the number of loop iterations. See here for an example of how to iterate through a multiple occurrence extractor.

Note:

If the expression does not evaluate a positive integer, the loop and its child objects will not execute.

10. Optionally, specify in the Delay before next Loop property the number of seconds injected before starting the next loop cycle.

11. To increment the index for iteration-bound datasets on every loop iteration, set the Increment the index for iteration-bound datasets property to Yes. For more information on databinding, see Databinding.

 





  • No labels