jmeter - 基于DB查询的循环。

问题描述 投票:0回答:1

我需要根据DB查询,告诉我的循环计数器循环x次。

enter image description here

我的方案如下

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

enter image description here

感谢任何帮助

jmeter
1个回答
1
投票

只要在 "变量名 "字段中定义一个JMeter变量就可以了。JDBC请求即把 url 那里。

enter image description here

这样你就会得到以下信息 JMeter变量:

enter image description here

所以你将能够使用 ${url_#} 作为对循环控制器中匹配行数的引用。

更多信息。调试JMeter中的JDBC采样结果

P.S.可能更容易使用 对于每个控制器

© www.soinside.com 2019 - 2024. All rights reserved.