0
votes

I am setting my Jmeter variable using this:

${__setProperty(id_${__threadNum},${id},)}

And using this in another request like this:

${__P(id_${__threadNum},)}

However I want to run the loop instead of the thread. How can i change it to so it is loopNum instead of the thread

Can i use this below when i want to use the loop instead of the thread

I am setting my Jmeter variable using this:

${__setProperty(id_${__iterationNum},${id},)}

And using this in another request like this:

${__P(id_${__iterationNum},)}

This is how i want to run it

enter image description here

1

1 Answers

0
votes

And where do you set this ${__iterationNum} variable? It's not a normal JMeter Function.

And if you have in mind __iterationNum() function which is a part of JMeter Plugins - you first need to install the Custom JMeter Functions bundle using JMeter Plugins Manager and change your syntax to ${__iterationNum}

If you don't want or cannot use the plugins since JMeter 4.0 you can access the current iteration of the Thread Group as:

${__jm__Thread Group__idx}

enter image description here