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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | acf1dc2d9d9b122c98e2928822f717dc153fdd2a7130b9bbbbdf717f3c24881f |
|
MD5 | d814ecf5c22a10b858211bf5a50f81f3 |
|
BLAKE2b-256 | 1351ee2fa36bc70442f56e30d2c121ef713d65ef6620545e46f09e4a594b9057 |
Close
Hashes for locust_plugin_result-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d515db358cecd68ce365bef3affb33526489ecd1509a76dbea7c7be4272f232 |
|
MD5 | dea70a1bab6508fe130f5d5bc8723800 |
|
BLAKE2b-256 | bd6cd48e0fdc035d21aeb393bf38776676ecfcd7f698ccacbcd9c8145646fc25 |