This is the seventeenth video of JMeter Tutorial series which covers how to use functions and variables in JMeter
Learning:
Functions:
• Values that can populate fields of any sampler or other element in a test tree
• Syntax: ${__functionName(par1, par2, par3…..)}, ${__functionName}
• Functions are case sensitive
Variables:
• Container to store values
• Syntax: ${variableName}
• Variables are local to a thread group
Function examples:
• Log – to log messages
Example: ${__log(hello Jmeter)}
• BeanShell – It evaluates the script passed to it and returns the result
Example: ${__BeanShell(1234*678,)} , ${__BeanShell(234*67,variable1)}
• Time – returns current time in various formats
Example: ${__time(dd/MM/yyyy,date)}
• Counter – Generates a new number each time it is called, starting from 1, and it gets incremented every time by +1
Example: ${__counter(,)}
==================================================================
Automation Anywhere Tutorial Playlist:
• Automation Anywhere A11 Tutorial
Subscribe for more tutorials - / @qualityassurancelab7764