The For Loop operation executes child operations for the specified number of times in a loop.
The operation does not return any value.
The operation is analogue to the
The operation can have any other operation as a child (or children).
For information on how to make an operation a child of another operation, see the description of the Keyword Test editor’s Test Steps page.
The operation has the following parameters:
Before running the loop, TestComplete assigns Start Value to Loop Variable and then starts executing child operations in a loop until the loop variable is equal to the End Value parameter. On each iteration the loop variable is increased on a value specified by the Step parameter (if Step is negative, the loop variable is decreased).
Once the Loop Variable is greater than the End Value (or less than the End Value, if Step is negative), the loop is over and TestComplete proceeds to the operation following the For Loop operation. Note, however, that you can exit from the loop earlier by using the Go to Label operation.