Social Icons

Pages

Tuesday 7 October 2014

How to reference variables and functions in JMeter

While writing test plans in JMeter, you will need to use many variables to store some values like command line arguments, random values etc. and different functions to perform different operations.

Referencing variables:
In JMeter, variables are referenced with curly braces and $(dollar sign) i.e. a variable with name var will be referenced as ${var}.


Referencing Functions:
For more information on JMeter function, Please visit: http://www.techopes.com/2014/10/function-in-apache-jmeter.html

In JMeter, Functions are referenced in same way as variables but function names will always start with __ i.e. twi underscores.

So, a function with name threadNum will be referenced as ${__threadNum}

No comments:

Post a Comment

Please Comment for Any question or suggestions