loop

Repeats a set of steps fixed number of times.

Repeats a set of steps fixed number of times.

This step is supposed to be inserted as the first step of a sequence and the counterVar should not be set during the first invocation.

Before the loop the counterVar is initialized to zero, and in each after the last step in the steps sequence the counter is incremented. If the result is lesser than repeats this sequence is restarted from the beginning (this is also why the step must be the first step in the sequence).

It is legal to place steps after the looped steps.

Example:

scenario:
- mySequence:
  - loop:
      counterVar: myCounter
      repeats: 5
      steps:
      - httpRequest:
          GET: /foo/${myCounter}
          # ...
      - someOtherStep: ...
  - anotherStepExecutedAfterThoseFiveLoops
PropertyTypeDescription
counterVarStringVariable holding number of iterations.
repeatsintNumber of iterations that should be executed.
stepsBuilderList of steps that should be looped.

Last modified October 23, 2024: docs: fix local log path (ee5a09f)