Skip to main content

# Locust Plugin to provide FAIL/PASS status for entire test run

## Links

## 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)

Source distribution for locust-plugin-result 0.0.3
File Size Uploaded
locust-plugin-result-0.0.3.tar.gz 6.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for locust-plugin-result 0.0.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page