Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What happens with redirects when asserting HTTP responses?

0
Posted

What happens with redirects when asserting HTTP responses?

0

Assertions aren’t smart enough to do the right thing with redirected requests – currently the 302 response would be asserted against. You can get around this by recording your test plans and leaving “follow redirects” off. Alternatively, the latest JMeter release (after 1.9.1) has an option to allow the redirects to be handled by the Java libary routines. Earlier versions of Java did not support redirects properly, but if you want to try, just define the following JMeter property: HTTPSampler.delegateRedirects=true JMeter will then not see the redirects at all.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.