Skip to content

__setProperty

JMeter __setProperty function reference: syntax, parameters, and practical examples for parameterizing test plans with dynamic values.

Difficulty
intermediate
Guide type
reference
Estimated read time
1 min read
Last verified version
Verified JMeter 5.6

Also documented in context in the full Functions and Variables reference.

The setProperty function sets the value of a JMeter property. The default return value from the function is the empty string, so the function call can be used anywhere functions are valid.

The original value can be returned by setting the optional 3rd parameter to โ€œtrueโ€.

Properties are global to JMeter, so can be used to communicate between threads and thread groups

NameRequiredDescription
Property NameYesThe property name to be set.
Property ValueYesThe value for the property.
True/FalseNoShould the original value be returned?
On this page