Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Load & stress testing with Locust: Zero to hero!
Rating: 4.4 out of 5(7 ratings)
27 students

Load & stress testing with Locust: Zero to hero!

A complete guide for writing maintainable and scalable tests for load and stress testing, covering multiple protocols
Last updated 5/2026
English
English [Auto],

What you'll learn

  • Stress & load testing practices
  • Verifying the SLAs of the web applications
  • Analyzing & customizing the testing reports for stress/load testing
  • Integrating Locust with CI/CD

Course content

4 sections • 20 lectures • 3h 20m total length
  • Introduction to Locust4:46

    Learn how to use Locust for stress and load testing in Python, distinguish the two tests, meet SLAs, predict capacity, and visualize results with dashboards and clustering.

  • Quick Recap
  • Installation of Locust and GUI/CLI walkthrough8:50

    In this session we are installing Locust in the virtual environment, creating a simple locustfile.py and exploring options available for GUI & CLI

  • Locust defaults
  • Controlling the flows of load/stress tests7:03

    Explore controlling the flows of load and stress tests by configuring a low-cost Locust setup, defining endpoints, sla thresholds, and grouping requests for pagination.

  • Locust internal API
  • SLA, Procentiles and Error rates13:35

    Explore how to define and measure service level agreements, analyze error rates, and use percentile-based performance targets (P90, P95, P99) with Locust for effective load and stress testing.

  • Main KPI of your load/stress testing
  • Custom load shapes9:45

    Explore custom load shapes in Locust to control user ramp-up, spawn rate, and duration, test peak load, and observe scaling effects on on-prem, monolithic, and cloud environments.

  • Reiteration0:43

Requirements

  • Python basics
  • Manual Testing

Description

This course is intended for the beginners in the Stress & Load testing field.
It will guide you through such topics as:

- How test & stress tests differ, and when to use what

- What parameters does Web UI & CLI have, how to configure and persist configuration between runs

- How to run the tests in CI/CD, how to write the pipelines

- How to test HTTP, gRPC and other protocols
- How to check authorization & authentication with Basic, JWT, SSO and PASETO methods


This course is covering the most common scenarios in corporate QA activities, and consists primarily from the coding examples.

You will learn what is the error rate, percentiles and SLAs. You will create custom adapters for the protocols and custom shape profiles for better simulation of chaotic traffic.
You will also learn how to modify the default Web UI, by extending the graphs and introducing custom parameters for the custom Locust users.
This course will demonstrate how to integrate the locust-plugins pip package with the Grafana & Prometheus and providing better observability for the test results.
You will learn how to generate and consume reports of test executions


This course is assuming that you already know some basics of Python programming or any other C-like languages

Who this course is for:

  • Automation QA engineers who want to expand domain knowledge with stress/load testing