December 7, 2020 | 1 min read
TLDR
Locust, a Python load-testing framework, can help you set up load-tests like a breeze.
- Sets up complex UI interactions with ease
- Supports Docker for simulating real-world load
How I Use It
For testing single engpoint request:
-
Gather stats of the sites' load distribution, i.e., Top Active Pages in Realtime, from Google Analytics
-
Based on the data, set up endpoints-of-interest and give each weight accordingly
-
Spin up Docker containers that matches the test criteria, i.e., 50 clients for C50
-
Use Locust's web UI to start the test
Example
-
load_test.py
-
docker-compose.yml
References