0

I have recorded login page and exported to JMX. In Post method, i am giving invalid username and password, but test cases are passing. It should fail ideally. Does recorded script always PASS?

Regards, Praveen

1
2

JMeter automatically treats HTTP status codes below 400 as successful so if your application responds with "invalid credentials" message but having status code of 200 - JMeter will mark the request as "passed".

If you want JMeter to conditionally consider request as failed if i.e. "Welcome" text is missing or login form is still present you will need to add a Response Assertion to your request and specify pass/fail criteria there.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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