Jmeter中未执行模块控制器中的请求 [英] Request in Module controller is not executed in Jmeter

查看:59
本文介绍了Jmeter中未执行模块控制器中的请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我向简单控制器添加了一个HTTP请求,向模块控制器1添加了一个HTTP请求,向模块控制器2添加了一个HTTP请求,如下图.

线程数:1

升级:1

人口总数:1

运行程序后,不执行2个Module控制器中的请求,而Simple控制器中的Request使用http和https运行2次?为什么简单控制器中的请求"使用http和https运行2次?为什么不执行2个Module控制器中的请求?有人可以帮我解释一下吗?预先感谢您的帮助.

解决方案

我不知道为什么为什么不执行2个模块控制器中的请求"?由于您不必费心显示模块控制器的配置,因此下图给出了最简单的设置:

关于使用http和https运行2次",-它是您的服务器,它执行

但是,我认为您需要与真实浏览器交叉检查请求的性质/流,如果真实浏览器执行了重定向-JMeter也必须这样做,这同样适用于嵌入式资源, 解决方案

I have no idea why "Why requests in 2 Module controllers aren't executed" as you didn't bother to show your Module Controller configuration, the simplest setup is given in the below image:

With regards to the "run 2 time with http and https" - it's your server which performs the redirection, if you're absolutely sure that you don't want this redirect to happen - you can untick the Redirect Automatically and Follow Redirects boxes in the HTTP Request sampler (or even better in the HTTP Request Defaults)

However I do believe you need to cross check the requests nature/flow with the real browser, if the real browser does the redirection - so must JMeter do, same applies to embedded resources, headers, cache, etc.

这篇关于Jmeter中未执行模块控制器中的请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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