Software Testing / Learning brief

Tom writes his first k6 script

What this means in plain language

Tom writes a short load test as code and uses its limits to stop a slow build.

Understand the full idea, step by step

Analogy: a recipe with a taste test. A recipe says how many cooks, for how long, and what each cook does. At the end a taster says pass if the dish is good enough.

The recipe is a short page that anyone can read.

A k6 script is like that. Tom, the tester at Daily List, a to-do list app, writes how many users, how long, and the limits for a pass.

Evidence & review

REVIEWED 2026-10-31

The date on this lesson is when it went up on Payments Signal, not when its material was written — most of these were brought across from an earlier catalogue in a single run, which is why so many of them share a date. What the lesson says about the world is dated by the review above and by the sources below it.

A first k6 script. The people and the app are invented.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts. Tools and screens change, and each team sets its own. V83 (V83 is the review round that made this correction) scoped correction: synthetic Daily List examples remain fictional; selected primary-source corrections have explicit appended source locators. Earlier source-access history is retained, not a whole-publication review.

Sources for this brief — 3 sources
  1. Market practice

    Thresholds (Grafana k6 documentation) ↗ — Grafana Labs · Grafana k6 documentation: options set vus and duration for the load and thresholds set pass or fail limits on metrics such as http_req_duration, for example p(90) below 400 ms (search excerpt, page not opened)

    Describes thresholds as pass or fail limits on metrics such as http_req_duration, set in the options of a script, and says the k6 command returns a non-zero exit code when a test fails. Vendor documentation. Practitioner guidance, not a standard. · Checked 2026-11-06

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail. V27 supplement, 6 November 2026: relevant primary page sections actually opened; implementation-specific current product guidance, not universal standard. See full V27 audit for version and access scope.

  2. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

    This site's own simplified teaching models. · Checked 2026-07-12

    Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.

  3. Implementation-specific

    Thresholds (Grafana k6 documentation) ↗ — Grafana Labs · Grafana k6 current Thresholds primary definitions/examples read7November2026, compared with V11S22 checks versus thresholds: declare thresholds on the relevant metric, use failed exit status; a content check alone does not make a threshold fail. No current binary execution claimed.

    Describes thresholds as pass or fail limits on metrics such as http_req_duration, set in the options of a script, and says the k6 command returns a non-zero exit code when a test fails. Vendor documentation. Practitioner guidance, not a standard. · Checked 2026-11-06

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail. V27 supplement, 6 November 2026: relevant primary page sections actually opened; implementation-specific current product guidance, not universal standard. See full V27 audit for version and access scope.

Learn this properly

START HEREk6: a load test written as a scriptk6 describes a load test in a short script with users, duration and pass or fail limits. Write one and run it in a pipeline.Opens at L0 Explain simply · about 16 min

Related briefs