Easy-Locust
Locust Links
- Website: locust.io
- Documentation: docs.locust.io
- Support/Questions: Slack signup
Description
Easy-Locust is an extension tool for Locust. With this tool, you don't need to write locust scripts. What you need to do is just to edit Excel. Easy-Locust will generate locustfile automatically and run it.
If you need master-slave mode, you just need to fill Excel Sheet 'Slave', and use --master. The only precondition is to install the same version locustio in each Slave. Easy-Locust is not necessary for slaves.
easy-locust --web --web-port=8899 -- Run in web mode, you can config and trigger slave-nodes with this mode.
Use easy-locust --demo to generate an Excel demo, fill it and start your test.
Same parameters with locust, so I just introduce the different parameters here:
easy-locust -f xxx.xls -- This will transform Excel to locustfile, and run it. You can also use -f xxx.py.
easy-locust --xf xxx.xls -- -- This just transform Excel to locustfile, will not start test.
easy-locust -f xxx.xls --master -d -- -d is distributed mode, can automatically run slaves. There is one precondition,
you need write slaves information in Excel at Slave Sheet.
easy-locust -f xxx.xls --master -d --boomer -- --boomer running boomer client in slaves, which is compiling by Golang.
In this mode expect_code and expect_str is inoperative. Please keep port 9999 is unused in each slave, when using this mode.
OR, use:
import easy_locust
data = {
"config": {},
"apis": [],
"auth": {},
"user_info": [],
"master_ip": "",
"slaves": []
}
locustfile_str = easy_locust.factory(data)
Bug reporting
Open a Github issue and follow the template listed there.
https://github.com/GuoTengda1993/easy-locust
Authors
- Guo Tengda
License
Open source licensed under the MIT license (see LICENSE file for details).
Change Log
- 0.2.1: Easy-locust web mode.
- 0.1.12:
content-typesupport. - 0.1.11: Add boomer client as slave, which has much more preformance.
- 0.1.10: Delete useless code.
- 0.1.9: Support Json to locustfile. And can use
easy_locust.factory(dict)to get strings of locustfile. - 0.1.6: Optimize locustFileFactory.py
- 0.1.5: Check Response info (status code & expect str) if set "Expect Status Code" in Excel, otherwise not. Rely on locustio>=0.13.5
Metadata
Release files for easy-locust 0.2.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| easy_locust-0.2.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Release files / easy_locust-0.2.1.2-py3-none-any.whl
| Download URL | easy_locust-0.2.1.2-py3-none-any.whl |
|---|---|
| Size | 11.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8dc3927c0350c7f9b4d6a1ddd3ca559116c2eb953477180bb7a645d1b308a129
|
|
BLAKE2b-256 checksum How to use checksums |
9e972e510d55fa04f8c47cbdb1bdd74f571e98ed5a5cabfe21a11937e9d394d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.0
|
Security for easy-locust 0.2.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.