Using multiple scenarios
This configuration will first execute a scenario where 50 VUs will try to run as many iterations as possible for 30 seconds. It will then transition to the next scenario, executing 100 iterations per VU for a maximum duration of 1 minute.
Note the use of startTime, and different exec functions for each scenario.
Different environment variables and tags per scenario.
In the previous example we set tags on individual HTTP request metrics, but this can also be done per scenario, which would apply them to other taggable objects as well.
Note that by default a scenario tag with the name of the scenario as value is applied to all metrics in each scenario, which can be used in thresholds and simplifies filtering metrics when using result outputs. This can be disabled with the --system-tags option.
Multiple exec functions, tags, environment variables, and thresholds
A test with 3 scenarios, each with different exec functions, tags and environment variables, and thresholds: