Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: [Original edit by JMeterAdmin]

...

No Format
 ${__property(host1)} and 
 ${__property(host2)} 

Wiki MarkupNote: Thread Groups are slightly different from other test elements, because their settings have to be determined before the test starts. This means that you cannot use variables defined in a User Parameters form\["as far as I could tell"\]. But the __property() function works in Thread Groups. Groups, and you can use variables defined on the Test Plan.

For example, you could define the TestPlan variable:

THREADS ${__P(threads,10)}

and then use ${THREADS} in the ThreadGroup test element.

Elsewhere, you can use function calls, or variable references to User Parameters (which in turn could be functions), or variable references to variables set up by functions earlier in the test. There's more than one way to do it.

...