JMeter __longSum 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 longSum function can be used to compute the sum of two or more long values, use this instead of __intSum whenever you know your values will not be in the interval -2147483648 to 2147483647.
| Name | Required | Description |
|---|---|---|
| First argument | Yes | The first long value. |
| Second argument | Yes | The second long value. |
| nth argument | No | The nth long value. |
| last argument | No | A 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 long value to be added. |
Examples:
\${__longSum(2,5,MYVAR)}will return 7 (2+5) and store the result in MYVAR variable. So \${MYVAR} will be equal to 7.
\${__longSum(2,5,7)}will return 14 (2+5+7) and store the result in MYVAR variable.
\${__longSum(1,2,5,\${MYVAR})}will return 16 if MYVAR value is equal to 8, 1+2+5+${MYVAR})