JMeter tutorial 17 - How to use Functions and Variables in JMeter

Published: 19 June 2019
on channel: Quality Assurance Lab
18,829
148

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  


Watch video JMeter tutorial 17 - How to use Functions and Variables in JMeter online without registration, duration hours minute second in high quality. This video was added by user Quality Assurance Lab 19 June 2019, don't forget to share it with your friends and acquaintances, it has been viewed on our site 18,829 once and liked it 148 people.