Description
Use the Loop operation to run child operations in a loop for the specified number of times. For example, you can use it to –
-
Run some other scenario (or scenarios) in a loop.
-
Run one or multiple requests in a loop.
-
Simulate user interaction with one or several pages in a loop.
To exit the loop earlier, use the Break operation.
Using the Operation
Position
Number of occurrences: | Unlimited. |
Parent operations: | Any other operation. If the scenario editor displays pages and connections, the operations cannot be placed between a page and a connection. |
Child operations: | This operation can have any other operation as a child. The number of child operations is not limited. The child operations will be executed on each iteration of the loop in the order of their appearance in the Scenario Explorer tree. Typical child operations are Call Scenario, Request, or Page. |
Operation Think Time
The Think Time edit box at the top of the editor specifies the number of milliseconds the operation will wait before it starts executing.
Operation SLA
The SLA edit box at the top of the editor specifies the maximum acceptable duration of the operation, in milliseconds.
Operation Properties
Properties Page
On this page, you specify parameters of the loop:
Count
Summary Page
This page provides summary information on the operation and its child operations like the number of found errors, the list of variables used, and so on. Information on the page is read-only.
Information on Errors and Warnings
You can find information on issues in operation properties in the Summary page. Also, information about the erroneous settings is displayed in the editor’s header area.
See Also
Operation Reference
While Operation
Call Scenario Operation
Break Operation
Recording User Scenarios
Editing Scenarios