Load scenario generator

Generate baseline load scenario templates for JMeter and k6 using users, ramp-up, duration and think time inputs.

Scenario input

Generated scenario overview

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.

Generated output

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);
}

What this generator creates

It creates practical text snippets that speed up initial JMeter and k6 scenario setup.

JMeter scenario basics

Thread Group
- Number of Threads = virtual users
- Ramp-Up Period = ramp_up_seconds
- Scheduler Duration = duration_seconds

For k6, the generated script uses a ramping-vus scenario with stage-based load profile.

Example

Use a short ramp-up for smoke tests and longer ramps for realistic traffic transitions. Keep think time aligned with user behavior.

FAQ

Does this export .jmx?

No. V1 generates copy-ready text parameters only.

Is generated k6 code production-ready?

It is a starter snippet and should be extended with checks and thresholds.

Can I model multiple steps?

Not in this version. Use one baseline flow and extend manually.