My goal is to run multiple functional test cases in Scenarios script. Each test case only has 1 VUS, 1 iteration. I’d like the test cases to be executed in parallel to save time, but want to have x second interval window.
I only find the following way to achieve my goal where I have to hard code the startTime for each case, which will cause conflicts when multiple developers try to add new test cases.
export let options = {
thresholds: {
failedRequestCounter: [{ threshold: 'count===0', abortOnFail: false}],
},
scenarios: {
TC_1: {
executor: 'shared-iterations',
exec: 'da_TC_1',
vus: 1,
iterations: 1,
gracefulStop: '3m',
startTime: '0s',
},
TC_2: {
executor: 'shared-iterations',
exec: 'da_TC_2',
vus: 1,
iterations: 1,
startTime: '2s',
gracefulStop: '3m'
},
TC_3: {
executor: 'shared-iterations',
exec: 'da_TC_3',
iterations: 1,
startTime: '3s',
gracefulStop: '3m'
},
}
Is there another way to be able to config the interval time window per test case dynamically?