Skip to content

__evalVar

JMeter __evalVar 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 evalVar function returns the result of evaluating an expression stored in a variable.

This allows one to read a string from a file, and process any variable references in it. For example, if the variable โ€œqueryโ€ contains โ€œselect \${column} from \${table}โ€ and โ€œcolumnโ€ and โ€œtableโ€ contain โ€œnameโ€ and โ€œcustomersโ€, then \${__evalVar(query)} will evaluate as โ€œselect name from customersโ€.

NameRequiredDescription
Variable nameYesThe variable to be evaluated.
On this page