For
This is a pre-built Action located under the @Generic Element. The functionality of this action in Avo Assure is to iterate the specified block of test steps based on the number provided in the input column. The result is stored in the given dynamic variable for further use during test execution.
Syntax
Input Value: <number>
<number> (Required)
Provide the number of times the loop should iterate.
Output Value: <Dynamic Variable>;<Dynamic Variable>(Optional)
<Dynamic Variable> (Required)
This dynamic variable stores iteration count.
<Dynamic Variable> (Optional)
This dynamic variable stores the status as True or False.
Example : Starting a Loop for a Defined Number of Iterations
In this example, we explain how to begin a loop that repeats a specific number of times.
Action: For
Input Value: 5
The argument (5) specifies the number of iterations for the loop. This defines how many times the actions inside the For block will be executed during test execution.
Output Value: {Status}
The result of iteration count (5) is stores in the {Count} variable.
If a second output variable is defined, then it stores the action status with the following possible values:
True: If the loop starts and executes successfully.
False: If the loop does not start.
Logical Explanation: The For action reads the value from the Input Value column (5) and starts a loop that repeats the enclosed steps exactly five times. Each iteration executes the actions inside the For block sequentially. After completing the defined number of iterations, the flow continues with the steps that follow the End-For action. The result of iteration count (5) is stores in the {Count} variable.

Last updated
Was this helpful?