Create comprehensive k6 load testing scripts with scenarios and thresholds
Create k6 load testing scripts for:
**Target Application:** {{APP_NAME}}
**Base URL:** {{BASE_URL}}
**Authentication:** {{AUTH_METHOD}}
**User Journeys:**
{{USER_JOURNEYS}}
**Load Scenarios:**
1. **Smoke Test:**
- 1 VU, 1 minute
- Verify script works
2. **Load Test:**
- Ramp up: 0 to {{MAX_VU}} VUs over {{RAMP_UP}} minutes
- Steady: {{DURATION}} minutes
- Ramp down: {{RAMP_DOWN}} minutes
3. **Stress Test:**
- Find breaking point
- Gradual increase until failure
4. **Spike Test:**
- Sudden traffic spike
- Recovery behavior
5. **Soak Test:**
- Extended duration
- Memory leak detection
**Thresholds:**
- Response time p95: < {{P95_TARGET}}ms
- Error rate: < {{ERROR_RATE}}%
- Throughput: > {{RPS_TARGET}} req/s
**Generate:**
- Complete k6 script with all scenarios
- Custom metrics
- HTML report configuration
- Grafana dashboard integration
- CI/CD pipeline commandsOr press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{APP_NAME][{BASE_URL][{AUTH_METHOD][{USER_JOURNEYS][{MAX_VU][{RAMP_UP][{DURATION][{RAMP_DOWN][{P95_TARGET][{ERROR_RATE][{RPS_TARGET]