如何在 JMeter 中显示实际循环计数 [英] How to display actual loop count in JMeter

查看:41
本文介绍了如何在 JMeter 中显示实际循环计数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以通过以下方式显示实际线程:${__threadNum}

We can display the actual thread by: ${__threadNum}

实际循环次数是否有类似的东西?

Is there something similar for the actual loop count?

推荐答案

可以使用${__jm__Thread Group__idx}获取当前循环迭代

You can use ${__jm__Thread Group__idx} to get current loop iteration

${__jm__Thread Group__idx}

请注意,这是 JMeter 5 中用于公开 循环计数

Notice this is part of a general enhancement in JMeter 5 for exposing the loop count

虽然 Controller 现在导出一个变量,该变量包含其名为 __jm__<您的元素的名称>__idx 的当前索引.所以举个例子,如果你的While Controller被命名为WC,那么你可以通过${__jm__WC__idx}

While Controller now exports a variable containing its current index named __jm__<Name of your element>__idx. So for example, if your While Controller is named WC, then you can access the looping index through ${__jm__WC__idx}

这篇关于如何在 JMeter 中显示实际循环计数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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