Adding a loop

You can define part of a test as a loop that executes for a specified number of times.

The test may contain the page(s) or page request(s) that you wish to appear inside the loop body. If this is the case, select the page(s) or request(s) in the second step of the procedure and use the Insert action button. To create an empty conditional block at the end of the selected object (test or request), click the object and then the Add button. The following instructions explain the former: adding loops that contain existing test pages or page requests.

To add a loop:
  1. Open the test.
  2. Click a page or a page request. The loop is inserted before the selected page or request and step 4 optionally moves the element inside the loop. Use Shift-click and Ctrl-click to multi-select elements to be moved into the loop body.
  3. Click Insert and select Loop. You are prompted: Would you like to move selected objects into the new loop?
  4. Click Yes or No. The loop is inserted into the test and the Test Element Details area displays the loop definition fields. If you clicked Yes, as shown in the figure, the item(s) you selected is moved under the loop.

  5. Under Test Element Details, enter the desired number of iterations in the Iterations field.
  6. Optionally, check the box beside Control the rate of iterations and fill in the pacing rate preferences. In specifying a number of iterations per unit of time, you set a fixed period of time for the iterations to complete. If you check Randomly vary the delay between iterations, the total delay is randomly distributed. If this box is cleared, an identical delay occurs between each iteration.

Parent topic: Adding elements to a test

Terms of use | Feedback
(C) Copyright IBM Corporation 2005. All Rights Reserved.