什么时候使用“跟随重定向"? & “自动重定向";同时用jmeter录制. [英] When to use "Follow Redirects" & "Redirect Automatically" while recording with jmeter.

查看:115
本文介绍了什么时候使用“跟随重定向"? & “自动重定向";同时用jmeter录制.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道在使用Jmeter进行录制时,跟随重定向自动重定向之间的区别. 同样,与从HTML检索所有嵌入式资源

I want to know the difference between Follow Redirects and Redirect Automatically while recording with Jmeter. Also what effect will both these have when used with Retrieve all Embedded Resources from HTML

推荐答案

Redirect automatically,不会将重定向视为单独的请求 其中Follow redirects将每个重定向视为一个单独的请求.

Redirect automatically, will not consider redirect as a separate request where as Follow redirects will consider each redirection as a separate request.

此差异可以在侦听器(查看结果树)中显示.

This difference can be visualized in the Listener (View Results Tree).

如果选中了Retrieve all Embedded Resources from HTML,它将为您提供Page Load Time,因为除了响应时间外,它还将继续计算直到将html页面的所有支持文件下载到本地所需的时间(CSS,图像,Javascript文件等.)

If Retrieve all Embedded Resources from HTML is checked, it will give you Page Load Time, since apart from response time it will keep on calculating the time taken till all the supporting files of html page have been downloaded to Local (CSS, Images, Javascript files.. etc.)

此外,如果需要从重定向请求中捕获任何值,则需要设置配置,然后进行重定向,否则将无法使用提取器捕获这些数据(例如,设置cookie值)

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)

希望这会有所帮助.

这篇关于什么时候使用“跟随重定向"? & “自动重定向";同时用jmeter录制.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆