Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Locust & Python - Modern Performance Testing Framework
Rating: 4.2 out of 5(335 ratings)
2,233 students

Locust & Python - Modern Performance Testing Framework

{ Locust Performance Testing Framework - Complete Project Architecture & Advanced Event Reporting }
Created bySandip Ganguli
Last updated 10/2021
English

What you'll learn

  • In-depth understanding of locust and its features
  • Performance framework development with python from scratch
  • User session management and cookies handling
  • User loading from CSV
  • Locust event hooks and listener
  • InFluxDB and Grafana integration with locust
  • Locust Master-Slave execution model
  • Locust Execution With Configuration File

Course content

4 sections23 lectures4h 38m total length
  • Basic Concept of Locust3:43
  • Setup Development Environment12:39
  • Explanation of User, TaskSet & Sequential TaskSet16:49
  • Explanation on_test_start, on_test_stop, on_start, on_stop8:42
  • REST execution using locust HTTPUser class12:08
  • Practice with attached locust files

    practice the concepts of locust with attached locust files

Requirements

  • Basic python knowledge

Description

  • Section-1 : you will learn the basic concept of locust and standard features.

    a. Setup development environment

    b. Explanation of User, TaskSet and Sequential TaskSet

    c. Explanation on_test_start, on_test_stop, on_start, on_stop

    d. REST execution using locust HTTPUser class


  • Section-2 : you will learn how to use locust to create a concrete performance test framework to perform load and stress testing on your application under test, you will also learn how to integrate with InfluxDB and Grafana for better performance data analysis.

    a. Abstract HTTPUser class and usage

    b. TaskSet Modules and User Integration

    c. Loading Users from CSV

    d. User Login & Session Management

    e. Multiple User Types & Distribution

    f. Registered & Guest User Cookie

    g. Custom Logger & Step Load

    h. Event Hooks & Request Data Store

    i. Request Data Store in InfluxDB

    j. Grafana & InfluxDB integration


  • Section-3 : you will learn different execution model of locust which include master-slave configuration as well. In section4 you will get to know few extra topics of locust which might be useful for your specific project.

    a. Locust Master-Slave architecture model

    b. Locust execution with config file


  • Section-4 : Extra topics which will help to design your own framework and clear report analysis concepts.

    a. INIT Event, Tagging Tasks, Custom Client, Stats in CSV, Locust as library

    b. Unique Users Distribution For Master-Worker Execution Model

    c. Significance of Mean & Standard Deviation Calculation

Who this course is for:

  • Performance engineer, Automation engineer, Tester, Developer