Skip to content

OPersian/load-testing-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Load Testing

To be able to run load tests, a developer should:

  • have the devstack installed with Docker Compose;
  • have a valid user (required for the access token to pass to load tests, see locustfile.py for more details);
  • have their IP whitelisted by the app service under test.

With devstack up and running, load testing can be configured and performed via Locust UI at http://localhost:8089/.

Ref.: https://docs.locust.io/en/stable/quickstart.html#locust-s-web-interface

The host of the Azure app service under test can be indicated in the tests configuration popup: locust_configuration.png

Command to run load tests (optional):

docker exec -it gpm-1 locust

To run locust with several workers, you can use this devstack command (example with 2 workers):

docker-compose -f docker-compose-dev.yml up --scale worker=2

About

Load testing with Locust (Python): example snippets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages