Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do error handling in Jmeter

Tags:

jmeter

I'm using Jmeter to do a load testing for a website.

JMeter does not show errors other than 404 errors.

How can I get the error messages in JMeter for the errors that occur for other cases?

like image 856
Thilanka Avatar asked Mar 07 '26 23:03

Thilanka


2 Answers

By default, JMeter only flags typical HTTP error response codes, like 4XX and 5XX errors.

You should use Response Assertions on your HTTP samplers if you wish to have finer control over what is flagged as an error.

like image 165
webguydan Avatar answered Mar 09 '26 11:03

webguydan


You can use 404 code as a success also. When you put your assertion with 404, there is a checkbox in the corner that says 'Ignore Status'. This will treat also 404 as a success.

like image 25
Balajiu Calin Nicolae Avatar answered Mar 09 '26 11:03

Balajiu Calin Nicolae



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!