Home > Enterprise >  How to make 403 error is oaky for API testing in Jmeter
How to make 403 error is oaky for API testing in Jmeter

Time:12-15

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:

You can check for enter image description here

  1. It will suppress JMeter's automatic marking HTTP Status Codes above 400 as failed
  2. 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?

  • Related