
Learn to create a performance test from scratch with k6, an open source JavaScript tool, and master core concepts, thresholds, and practical measurements for endpoints.
Set up your development environment by installing K6 and VS Code, follow Windows steps with Grafana docs, and verify installation while enabling format on save in VS Code.
Create a local k6 performance test project, install and run the ServeRest API via npm, and write a first script hitting the products endpoint while reviewing run metrics.
Learn the purpose of performance tests and focus on the smoke test to quickly verify that the environment and main API endpoints respond with status 200 before longer tests.
Evaluate the application's behavior under the average user load with a k6 load test, validating no degradation at 50 virtual users across cart, add to cart, and check products endpoints.
Learn stress tests and spike tests to find when a system fails or slows, using staged user increases from 100 to 1000 and monitoring memory, cpu, and response times.
Demonstrates spike testing with sudden traffic surges to validate capacity during promotions using k6. Tracks memory, cpu, and response time during peak and confirms recovery afterward.
Perform a soak test to evaluate system behavior under continuous use, identifying memory leakage, progressive slowness, and persistent connection faults during long runs such as 12 hours.
Use the breakpoint test to find the maximum simultaneous users an environment can handle by ramping load from 0 to higher levels and monitoring memory, cpu, and response time.
Learn how k6 executes a performance test through init, setup, default, and teardown phases, and see how data preparation and repeated execution drive the lifecycle.
Learn to configure k6 tests with options, including virtual users, duration, and iterations, and apply executors: constant, ramping, and arrival rate for performance scenarios.
Explore http methods—get, post, put, and delete—and send headers and json payloads in k6, authenticate with jwt and web token, and validate responses with the k6 check module.
Learn to authenticate with jwt in k6 by logging in to obtain a token for protected routes, then perform create, read by id, update, and delete on the products api.
Master performance testing with k6 teaches you to use checks to validate responses, collect metrics, and define thresholds, ensuring correct status, content, and JSON fields.
Learn the standard k6 metrics, including http requests, duration, iterations, checks, and bytes sent/received, plus detailed timings of connecting, sending, waiting, and receiving to diagnose performance.
Explore customized metrics in k6 to measure times, durations, and values using trend, counter, rate, and gauge, with practical examples of tracking response times, success rates, and errors.
Set thresholds to automate performance validation in CI, using metrics like HTTP req duration, HTTP req failed, and checks to meet the 95th percentile under 500 ms and 1% failures.
Organize performance tests with groups and tags to model full flows across catalog, product details, and admin modules, while reusing functions and loading external data.
Explore how k6 tags classify and filter performance test data without altering request behavior, enabling detailed analysis, thresholds, and per-module or per-group insights in reports and dashboards.
Learn to use environment variables with k6 to configure tests across development and production without code changes, passing base URL via -e or --nv for CI workflows.
Modularize login logic into a reusable auth.js module, import it in tests, and use a setup function to obtain an auth token from the base URL for k6 tests.
Learn to work with external data by loading a JSON file of products, authenticating, and registering each product via a k6 test.
Master k6 smoke tests before load tests; validate login, user list, products, and cards with 95th percentile latency under 1 millisecond for a 20-second virtual user and no errors.
Design and run a two-flow load test in k6 to validate product listing and user creation under parallel load, meeting 200 responses and latency thresholds (100 ms and 50 ms).
Create a stress test to validate performance, stability, and failure tolerance under a load, using parallel product and user flows with <5% failures, 90% checks, and 95th percentile <2 seconds.
Explore the k6 browser module for front-end performance testing, simulating real user navigation with Playwright to measure rendering, interactions, and perceived load times.
Configure a k6 browser test in chromium, importing the browser module and defining a scenario with one iteration. Automate login, product search, and add-to-cart using page.locator, waitForSelector, and click.
Explore core web vitals metrics—lcp, fcp, ttfb, and cls—measured with the K6 browser to evaluate the real user experience, set thresholds, and compare frontend performance with backend responsiveness.
K6 provides a native dashboard that runs from the binary, exposing a web server for real-time metrics like virtual users and http timing, with html export and no external dependencies.
Learn to run performance tests on Grafana Cloud k6, scale with regional traffic and VUs, and analyze results from cloud dashboards.
This course contains the use of artificial intelligence.
k6 is one of the most modern performance testing tools on the market, maintained by Grafana Labs and widely adopted by quality assurance and development teams. Its growth is no coincidence: k6 combines simplicity, high performance, and flexibility, allowing any professional to create robust tests with just a few lines of code.
In this course, you will find the ideal balance between theory and practice, learning exactly what the market expects from a performance testing professional. Among the topics covered, you will learn:
What you will learn
The different types of performance tests (Smoke, Load, Stress, Spike, Soak, and Breakpoint).
How the k6 lifecycle works and how to organize your scenarios.
How to use metrics, checks, and thresholds to ensure system quality.
How to create realistic load tests using APIs such as ServeRest.
How to modularize your project, organize folders, use environment variables, and work with external data.
How to create complete tests for web applications using k6 Browser, including Core Web Vitals analysis.
How to generate clear reports and interpret metrics for decision-making.
How to use the native k6 dashboard and run tests on Grafana Cloud k6.
In addition to theory, you will develop several practical tests, understanding each step of the process and creating reusable scripts for real-world scenarios.
If you want to master one of the most modern and in-demand tools in QA and development, this course is the ideal path. It was designed to elevate your career and help you truly understand how to conduct professional performance testing using k6.