While Controller Jmeter中的正则表达式 [英] Regular expression in While Controller Jmeter

查看:637
本文介绍了While Controller Jmeter中的正则表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用带有条件的While控制器

I am using While Controller with Condition:

${_javaScript("${DONE}" ! = "Resolved and Downloaded";)}

最初是DONE="Not Assigned yet".

几次迭代后,DONE更改并具有值Resolved and Downloaded(我在Debug Sampler中检查了),但是循环继续并且没有退出.

After few iterations DONE changes and has value Resolved and Downloaded (which I check in Debug Sampler) but loop continues and doesn't quit.

我做错了什么,应该怎么做才能使它起作用?

What did I do wrong,What should I do to make it work?

推荐答案

您可以使用if控制器.将if控制器保留为运行时控制器的子代.在运行时控制器中指定最大时间.

You may use if controller.Keeping the if controller as a child of runtime controller.Specify max time in runtime controller.

在If控制器下指定以下内容: "$ {DONE}"!=已解决并下载"

Under If controller specify the following: "${DONE}" !="Resolved and Downloaded"

这篇关于While Controller Jmeter中的正则表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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