beautypg.com

Example: simple repeat loop – MTS Multipurpose Elite User Manual

Page 443

background image

Example: Nested Repeat Loops

(p. 444)

Creating a Repeat Loop that uses a Loop Index Variable

Follow these steps to configure a Repeat Loop activity that uses a Loop Index variable.

1. Click and drag a Repeat Loop activity to the desired location in the test workflow.

2. Enter the number of times you want to repeat the loop in the Total Count box. You can enter a constant

value or select a variable.

3. Select an option from the Loop Index Variable list:

Create a at the point of use.

Select a variable previously created for the Repeat Loop. You can define a variable with the Type
of Number, Dimension is Count, and Unit of (count) for this purpose.

4. Drag the subactivity you want to repeat into the Repeat Loop container. Repeat for each activity you

want repeated.

5. If needed, select an activity or activities to exit the loop early from the Exit at the End of property.

For More Information

Concept

Repeat Loop Activity Overview

Reference

Repeat Loop Activity Properties

(p. 441)

Example: Simple Repeat Loop

(p. 443)

Example: Nested Repeat Loops

(p. 444)

Example: Simple Repeat Loop

The following test procedure illustrates a simple Repeat Loop mechanism. The Repeat Loop repeats the
Calculate Variables and Wait subactivities five (5) times. The Calculate Variables activity calculates the
count value for the calculated variable LoopCount03, and updates a corresponding variable meter value
in a test-run display. This example test provides a way to check that the loops are repeating and the
variables are updating as expected.

MTS TestSuite | 443

Test Activities