Hello @eyeveebe How are you?
I had a new situation here
so i was using
export const options = {
scenarios: {
login: {
executor: 'per-vu-iterations',
vus:20,
maxDuration:'20s',
},
},
And my expectation was when i run this command , 20 second time should be divided between 1 VU , basically 1 VU= 1 Second , but when i checked logs - i was getting
running (16.7s), 00/20 VUs, 20 complete and 0 interrupted iterations
login β [======================================] 20 VUs 16.7s/20s 20/20 iters, 1 per VU
so instead of running for 20 seconds , it completed in 16.7 seconds what could be the reason?
2- And also i wanted to know if i am using per-vu-iteration executor
and i want to run it in stages
like my ./data.json file has 1200 users and i want to run 1200 users for 2 hours for example - i give following command
export const options = {
scenarios: {
login: {
executor: 'per-vu-iterations',
vus: data.length,
maxDuration: '20s',
},
And in default function :
export default function () {
const importData = data[vu.idInTest - 1];
}
//code
Now i want to run it in stages ,
export const options = {
scenarios: {
login: {
//executor: 'per-vu-iteration',
executor: 'ramping-vus',
stages: [
{ duration: '1h', target: 200 },
{ duration: '1h', target: 250 },
{ duration: '30m', target: 300 },
{duration: '30m', target: 400 },
],
},
},
is it possible to use stages with per-vu-iteration?
Also , how if i want to Achieve - running 100 VU for 100 minutes , then 1 VU should be executed every 1 minute. How can this be acheived?