# Test Failure Settings

The Failure Criteria feature allows you to set your test's pass/fail criteria for various metrics, such as response time, errors, hits/s, latency, bandwidth, throughput etc.

## How To Use

During creating or editing a test, you will find the Test Failure Settings tab.

![](https://33973752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUOy4kHWrKkuqX5mhH7%2Fuploads%2FQGkVty5QGJm2O9czvkEZ%2FScreen%20Shot%202022-01-12%20at%2014.09.31.png?alt=media\&token=be5af61b-d20e-43b6-9bf7-b8297be2c471)

After clicking the “+” icon, the following screen will appear.

![](https://33973752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUOy4kHWrKkuqX5mhH7%2Fuploads%2FxrSHZNqDNCJ03NP4y4VY%2FScreen%20Shot%202022-01-12%20at%2014.12.14.png?alt=media\&token=96b5051e-2d3e-4648-bc36-a97621b00edb)

* **Label** - Specify here if you want to use this rule on a particular label from your script.  It's set to "ALL" (all labels) by default.
* **Key Performance Indicator** - Select the specific metric you'd like to apply a rule for. Click the down arrow on the right side of the field to open a drop-down menu and review available metrics to monitor.
* **Condition** - The binary comparison operators for this rule, include; "Less than", "Greater than", "Equal to", and "Not Equal to".  Click the down arrow on the right side of the field to open a drop-down menu.
* **Threshold** - The numeric value you want this rule to apply to.
* **Stop Test** - If this box is checked, the test will stop immediately when that criteria fails; otherwise, it will continue running uninterrupted.

### Example

Stop testing if the hits.count of all labels is greater than 3.

![](https://33973752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUOy4kHWrKkuqX5mhH7%2Fuploads%2FIXD1MhzgvChs0QeTdNas%2FScreen%20Shot%202022-01-12%20at%2014.19.34.png?alt=media\&token=060f581c-febc-41cb-98a3-cea2491f995f)

After saving the Failure Criteria, let's start the test and see the results. The test was stopped because the hits.count of all labels exceeded 3.

![](https://33973752-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUOy4kHWrKkuqX5mhH7%2F-M_tIy4yP5U5QY91k6tF%2F-M_tMjBXfJ27c4X_-lVC%2Ftestfailure_4.png?alt=media\&token=09544729-94fc-4d1d-824d-26a9aabf7993)

On the report screen, we can see the results in the Failure Criteria field.

![](https://33973752-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUOy4kHWrKkuqX5mhH7%2F-M_tIy4yP5U5QY91k6tF%2F-M_tMxg1FGcWmX7avbL6%2Ftestfailure_5.png?alt=media\&token=9e519d3a-a5fd-453d-8f76-e685c38ba255)

Enjoy load testing!

{% content-ref url="../creating-your-first-test" %}
[creating-your-first-test](https://wiki.loadium.com/creating-your-first-test)
{% endcontent-ref %}

{% content-ref url="../create-test/jmeter-test" %}
[jmeter-test](https://wiki.loadium.com/create-test/jmeter-test)
{% endcontent-ref %}

{% content-ref url="what-is-dedicated-ip-old" %}
[what-is-dedicated-ip-old](https://wiki.loadium.com/test-settings/what-is-dedicated-ip-old)
{% endcontent-ref %}

{% content-ref url="../create-test/understansing-test-reports" %}
[understansing-test-reports](https://wiki.loadium.com/create-test/understansing-test-reports)
{% endcontent-ref %}

{% content-ref url="../about-loadium/vuh-virtual-user-hour" %}
[vuh-virtual-user-hour](https://wiki.loadium.com/about-loadium/vuh-virtual-user-hour)
{% endcontent-ref %}

{% content-ref url="../about-loadium/features" %}
[features](https://wiki.loadium.com/about-loadium/features)
{% endcontent-ref %}

If you don't see the answer to your question here, please [reach out to us](https://loadium.com/contact-us/) to let us know! We're always improving our documentation.
