SoftwareTestPilot

Beginner · Certificate included

k6 Performance Testing — Free Foundations

Eight lessons on performance questions, k6 scripts, checks, load models, thresholds, analysis, CI and responsible testing.

8 lessons64 minCertificate+90 points
01

Lesson 1 of 88 min read

Define what a performance test must answer

Foundation 1: A performance test answers a specific question: can the browse-and-add journey keep 95 percent of product requests under 200 milliseconds with five concurrent users and under one percent errors? Without a question and a pass rule you only collect graphs. Our synthetic shop runs on 127.0.0.1 with a product list and an add-to-cart endpoint. Load, stress, spike and soak tests answer different questions and are not interchangeable. Functional correctness, security and browser rendering need separate tests. Numbers measured on a laptop describe that laptop, not production capacity. Start with a short boundary note before adding tooling. This free orientation uses a synthetic local shop; it does not generate load from the website.

Key takeaways

  1. 1Identify the performance question and its pass rule.
  2. 2Write an observable expectation and an excluded claim.
  3. 3Keep proposed deployment work distinct from performed checks.

Synthetic boundary note

Question: p95 of GET /products < 200 ms at 5 VUs Pass rule: error rate < 1%, checks > 99% Out of scope: production capacity, UI rendering, security

Go deeper

Expert notes beyond the basics

2 topics
  1. 01

    Reason through the boundary

    A performance test answers a specific question: can the browse-and-add journey keep 95 percent of product requests under 200 milliseconds with five concurrent users and under one percent errors? Without a question and a pass rule you only collect graphs. Our synthetic shop runs on 127.0.0.1 with a product list and an add-to-cart endpoint. Load, stress, spike and soak tests answer different questions and are not interchangeable. Functional correctness, security and browser rendering need separate tests. Numbers measured on a laptop describe that laptop, not production capacity.

  2. 02

    Official reference

    k6 documentation: https://grafana.com/docs/k6/latest/ . Use installed-version guidance and actual evidence, not assumed deployment results.

Common mistakes to avoid

  • - Reporting averages instead of percentiles.
  • - Load testing systems without permission.

Try it yourself

Write a rule, action, evidence and limitation for this topic.

Write your answer on paper or in a sheet first, then compare.

Interview questions

How to answer like a confident QA engineer

2 questions
  1. Q1

    What does a laptop k6 run tell you about production capacity?

    Model answer

    Nothing reliable on its own

  2. Q2

    What is outside this check?

    Model answer

    Functional correctness, real permission security, performance and deployed-version history need separate evidence.

Knowledge check

+5 points

What does a laptop k6 run tell you about production capacity?

What Students Are Saying

Sign in and complete 20% of the course to leave a review.

Share your experience on Trustpilot (optional)

Honest feedback is welcome, whatever your experience. A Trustpilot review is not required for your certificate.