Hello,
Running into an issue when trying to use stages with an Environment variable. It does not set max users or iterations as it does when using options variable inside test script.
docker run -e K6_STAGE="10s:10,2m:30,30s:0" -i loadimpact/k6 run --include-system-env-vars=true - <script.js
execution: local--------------------------------------------------] servertor
output: -
script: -
duration: -, iterations: 1
vus: 1, max: 1
sets iterations to 1
and max to 1. This causes the test not to run through the full set of stages and finish early. vs
export let options = {
stages: [
{ duration: '10s', target: 10 },
{ duration: '2m', target: 30 },
{ duration: '30s', target: 0 },
]
};
sets iterations to -
and max to 30
execution: local--------------------------------------------------] servertor
output: -
script: -
duration: -, iterations: -
vus: 1, max: 30
I could set max manually to the required value, but have no idea how to set iterations to the equivalent of -
.
Any advice appreciated