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?
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It only takes a minute to sign up.Sign up to join this community
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.