Skip to main content

Locust plugin for providing FAIL/PASS result of test run.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

locust-plugin-result-0.0.1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

locust_plugin_result-0.0.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file locust-plugin-result-0.0.1.tar.gz.

File metadata

  • Download URL: locust-plugin-result-0.0.1.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.5

File hashes

Hashes for locust-plugin-result-0.0.1.tar.gz
Algorithm Hash digest
SHA256 acf1dc2d9d9b122c98e2928822f717dc153fdd2a7130b9bbbbdf717f3c24881f
MD5 d814ecf5c22a10b858211bf5a50f81f3
BLAKE2b-256 1351ee2fa36bc70442f56e30d2c121ef713d65ef6620545e46f09e4a594b9057

See more details on using hashes here.

File details

Details for the file locust_plugin_result-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: locust_plugin_result-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.5

File hashes

Hashes for locust_plugin_result-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8d515db358cecd68ce365bef3affb33526489ecd1509a76dbea7c7be4272f232
MD5 dea70a1bab6508fe130f5d5bc8723800
BLAKE2b-256 bd6cd48e0fdc035d21aeb393bf38776676ecfcd7f698ccacbcd9c8145646fc25

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page