For
Last updated
Was this helpful?
Last updated
Was this helpful?
Description & usage:
This action in Avo Assure is available under the @Generic element. It instructs the Avo Assure client to iterate the given block of test steps as it executes as per the provided number in the input column. It is mandatory to use the End-for action along with the For action else dangling error will be reflected on the client and the test case will fail.
Syntax:
Input: <Number>
This number describes how many time the loop will iterate.
Output: <Dynamic Variable>;<Dynamic Variable> (Optional)
Usecase/Example:
Scenario: Display users name repeatedly
In this scenario, users are testing a feature in a web application that can correctly display the user's name multiple times, simulating a scenario where you might want to greet the user several times.
In this scenario, the for loop repeats the given message for desired number of iterations.
In For loop Input value, the user needs to specify how many iterations required. Once the execution starts, it will display the given message for number of iterations, which is given in the for-loop Input Value.
Input: The user wants to display the name five times.
Display times = 5 times
Name = John
Expected result: It needs to display the given name five times.
Output: The given input name ‘John’ will display 5 times.