Sample project to run load testing of a website using the Locus project. https://docs.locust.io/en/stable/index.html
Create a local python dev environment
conda create -n webtestdriver python=3.8
activate webtestdriver
python -m pip install requirements.txt
python -m pip install requirements-dev.txt
Run from command line.
locust -f src/main.py
Try to run headlest. This doesn't work yet.
locust -f src/main.py -H <hostname> -u 10000 -r 10 -t 300 --headless
Build docker image
docker build --pull --rm -f "dockerfile.dev" -t webtestdriver:latest "."
Run Docker image.
docker run --rm -it webtestdriver:latest
locus -f main.py
Run Docker image and map the serving port to a different port
docker run --rm -it -p 8098:8089 webtestdriver:latest
locus -f main.py
- Locus Project https://docs.locust.io/en/stable/index.html