Nick
Nick

Reputation: 1

Response code 410 in jmeter

I am trying to load-test a web application using JMeter. I used proxy and then run the test. I am able to login into the application, but for some pages it is giving response code 410 in J Meter.

I tried to ignore the error by adding Bean Shell Post Processor to the test script by writing the following code in it:

if (prev.getResponseCode().equals("410") == true) { 
    prev.setResponseOK(); }

However, the response in View Results tree is visible intermediately and the script is getting executed.

I need help to resolve the 410 error.

Upvotes: 0

Views: 739

Answers (1)

UBIK LOAD PACK
UBIK LOAD PACK

Reputation: 34566

Add a Response Assertion and check "Ignore Status":

enter image description here

Upvotes: 0

Related Questions