Skip to content

Delermando/locust-load-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Pulls Docker Layers Docker Version

Locust Load Test

Introduction

This is simple project that Dockerize Locust tool, allowing you to simply and quickly test.

Requirements:

  1. git
  2. docker
  3. docker-compose

How to use:

1ª Step: Clone this project
git clone git@github.com:Delermando/locust-load-test.git

2ª Step: Access the project folder
cd locust-load-test

3ª Step: Define test settings, editing the configuration file src/load_test_definition.py, on that you'll change the property host. If you want to define other configurations access locust.io.
![Definition test file] (https://s32.postimg.org/fww94rmat/image.png)

4ª Step: Start containers
make run

5ª Step: Access the locust interface on browser on the following address localhost:8089
![Locust Web Interface] (https://s32.postimg.org/uu4q5rzj9/image.png)

6ª Step: First define the number of requests, concurrent users and so click on Start Swarming button.
![Requestes definition] (https://s32.postimg.org/morq4qhlx/image.png)

7ª Step: Now enjoy
![End screenl] (https://s32.postimg.org/4zzzd45ut/image.png)

Commands Refence

  • make run (Start the project containers)
  • make kill (Kill all containers)
  • make rm (Remove all containers)
  • make restart (Restart it's a combination of the kill, rm and run commands)