Looping Statements
Note:
Once a test step is added as any of the control statements, it is not allowed to change into another keyword.
In manual view
In script view
The Script view of test cases allows you to programmatically define and handle For or While structure using Groovy or Java language. For more details about looping structures in Groovy, refer to this Groovy documentation: Looping Structures .
For example:
For:
for (def index : (0..5)) { WebUI.acceptAlert(FailureHandling.STOP_ON_FAILURE)
While:
while (varA == true) { WebUI.acceptAlert(FailureHandling.STOP_ON_FAILURE) }