About

Easy-locust is an extension tool for locust, can generate locust-file and trigger slave-nodes automatically.

When you add apis or slave-nodes, refresh your browser. There is a bug with "window.location.reload()" in static/js/common.js.

Essy Locust

An extension tool for Locustio

There are three actions when you finish your settings at this web page:

1. Generate locust-file: Generate locust-file at your current path, the filename is "locust_file_by_web.py". Do not change the filename if you want run locust with this web. But you can change the content of this file.

2. Run: If you didn't generate locust-file, it will automatically generate "locust_file_by_web.py" and run it. Otherwise, directly run it no matter you change the content.

3. Run in distributed-mode: Like the second, but it will run all the slave-node except disabled nodes.


Current Config:

Host: {{ config.host }}

Min-Wait: {{ config.min_wait }}

Max-Wait: {{ config.max_wait }}

Request-Mode: {{ config.request_mode }}

Run-in-Order: {{ config.run_in_order }} 0 is false, 1 is true

Content-Type: {{ config.content_type }}

Config

The display of dropdown items maybe incorrect after you saving the config, please check at the main page. If it's fixed, this hint will be disappear.

APIs

Add
{% if apis %} {% for api in apis %} {% if api.method|lower == 'post' %}
POST {% elif api.method|lower == ('get' or 'head') %}
GET {% elif api.method|lower == ('put' or 'patch') %}
PUT {% elif api.method|lower == 'delete' %}
DELETE {% endif %} {{ api.url }} Weight: {{ api.weight }} {% if api.status == 0 %} {% else %} {% endif %}
                    
                
{% endfor %} {% else %}


No apis yet.

{% endif %}

Slave Nodes

Add
{% if slaves %} {% for slave in slaves %} {% if slave.status == 2 %} {% else %} {% endif %} {% endfor %}
ID IP Username Password Operation
{{ slave.id }} {{ slave.ip }} {{ slave.username }} {{ slave.password }} {% if slave.status > 0 %} {% else %} {% endif %} {% if slave.status == 1 %} {% endif %}
{% else %}


No slaves yet.

{% endif %}