During a flood test you may notice that the error rate percentage is high for a particular transaction.

When clicking on the error rate you also notice that the HTTP Status Code is 200 OK but the Error Count is greater than 0.

This can occur for a couple of reasons:

  1. An assertion (e.g. response assertion or duration assertion) has failed.
  2. A sub sample (e.g. Embedded Resource) has failed.

In the previous screenshot we can see the Error Count is 3 and the Sample Count is 3, which indicates that all samples failed for that transaction.

Example for Embedded Resource failure

It is a good idea to run your test script locally to discover any embedded resource failures, as these are typically not related to load.

You can do this by running your test with a View Results Tree listener which should be able to identify in red the problem sub sample. In the following example a HTTP 404 is causing the parent sample to fail.

When clicking on the parent sample, you can see that an HTTP 200 is shown but the Error Count is 1, which is due to the sub sample with the HTTP 404.

Example for Assertion failure.

There are a number of different assertions you can apply to the response in JMeter. Some common ones are duration, content or size assertions. The following example marks the parent transaction as failed because the response size is less than 8,000 bytes.

Despite the parent sample returning a HTTP 200 OK, the transaction is still marked as failed with an Error Count of 1.

Did this answer your question?