๐ LLM HUB ยท 3 PROMPTS
k6 Script Generation
3 copy-ready AI prompts for k6 script generation in JMeter, k6, and Gatling. Part of the JMeter.AI LLM Hub.
k6 Load Test Script for REST API
Generate a complete k6 load test script in JavaScript/TypeScript for: Base URL: [https://api.example.com] Authentication: [Bearer token / API Key in header] Scenarios to test: 1. [GET /endpoint]. [description] 2. [POST /endpoint]. body: [JSON] 3. [PUT /endpoint]. [description] Requirements: - Use k6 scenarios with executor: ramping-vus - Stages: ramp-up [N]s, hold [N]s, ramp-down [N]s - Thresholds: http_req_duration p95 < [N]ms, http_req_failed rate < [N]% - Custom tags per request - CSV parameterization using SharedArray - Check status codes and response body - handleSummary to export JSON report
k6 Scenarios Configuration
I need k6 scenarios for a mixed workload with different user behaviors: Scenario A (Browse): [N] VUs, [description], weight [N]% Scenario B (Checkout): [N] VUs, [description], weight [N]% Scenario C (API): constant-arrival-rate, [N] RPS, [description] Generate the k6 options object with: - Per-scenario executor, VUs, duration, gracefulStop - Shared thresholds and per-scenario thresholds using tags - GracefulRampDown configuration - Console output explanation
k6 to JMeter Conversion
I have this k6 script: [Paste k6 script] Convert it to an equivalent JMeter test plan (JMX). Preserve: - Load profile / stages โ Thread Group ramp-up - Thresholds โ Response Assertions + Duration Assertions - Checks โ Response Assertions - CSV parameterization โ CSV Data Set Config - Custom tags โ Transaction Controller naming Also highlight any k6 features that have no direct JMeter equivalent and suggest workarounds.