|
Functions
Additional FunctionsIn addition to standard JMeter functions we provide: doubleSumsince 0.4.2This function used to compute the sum of two or more floating point values. Parameters:
Example, returning 8.3 and also saving it to variable sumVariable: ${__doubleSum(3.5, 4.7, sumVariable)}strLensince 0.4.2This function used to compute the length of constant string or variable value. Parameters:
Example, returning 11 and also saving it to variable lenVariable: ${__strLen(test string, lenVariable)}Example, returning length of variable varName: ${__strLen(${varName})}uppercase and lowercasesince 0.4.2This functions used to transform the case of constant string or variable value. Parameters:
Example, transforming 'test' into 'TEST' and also saving it to variable someVariable: ${__uppercase(test, someVariable)}MD5since 0.4.2This function used to calculate MD5 hash of constant string or variable value. Parameters:
Example, calculating MD5 for 'test': ${__MD5(test)}isDefinedsince 0.4.2This function used to determine if variable was already defined. Returns 1 if variable was defined, 0 instead. Parameters:
Example, getting defined status for variable name 'testVar': ${__isDefined(testVar)}substringsince 0.4.2This function is wrapper for Java String.substring method. Parameters:
Example, getting 'str' from 'test string': ${__substring(test string, 5, 8)}
| |

A function for base 64 encode and decode would be nice to have, so as not to need to rely on external code to use with JMeter.
And perhaps also function to decrement a value - opposite of intSum and counter