Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I see a page error in jMeter?

How can I see an error in JMeter?

In other words, if a test fails, How is it possible to see the page returned with the error ?

like image 223
Sacx Avatar asked May 29 '09 09:05

Sacx


People also ask

How do you handle errors in JMeter?

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.

What is error in JMeter summary report?

This error tells you either request failed or response failed based on assertion made (text , response code ...)


1 Answers

In our application we have a custom error page displaying a certain message. In JMeter we added a Response Assertion to the TestPlan (Add > Assertions > Response Assertion). We configured this assertion to have a pattern checking for this message (e.g. check for "error occurred" or whatever your error page shows).

Then we added a View Results Tree to the Thread Group (Add > Listener > View Results Tree) and configured it to display the errors only (check Log/Display only Errors). This result tree now captures all error pages along with their requests.

like image 147
rudolfson Avatar answered Oct 09 '22 03:10

rudolfson