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
File details
Details for the file locust-plugin-result-0.0.2.tar.gz
.
File metadata
- Download URL: locust-plugin-result-0.0.2.tar.gz
- Upload date:
- Size: 6.8 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 | 2121378356c3eed538148bb640e33581266b07a4172eddd7a6c272c65b604c39 |
|
MD5 | 91215356a668fc4132f13a5c63276bd4 |
|
BLAKE2b-256 | 796c998b21d4f7c472d563cdb8c25312e6887a943cccef3fe26f1ae617fce583 |
File details
Details for the file locust_plugin_result-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: locust_plugin_result-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.3 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 | 72d5adbd1be5cf5320cc9fbdedb135acd3918c368b3232822c967378acd3b6e7 |
|
MD5 | c871ee37ecc34ac55b5fcc862f3903fb |
|
BLAKE2b-256 | 9eb9ec4b93b13a0e909678859397b40c71efe2ea800e4417389c3eb65afbcb4c |