I am trying to create a set of dynamic parameters in Jmeter Ultimate thread Groups, which will be inserted from Jenkins. Variables are set on Test Plan level and are definitely read and recognized:

  • holdLoad: ${__P(holdLoad,240)}
  • startupTime: ${__P(startupTime,30)}
  • threadcount: ${__P(threadCount,25)}
  • serverUrl, ....

Now in thread groups, I want to execute the following:

  • StartThreadsCount = ${threadCount}
  • Hold Load (sec): ${holdLoad}*10
  • Initial Delay: ${startupTime}*4

Unfortunately this is not filled up correctly during execution. The Hold Load should multiply the value by 10 (or other depending on the row), but it actually runs in 10 seconds, ignoring the first part. Other are treated same.

Is there any way to use such dynamic counts? Or does it always have to be a number? UTG is very important for us, we are using stepping thread group for assessing the servers capabilities.

enter image description here

1 Answer 1


Your ${startupTime}*2 expression doesn't make sense as it's being interpreted into 30*2

If you want JMeter to evaluate the arithmetic expression you need to wrap it into a function which can interpret the expression, for example __jexl3() function is a good candidate:


More information on JMeter Functions concept: Apache JMeter Functions - An Introduction

  • Thank you! That works!
    – LadyRoot
    Aug 25, 2023 at 17:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.