Skip to content

__changeCase

JMeter __changeCase 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 change case function returns a string value which case has been changed following a specific mode. Result can optionally be saved in a JMeter variable.

NameRequiredDescription
String to change caseYesThe String which case will be changed
change case modeNoThe mode to be used to change case, for example for ab-CD eF: - UPPER result as AB-CD EF - LOWER result as ab-cd ed - CAPITALIZE result as Ab-CD eF :::note change case mode is case insensitive ::: If no mode is given, UPPER is used as default.
Name of variableNoThe name of the variable to set.

Examples:

Terminal window
\${__changeCase(Avaro omnia desunt\, inopi pauca\, sapienti nihil,UPPER,)}

will return AVARO OMNIA DESUNT, INOPI PAUCA, SAPIENTI NIHIL

Terminal window
\${__changeCase(LABOR OMNIA VINCIT IMPROBUS,LOWER,)}

will return labor omnia vincit improbus

Terminal window
\${__changeCase(omnibus viis romam pervenitur,CAPITALIZE,)}

will return Omnibus viis romam pervenitur

On this page