designing-test-scenarios

Design k6 load profiles with executors, VU patterns, and thresholds.

10|1|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/KimDoubleB/grafana-k6-skills --skill designing-test-scenarios
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: designing-test-scenarios
Source: https://github.com/KimDoubleB/grafana-k6-skills/tree/main/plugins/grafana-k6-skills/skills/designing-test-scenarios
Command: npx skills add https://github.com/KimDoubleB/grafana-k6-skills --skill designing-test-scenarios

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps users design effective load testing scenarios for Grafana k6, ensuring they choose the right executors, configure appropriate load patterns, and set meaningful performance thresholds.

Core Features & Use Cases

  • Executor Selection: Guides users in choosing the best k6 executor (e.g., constant-vus, ramping-arrival-rate) based on testing goals.
  • Scenario Design: Provides examples and explanations for configuring single and multi-scenario tests.
  • Threshold Configuration: Demonstrates how to define pass/fail criteria for response times, error rates, and throughput.
  • Use Case: A performance engineer needs to simulate a realistic traffic pattern that ramps up to 1000 requests per second and then sustains it for an hour. This Skill helps them select the ramping-arrival-rate executor and configure the appropriate stages and thresholds.

Quick Start

Use the designing-test-scenarios skill to configure a k6 load test with 50 VUs running for 10 minutes using the constant-vus executor.

Frequently Asked Questions about designing-test-scenarios

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design a k6 load test scenario with a specific virtual user pattern?

To configure k6 load testing scenarios, you select appropriate executors like `constant-vus` or `ramping-arrival-rate` to define virtual user patterns. This approach supports configuring single and multi-scenario tests for load, stress, soak, spike, and breakpoint testing.

What is the best way to simulate a realistic traffic pattern in k6 that ramps up to 1000 requests per second?

The best way to simulate realistic traffic in k6 is using the `ramping-arrival-rate` executor. This executor configures stages to gradually increase traffic to a target request rate and sustains it, allowing you to define test duration and iteration rates accurately.

How do I set pass/fail criteria for response times and error rates in k6?

You set pass/fail criteria in k6 by defining performance thresholds within your scenario options. Thresholds allow you to configure specific pass/fail criteria for response times, error rates, and throughput to evaluate your load testing results.

Which k6 executor should I use for soak testing versus spike testing?

For soak and spike testing, you choose k6 executors based on your testing goals. The Skill guides you in selecting the correct executor and configuring the appropriate VU load patterns to execute sustained soak tests or sudden spike tests.

Can I configure multiple k6 test scenarios in a single execution?

Yes, you can configure multiple k6 test scenarios in a single execution. The Skill provides examples and explanations for configuring multi-scenario tests, allowing you to define different executors, load patterns, and thresholds simultaneously.