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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file locust-plugin-result-0.0.3.tar.gz.
File metadata
- Download URL: locust-plugin-result-0.0.3.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44f98dd98b37aa3deb49a863a98091c7f9a8cbcc39f569bb6de8e3ef10a2174d
|
|
| MD5 |
b151cc196bef6ee3a6b2adf7cc47f6e2
|
|
| BLAKE2b-256 |
7a08653e6c801813eefd8b8b184b04f4be6286f1148e83abb8e97307cc940ecf
|
File details
Details for the file locust_plugin_result-0.0.3-py3-none-any.whl.
File metadata
- Download URL: locust_plugin_result-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c8461b34ec390b6ebb38ac8c7957abbdf7725cafbcfa14344ebefb5a0c8ba89
|
|
| MD5 |
577fc7a799b58dca815449568bc73d29
|
|
| BLAKE2b-256 |
2e753e9ceeeaf15b64bbb9bc78765ea3898ce434848c950357b44c1616bf0a36
|