jMeter - Functions



JMeter Functions and User Variables

JMeter functions are special values that can populate fields of any Sampler or other element in a test tree.

  • A function call looks like this −
${__functionName(var1,var2,var3)}
  • _functionName matches the name of a function. For example, ${__threadNum}.
  • If a function parameter contains a comma, then make sure you escape this with "\" as shown below −
${__time(EEE\, d MMM yyyy)}
    Variables are referenced as −
${VARIABLE}
Advertisements