Skip to content

Instantly share code, notes, and snippets.

@nicolek6
nicolek6 / addstepscenarios.js
Created December 1, 2020 13:33
Using a custom function to implement load test profile
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',
};
}