JMeter-具有可变循环计数的循环控制器 [英] JMeter - loop controller with variable loop count

查看:207
本文介绍了JMeter-具有可变循环计数的循环控制器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用JMeter,我想定义一个循环控制器.在此循环中,我想使用Jmeter变量定义循环计数.这可能吗?

I am using JMeter and I want to define one loop controller. In this loop I want to define the loop count with a Jmeter variable. Is this posible?

非常感谢

推荐答案

我知道为您提供帮助的时间很晚,但是可以帮助其他人.

I know is very late to help you, but it can help the others.

一种好的方法是在循环内定义计数器控制器.

One good way to do this is to define a counter inside the loop controller.

例如,如果要循环执行20次迭代,则将20放入循环控制器,并将0到19放入计数器.在计数器中,您还可以定义增量.输出变量在Reference Name字段中命名.

Example, if you want a loop with 20 iterations, you put 20 in the loop controller and in the counter you put from 0 - 19. In the counter you can also define an increment. The output variable is named in the Reference Name field.

这篇关于JMeter-具有可变循环计数的循环控制器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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