Adding a loop to a schedule

A schedule that contains only user groups and tests will run each test in a user group sequentially. Loops provide more sophisticated control than running a simple sequence of consecutive tests. Adding a loop lets you repeat a test for a number of iterations and to set the rate that a test runs.

To add a loop:
  1. In the Test Navigator, expand the project until you locate the schedule.
  2. Right-click the schedule, and then click Open.
  3. Click the item that will be the parent of the loop, and then click Add > Loop.
  4. In the Schedule Element Details section, type the number of iterations that the loop will repeat.
  5. To maintain a set transaction rate for all schedule items that are children of this loop:
    1. Select Control the rate of iterations.
    2. At Iteration rate, enter a number and select a time unit. This sets the actual rate.
    3. Select or clear Randomly vary the delay between iterations. Selecting this box causes the delay to vary slightly, modeling your users more accurately, because they are spread out randomly over a certain period of time.
    4. Select or clear Delay before the first iteration of the loop. Selecting this box staggers the first delay in each iteration, so that you get a realistic mix at the first iteration.
The following schedule contains two loops. Note that the Browse and Bid tests, controlled by the loop, must be children of the loop.
schedule containing two loops
Note: The advantage of adding a loop in a schedule is that the loop is visible. However, you can also add a more granular loop, within a test. For information on adding a loop within a test, see Adding a loop.

Parent topic: Adding elements to a schedule

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