JMeter-如何将变量放入准备好的选择的参数值中

问题描述

我读了https://www.blazemeter.com/blog/how-to-initialize-database-variables-and-assign-them-values-for-multiple-thread-groups

但是我想知道是否可以使用以下涉及设置变量或用户变量的技术在JDBC Prepared Select中设置“参数值”值。

您可以看到,当我尝试此操作时,出现以下错误

注意:以下操作有效:

enter image description here

2

解决方法

__V() function的正确语法为:

${__V(consumer_id_${counter})}

如果不确定语法是否正确,请使用Function Helper Dialog

更多信息:Here’s What to Do to Combine Multiple JMeter Variables