jmeter-基于数据库查询的循环 [英] jmeter - Looping based on DB query

查看:138
本文介绍了jmeter-基于数据库查询的循环的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要根据数据库查询告诉循环计数器循环x次.

I need to tell my loop counter to loop x Times, based on the DB query.

我的情况如下

Execute the query
Count the lines
based on dynamic response from JDBC request, i need to place my looping logic

感谢您的帮助

推荐答案

只需在

Just define a JMeter Variable in the "Variable Names" field of the JDBC Request, i.e. put url there:

这样,您将获得以下 JMeter变量:

因此,您将可以使用${url_#}作为循环控制器中匹配行数的参考.

So you will be able to use ${url_#} as the reference to the number of the matching rows in the Loop Controller.

更多信息:在JMeter中调试JDBC Sampler结果

P.S.使用 ForEach控制器

这篇关于jmeter-基于数据库查询的循环的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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