Locust plugin for providing FAIL/PASS result of test run.
Project description
# Locust Plugin to provide FAIL/PASS status for entire test run
## Links
Locust Website: <a href=”https://locust.io”>locust.io</a>
## Description
This locust plugin extends Locust with the concept of test run PASS/FAIL
## Features
Utility function to set result
In your locustfile.py:
from locust_plugin_result import RESULT_PASS, RESULT_FAIL, set_result ... # Inside event callback set_result(environment.runner, RESULT_FAIL, "Failed check of ...")
See examples/result.py for details.
Endpoint to get status:
http://<locust-master>/status
Returns json:
{ 'result': None, # Result will be None until your locustfile sets it. 'state': 'ready', 'worker_count': None, # None for LocalWorker - current number of workers if running distributed 'user_count': 0 }
## Authors
Lars Hupfeldt Nielsen
## License
Open source licensed under the BSD license (see _LICENSE_ file for details).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for locust-plugin-result-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44f98dd98b37aa3deb49a863a98091c7f9a8cbcc39f569bb6de8e3ef10a2174d |
|
MD5 | b151cc196bef6ee3a6b2adf7cc47f6e2 |
|
BLAKE2b-256 | 7a08653e6c801813eefd8b8b184b04f4be6286f1148e83abb8e97307cc940ecf |
Close
Hashes for locust_plugin_result-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c8461b34ec390b6ebb38ac8c7957abbdf7725cafbcfa14344ebefb5a0c8ba89 |
|
MD5 | 577fc7a799b58dca815449568bc73d29 |
|
BLAKE2b-256 | 2e753e9ceeeaf15b64bbb9bc78765ea3898ce434848c950357b44c1616bf0a36 |