How to do error handling in Jmeter
I'm using Jmeter to do a load testing for a website.
JMeter does not show errors othe开发者_如何学Cr than 404 errors.
How can I get the error messages in JMeter for the errors that occur for other cases?
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.
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.
One annoyance with this though seems to be that JMeter always treats a 404 as an error, when can be a valid response for some applications. So even if you make an assertion that a 404 response is OK, it will still show as an error.
精彩评论