Jmeter中未执行模块控制器中的请求 [英] Request in Module controller is not executed in 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 added one HTTP Request to Simple controller, one HTTP request to Module Controller 1, one HTTP Request to Module Controller 2 as the following image.
Number of threads: 1
Ramp-up:1
Lopp count: 1
After running program, Requests in 2 Module controllers aren't executed, and Request in Simple controller run 2 times with http and https? Why Request in Simple controller run 2 time with http and https? and Why requests in 2 Module controllers aren't executed? Could anyone can help me to explain in this? Thanks in advance for your help.
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屋!