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.3.tar.gz (6.7 kB view hashes)

Uploaded Source

Built Distribution

locust_plugin_result-0.0.3-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

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