# 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).
Metadata
Release files for locust-plugin-result 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| locust-plugin-result-0.0.3.tar.gz | 6.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| locust_plugin_result-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.9 kB
Release files / locust-plugin-result-0.0.3.tar.gz
| Download URL | locust-plugin-result-0.0.3.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
44f98dd98b37aa3deb49a863a98091c7f9a8cbcc39f569bb6de8e3ef10a2174d
|
|
BLAKE2b-256 checksum How to use checksums |
7a08653e6c801813eefd8b8b184b04f4be6286f1148e83abb8e97307cc940ecf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.3 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.9.0rc1
|
Release files / locust_plugin_result-0.0.3-py3-none-any.whl
| Download URL | locust_plugin_result-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c8461b34ec390b6ebb38ac8c7957abbdf7725cafbcfa14344ebefb5a0c8ba89
|
|
BLAKE2b-256 checksum How to use checksums |
2e753e9ceeeaf15b64bbb9bc78765ea3898ce434848c950357b44c1616bf0a36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.3 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.9.0rc1
|