beautypg.com

Repeat loop activity properties – MTS Multipurpose Elite User Manual

Page 441

background image

In contrast to the While Loop activity, the Repeat Loop activity uses an explicit loop counter. For those
who are familiar with programming languages, the Repeat Loop is analogous to a For loop in C, Java, and
several other languages; and to a DO loop in legacy languages such as FORTRAN.

Note:

If you need to configure an infinite loop, use the While Loop activity.

Use the Repeat Loop activity to repeat the loop and perform the test activities within the loop by the
number of times necessary to achieve a desired result. You can configure the repeat loop with a Total
Count
property. The repeat loop iterates from zero (0) to its total loop count and then exits to the activity
immediately following the loop. For each iteration, the repeat loop executes the activities contained within
the loop. The Total Count property can be set with a positive integer constant at test design time or with
an integer variable with the Count dimension and units.

A Repeat Loop activity must have at least one subordinate test activity contained within it or a validation
error is displayed in the Error list.

Repeat Loop Activity Properties

Repeat Loop Activity Properties

Description

Property

Indicates the number of times to repeat the loop. You
can enter a constant count value, select an existing

Total Count

count variable, or create a variable at the point of use
(the New Numeric Variables properties are
pre-populated; you can adjust as appropriate).

The Repeat loop iterates until the Total Count value
is attained, unless an Exit at the End of activity has
been selected to prematurely exit the loop
immediately when it encounters the first selected
activity or activities in the workflow.

Default: 1

Zero iterations of the loop are allowed. The loop count
can be set to zero (0). With the loop count set to zero
(0), the activities within the loop are skipped and the
workflow continues with the activity at the end of the
loop. Using a counter variable for the loop count, it
is possible to decide at runtime to not execute the
repeat loop; that is, skip the repeat loop, by setting

MTS TestSuite | 441

Test Activities