jmeter:同时控制器和csv
我无法执行对 CSV 文件中给出的 URL 列表的所有 GET 请求。
执行顺序如下:
Thread Group HTTP Authorization Manager While Controller CSV Reader HTTP Sampler Summary Results
问题是在 while 控制器中指定什么,以便调用 while 控制器中指定的所有 url 列表?
我尝试了 javascript 和 beanshell 评估:
${__BeanShell(!"${URL}".equals("end"))}
以及 ${URL}
- 但并非所有记录都得到处理 - 知道如何调试这个问题吗?
I am unable to execute all the GET requests to the list of URL given in the CSV file.
The sequence of execution is as follows:
Thread Group HTTP Authorization Manager While Controller CSV Reader HTTP Sampler Summary Results
The questions is what to specify in while controller so that all the list of url's specified in while controller are invoked?
I tried both with javascript and beanshell evaluation:
${__BeanShell(!"${URL}".equals("end"))}
and also with ${URL}
- yet not all records get processed - any idea how to debug this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
该问题与防火墙身份验证有关。在访问页面之前会进行一些防火墙身份验证 - 但这是一次性活动。然而,对于 Jmeter,此身份验证必须是脚本的一部分,否则在一段时间后将无法访问页面。
因此,解决方法是首先将防火墙身份验证作为 Jmeter 脚本的一部分完成,然后继续进行页面访问。
The issue was related to firewall authentication. There is some firewall authentication that is done prior to accessing pages - but that is a one time activity. However, for Jmeter, this authentication has to be part of the script otherwise the pages are not accessible after a period of time.
So the work around is to first have the firewall authentication done as part of Jmeter script and then proceed with the page access.
While 评估 TRUE/FALSE 语句。一旦语句读取到 FALSE,它将停止。
因此,要回答您的问题,您需要指定一些内容,当您希望孩子们运行时返回 TRUE,当您希望孩子们停止时返回 FALSE。
http://jmeter.apache.org/usermanual/component_reference.html#While_Controller
While evaluates a TRUE/FALSE statement. Once the statement reads FALSE, it will stop.
So, to answer your question, you need to specify something that will return TRUE while you want the children to run, and FALSE when you want it to stop.
http://jmeter.apache.org/usermanual/component_reference.html#While_Controller