Back to Prompt Library

K6 Load Tests Script Prompt

Basic k6 script to simulate a spike in traffic.

The Prompt

Write a k6 load testing script in JavaScript. Simulate a spike test: ramp up to 1000 Virtual Users over 1 minute, hold for 3 minutes, then ramp down to 0 over 1 minute. Target a '/search' endpoint with random query parameters.

How to use this prompt

Use this to quickly draft a performance testing script for your microservices.

Tired of copying and pasting prompts?

GenTestCase uses a Multi-Agent AI Pipeline (8 specialized agents) to automatically extract requirements, write test cases, and handle edge cases—no prompt engineering required.

Generate Test Cases Automatically

Explore More Software Testing Topics