You could use a 
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Regular_Expression_Extractor
regular expression extractor  and an 
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#If_Controller
if controller  to have a decision tree where different branches get invoked
depending on the server response.

Keep in mind though, that - generally - the server response will be
predictable, nothing is random in computing, so you might want to look
deeper into why you are seeing changeable results.

A typical scenario with login requests is that the state is lost / not set
and the request gets redirected to a different page. You might be
experiencing this. In that case you would want to use a 
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Response_Assertion
response assertion  to verify the login was successful. If both cases are in
fact successful and you just have weird app logic then stick with the
previous approach.

-----
http://www.http503.com/
--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Unexpected-Page-returned-tp4873275p4874267.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org

Reply via email to