Assert returned status code HTTP 400 as a success

jmeter

Solution

Easily. See answers to this.

You can also possibly try NOT check-box in Pattern Matching Rules Response Assertion.

Problem

I have been using JMeter for a while and only for load tests. I was wondering if I can use it for ordinary functionality testing. For example: I have a malformed XML and an application returns `400 Bad Request` which I expect to be returned - so it's correct but JMeter resolves it as a failure. I tried Response Assertions but it didn't work... Is this possible with JMeter?

Original source

Related problems