I have recorded a sequence of steps to be executed for testing my web application, in a JMeter .jmx script. (The recording tool used was BadBoy).

It is possible that one of the steps might return an error response in the HTTP response content. In this case, I need the script to stop execution of that thread. However, since the error page is customized, JMeter does not recognize this as an error and proceeds to the next steps.

Is there any way to check for certain keywords, for example, and decide if the response is an error?

link|improve this question
feedback

3 Answers

Assertions.

http://jakarta.apache.org/jmeter/usermanual/test_plan.html#assertions

link|improve this answer
Thanks, will look into this. – Phanindra K Mar 3 '10 at 6:58
feedback

You can use "Response Assertion" in combination with reg-ex in order to extract the pattern that identifies whether the request is successful or not. Then you can use "Result Status Action Handler" post-processor to tell JMeter how to continue.

link|improve this answer
feedback

basically even u l give wrong username and password,jmeter will not give an error.because it l check only load test.but few methods are there so u can come to know that error is there or not ,1st by reg.exp 2nd assertion elements

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.