Skip to content

Loop

This task executes the wraped tasks for all values in provided list.

All task created between step_task_loop_start and step_task_loop_end will be wrapped in this instance and executed for all values in the provided list (must be in JSON format).

Step implementations

Statistics

Executions of this task will be visible in locust request statistics with request type LOOP and name is suffixed with (<n>), where n is the number of wrapped tasks. Each wrapped task will have its own entry in the statistics, see respective Tasks documentation.

Arguments

  • name str: name of the for loop, used in locust statistics

  • values str: Templating string which must be valid json and render to a list of values

  • variable str: name of variable that a value from input_list will be accessible in