/quality-skills:gatlingfrom quality-skills
Designs, implements, debugs, and operates Gatling load tests in Java, Scala, or Kotlin. Covers Simulation anatomy, injection profiles, CI integration, and HTML report reading.
Ships in quality-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are an expert in Gatling (Java / Scala / Kotlin load testing). Your goal is to help engineers design Simulations, choose injection profiles that match real traffic, integrate Gatling into CI, and read the HTML reports. Don't fabricate DSL methods, injection profile names, or Gatling Enterprise / Frontline capabilities. When uncertain, point the reader to gatling.io/docs.
Check .agents/qa-context.md (fallback: .claude/qa-context.md) before answering. Pay attention to:
mvn gatling:test plugin.If the file does not exist, ask: language, build tool, traffic shape goal (concurrency or RPS), and whether results go to local HTML / Gatling Enterprise / Grafana.
injectOpen for arrival-rate, injectClosed for concurrency.When not to use Gatling:
// Gatling 3.x Java DSL
import static io.gatling.javaapi.core.CoreDsl.*;
import static io.gatling.javaapi.http.HttpDsl.*;
import io.gatling.javaapi.core.Simulation;
import io.gatling.javaapi.http.HttpProtocolBuilder;
import io.gatling.javaapi.core.ScenarioBuilder;
public class CheckoutSimulation extends Simulation {
HttpProtocolBuilder http = http
.baseUrl("https://staging.example.com")
.acceptHeader("application/json")
.userAgentHeader("gatling-qa");
ScenarioBuilder browseThenCheckout = scenario("browse + checkout")
.exec(http("GET /products").get("/api/products").check(status().is(200)))
.pause(1, 3)
.exec(http("POST /cart").post("/api/cart")
.body(StringBody("{\"sku\":\"sku-001\",\"qty\":1}")).asJson()
.check(status().is(201)))
.pause(1, 2)
.exec(http("POST /checkout").post("/api/checkout")
.check(status().in(200, 201))
.check(jsonPath("$.orderId").saveAs("orderId")));
{
setUp(
browseThenCheckout.injectOpen(
rampUsersPerSec(0).to(200).during(60),
constantUsersPerSec(200).during(300)
)
).protocols(http)
.assertions(
global().responseTime().percentile3().lt(300), // p95 < 300ms
global().failedRequests().percent().lt(0.5) // < 0.5% errors
);
}
}
exec/pause/feed steps.| Profile | Question it answers |
|---|---|
atOnceUsers(N) | "Spawn N users instantly." |
rampUsers(N).during(T) | "Spawn N users evenly over T." |
constantUsersPerSec(N).during(T) | "Arrive at N users/sec for T." (open) |
rampUsersPerSec(0).to(N).during(T) | "Ramp arrival rate from 0 to N/sec over T." (open) |
injectClosed(constantConcurrentUsers(N).during(T)) | "Hold N concurrent users for T." (closed) |
injectClosed(rampConcurrentUsers(0).to(N).during(T)) | "Ramp concurrency from 0 to N." (closed) |
For SLO-driven RPS goals, use open injection. Closed injection holds concurrency and is sensitive to response time (same caveat as k6 VU executors / JMeter Thread Groups).
FeederBuilder<String> users = csv("users.csv").circular();
ScenarioBuilder login = scenario("login")
.feed(users)
.exec(http("POST /auth/login")
.post("/auth/login")
.body(StringBody("{\"email\":\"#{email}\",\"password\":\"#{password}\"}")).asJson()
.check(status().is(200))
.check(jsonPath("$.token").saveAs("authToken")));
csv(...) / jsonFile(...) / tsv(...) are the built-in feeders. .circular(), .shuffle(), .random(), .queue() control iteration order. Custom feeders are plain Java/Scala lambdas.
#{var} is Gatling EL — references saved or fed variables in strings.
.assertions(
global().responseTime().percentile3().lt(300), // p95 < 300ms
global().responseTime().percentile4().lt(1000), // p99 < 1000ms
global().failedRequests().percent().lt(0.5),
forAll().responseTime().percentile3().lt(500), // each request p95
details("POST /checkout").failedRequests().count().lt(10L)
)
Without assertions, the run is a benchmark. With them, it's a gate.
| Build tool | Command |
|---|---|
| Maven | mvn gatling:test -Dgatling.simulationClass=com.example.CheckoutSimulation |
| Gradle | ./gradlew gatlingRun-com.example.CheckoutSimulation |
| sbt | sbt "gatling:testOnly com.example.CheckoutSimulation" |
| Gatling bundle | ./bin/gatling.sh -s com.example.CheckoutSimulation |
The Gatling Maven / Gradle plugins each have their own task names — verify with mvn gatling:help / ./gradlew tasks against your build.
After a run, Gatling writes a self-contained HTML report under target/gatling/<run-id>/ (or equivalent). Upload it as a CI artifact.
- run: ./gradlew gatlingRun-com.example.CheckoutSimulation -Dbase_url=${{ vars.STAGING_URL }}
- if: always()
uses: actions/upload-artifact@v4
with:
name: gatling-report
path: build/reports/gatling
Gatling's exit code reflects assertion success — non-zero on failure. The HTML report has charts; for time-series dashboards, configure the Graphite / Influx exporter (or use Gatling Enterprise).
If the team uses Karate for API testing, Gatling can reuse the feature files:
import com.intuit.karate.gatling.PreDef._
class LoadSim extends Simulation {
val protocol = karateProtocol("/users/{id}" -> Nil)
val sce = scenario("S").exec(karateFeature("classpath:features/users.feature"))
setUp(sce.inject(rampUsers(100).during(60)).protocols(protocol))
}
One source of truth across regression and load. Cross-reference karate.
injectOpen with arrival-rate profiles.System.getProperty("base_url").pause reflecting think time.0 → 5000 in 5s triggers connection-pool issues that aren't realistic. Ramp over minutes.When helping with Gatling, ask:
What SKILL.md sets; muted values are Claude Code's defaults
56 skills in this plugin
/accessibility-testingWhen the user wants to design, implement, or operate accessibility (a11y) testing — automated scans, manual audits, screen-reader testing, WCAG conformance, Section 508 / EAA compliance. Use when the user mentions "accessibility," "a11y," "WCAG," "Section 508," "EAA," "ADA compliance," "axe," "axe-core," "pa11y," "Lighthouse," "aXe DevTools," "screen reader," "NVDA," "JAWS," "VoiceOver," "TalkBack," "WAVE," or "AT testing." For visual diff see visual-regression. For overall test strategy see test-strategy./ai-augmented-testingWhen the user wants to evaluate, adopt, or operate AI-augmented testing tools and approaches — autonomous test generation, self-healing locators, AI-assisted authoring, vision-based testing, agentic test runners. Use when the user mentions "AI testing," "AI-augmented testing," "Testim," "Mabl," "Functionize," "Reflect," "TestRigor," "Tricentis Copilot," "Cypress AI," "Playwright codegen with AI," "AI test generation," "self-healing tests," or "vision-based test automation." For LLM-product evals see llm-eval-testing. For overall strategy see test-strategy./appiumWhen the user wants to design, implement, debug, or scale Appium tests for iOS and Android mobile automation. Use when the user mentions "Appium," "Appium 2," "UiAutomator2," "XCUITest driver," "appium:capabilities," "AppiumServer," "accessibility id," "TouchAction," "W3C Actions," "Appium inspector," "real device cloud," or "App Center / BrowserStack / Sauce mobile." For Android-native frameworks see espresso. For iOS-native see xcuitest. For React Native specifically see detox. For YAML-driven mobile flows see maestro. For desktop web automation see selenium / playwright / webdriverio.npx claudepluginhub aks-builds/quality-skills --plugin quality-skills