I know In general JMeter automatically treats samplers with HTTP Status Code above 400 as failed , but I am doing the security testing for the API's such as 403 forbidden.
Snice I expect 403 forbidden error, how do I make Report is PASSED for 403 forbidden error.
CodePudding user response:
- It will suppress JMeter's automatic marking HTTP Status Codes above 400 as failed
- It will check whether response code is equal to 403 and fail the Sampler(s) in the Assertion's scope in the opposite case
More information: What Are JMeter Response Assertions?