Guy
Guy

Reputation: 820

JMeter - How to put a variable in Parameter Values for Prepared Select

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

But I want to know if I can set the "Parameter values" value in the JDBC Prepared Select using the following technique, involving Set Variable or User Variables.

You can see that when I try this, I get the errors below.

Note: The following did work: enter image description here

2

Upvotes: 0

Views: 815

Answers (1)

Dmitri T
Dmitri T

Reputation: 168217

The correct syntax for __V() function would be:

${__V(consumer_id_${counter})}

If you're uncertain with the proper syntax go for the Function Helper Dialog

More information: Here’s What to Do to Combine Multiple JMeter Variables

Upvotes: 1

Related Questions