Skip to content

__intSum

JMeter __intSum 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 intSum function can be used to compute the sum of two or more integer values.

NameRequiredDescription
First argumentYesThe first int value.
Second argumentYesThe second int value.
nth argumentNoThe nth int value.
last argumentNoA reference name for reusing the value computed by this function. If specified, the reference name must contain at least one non-numeric character otherwise it will be treated as another int value to be added.

Examples:

Terminal window
\${__intSum(2,5,MYVAR)}

will return 7 (2+5) and store the result in MYVAR variable. So \${MYVAR} will be equal to 7.

Terminal window
\${__intSum(2,5,7)}

will return 14 (2+5+7) and store the result in MYVAR variable.

Terminal window
\${__intSum(1,2,5,\${MYVAR})}

will return 16 if MYVAR value is equal to 8, 1+2+5+${MYVAR})

On this page