Generate a k6 load test script
generate_k6_scriptConvert a structured test plan into a runnable k6 JavaScript script with deterministic templating, ensuring reviewable load tests before execution.
Instructions
Turns a structured test plan (base URL, weighted request mix, load profile, thresholds) into a runnable k6 JavaScript script. Deterministic templating, not an LLM call -- reviewable before running. Returns a runDir that all later steps (smoke_test_script, run_load_test, get_test_metrics) take as input.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes |