While loop execution allows you to repeat a step based
on a condition.
To implement a step as a while loop:
- Set the step type to While Loop.
- Set Condition to a command or an expression that can be evaluated.
- Fill in the command to be run.
- If desired, specify an inline to run. (You can leave Command blank
if Inline is set.)
- If desired, set Max Iterations to the maximum number of times
you want the step to run. Use this limit during development until
you are satisfied that the condition you specify works correctly.
The default is 100.
- If you want the step to fail if Max Iterations is reached, set Fail
step if max reached to Yes. Otherwise the step passes
when Max Iterations is reached.
Each iteration of the step is recorded in the log. Each iteration
result is set to Pass or Fail according to the Result criteria.
See also Condition functions.