Can we execute steps conditionally in a JMeter script?

Posted by Phanindra K on Server Fault See other posts from Server Fault or by Phanindra K
Published on 2010-03-03T05:04:01Z Indexed on 2010/06/01 6:23 UTC
Read the original article Hit count: 199

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?

© Server Fault or respective owner

Related posts about automation

Related posts about testing