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

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

问题描述

我想知道在使用 Jmeter 录制时跟随重定向自动重定向之间的区别.当与 Retrieve all Embedded Resources from 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天全站免登陆