JMeter __changeCase function reference: syntax, parameters, and practical examples for parameterizing test plans with dynamic values.
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.
| Name | Required | Description |
|---|---|---|
| String to change case | Yes | The String which case will be changed |
| change case mode | No | The 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 variable | No | The name of the variable to set. |
Examples:
\${__changeCase(Avaro omnia desunt\, inopi pauca\, sapienti nihil,UPPER,)}will return AVARO OMNIA DESUNT, INOPI PAUCA, SAPIENTI NIHIL
\${__changeCase(LABOR OMNIA VINCIT IMPROBUS,LOWER,)}will return labor omnia vincit improbus
\${__changeCase(omnibus viis romam pervenitur,CAPITALIZE,)}will return Omnibus viis romam pervenitur