I've one simple jmeter login script for negative scenarios which takes invalid login and password.
It gives JSON response as { "status": 401, "error": "unauthorised", }
The above response is expected.
I've also added the JSON Path Assertion to verify the status code as 401 which validates correctly
Now my target is if I run the test it should pass however its coming as fail status. Sampler result shows as below
Sample Count: 1
Error Count: 1
How I can make it pass? Is it possible or not?