Difference Between Redirect Automatically and Follow Redirects in JMeter
In this post, we will highlight important difference between Redirect Automatically and Follow Redirects options. These options are found in HTTP Request sampler of JMeter. Knowing the difference will help you decide your performance test strategy.
When you check Redirect Automatically option, JMeter will not consider redirect as separate HTTP request. This in turn may result as lower response time in your overall performance test.
Whereas Follow Redirect option will consider each redirection as separate requests. This may result in comparatively higher response time. This only has any effect if “Redirect Automatically” is not enabled.
To see the difference between these two, record a sample script and run it by checking Redirect Automatically and Follow Redirects option. The second option will generate more requests in your result listener.
As you can see from the above post, knowing the difference between Redirect Automatically and Follow Redirects option makes difference in your performance test. You should derive your performance test strategy keeping this difference in mind.
so ,when should we use redirect automatically ,when should we use redirect follow , Could anybody give us some examples ?
Thank you.
Also if any values needs to be captured from redirect request you need to set configuration a follow redirect otherwise will not be able to capture those data using extractors (set cookie values for example)