I have a single scenario in a script and when I try to override the stages using K6_STAGES env variable or via CLI, I get this error:
/\ |‾‾| /‾‾/ /‾‾/
/\ / \ | |/ / / /
/ \/ \ | ( / ‾‾\
/ \ | |\ \ | (‾) |
/ __________ \ |__| \__\ \_____/ .io
ERRO[0000] There were problems with the specified script configuration:
- executor default: function 'default' not found in exports
Here is the scenario:
scenarios: {
DeliveryOrder: {
executor: 'ramping-vus',
gracefulStop: '30s',
stages: [
{ target: 2, duration: '20s' },
{ target: 2, duration: '30s' },
],
gracefulRampDown: '30s',
exec: 'DeliveryOrder',
},
}
ENV variable that I set: export K6_STAGES="30s:3,40s:4"
When unset the env variable, then the script works fine with the stages defined in the script itself.