How to ignore errors in JMeter

Jmeter by default does not understand which request failed and which request passed. It only make a request fail based upon the response code and exceptions.

For example if the response code of  the sampler is starting with 4xx (cleint side error) or 5xx (server side error) then JMeter displays that request in red color which represents error.

To let Jmeter fail the request based upon the response you want, you need to add assertions for the same.

However, we often deal with some transactions where we are supposed to expect the negative and continue with error. If that is the case, How to implement the same in the Jmeter.

There might be several ways to do the same. But, I will tell you the simplest way.

If error is expected or a part of actual requirement/process, You can simply ignore the error by adding an assertion to the request.

Just add Response Assertion to the request where error or failure is expected and you do not want to treat it as en error.

Check the check box “Ignore status”, That’s it. Jmeter will ignore the error.


Below are the results for the same sampler before and after ignoring the error:


Thank You for Coming !!!

1 comment: