Scenario
api-smoke-baseline
Generate baseline load scenario templates for JMeter and k6 using users, ramp-up, duration and think time inputs.
Scenario
api-smoke-baseline
Target
K6
Users
120
Duration
15 minutes
Output is a baseline starter template and should be adapted to your endpoints, assertions and SLAs.
import http from 'k6/http';
import { sleep } from 'k6';
export const options = {
scenarios: {
api_smoke_baseline: {
executor: 'ramping-vus',
startVUs: 1,
stages: [
{ duration: '60s', target: 120 },
{ duration: '15m', target: 120 }
]
}
}
};
export default function () {
// Add your API requests here
// Example: http.get('https://api.example.com/health');
// Requests per iteration target: 3
sleep(1.5);
}It creates practical text snippets that speed up initial JMeter and k6 scenario setup.
Thread Group
- Number of Threads = virtual users
- Ramp-Up Period = ramp_up_seconds
- Scheduler Duration = duration_secondsFor k6, the generated script uses a ramping-vus scenario with stage-based load profile.
Use a short ramp-up for smoke tests and longer ramps for realistic traffic transitions. Keep think time aligned with user behavior.
No. V1 generates copy-ready text parameters only.
It is a starter snippet and should be extended with checks and thresholds.
Not in this version. Use one baseline flow and extend manually.