Created
December 1, 2020 13:33
-
-
Save nicolek6/a250d5e69b03336133af422a53ebf34d to your computer and use it in GitHub Desktop.
Using a custom function to implement load test profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addStepScenarios(min, max) { | |
let scenarios = {}; | |
for (let current = min; current <= max; current++) { | |
scenarios[current] = { | |
executor: 'constant-vus', | |
vus: current, | |
startTime: current - 1 + 'm', | |
duration: '1m', | |
}; | |
} | |
return scenarios; | |
} | |
export const options = { | |
scenarios: addStepScenarios(1, 10), | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was written by Simme Aronsson.