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

preview_player
Показать описание
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:

Рекомендации по теме
Комментарии
Автор

How should I declare global variable which can be used between multiple thread groups? Thanks.

abridgetool
Автор

It increments value by 2 as like 2, 4, 6, 8... not as 1, 2, 3, 4. I am using the same as is ${__counter(, )} function. What could be the possible cause that it increment by 2 in place of 1? Support please.

Belalakhtar
Автор

Hi. How to send content-Length in jmeter headers. its dynamically changing the value for each request

tulasiraochintala
Автор

How to use functions in the text file.I am using a csv to read test data and want to update some values in the text file using the functiins

TheBharat
Автор

How can we pass the form parameters Jmeter...I have viewed all your videos.. did not find

kirankumaralam
Автор

Hi, I'm using having http request under which i have one jdbc preprocessor. This preprocessor would run a query and will fetch a field which can either be a integer or a null value. Under jdbc preprocessor I have variable name as abc. Now i want to pass value of this ${abc} variable to http request json field say "pqr" : ${abc} . So when ${abc} holds intger value it works fine but if it has null value it returns ${abc} instead of null . How to make this work, would you please assist. As my requirement is also to pass null

shirsN
Автор

How to pass value from one thread to another ? ( how to set global variable ) ?

MultiDpz
Автор

I need a help!
How can I extract JSON value from the encrypted value This is in Base64 encrypted format.
After Decode.
is there any function or Javascript library?

vikasviky
Автор

Can you explain the random function and how to create Random values from csv file ....like when we need different values for sign up - userid and password. Can you please create a video on this

Imdeeparajan
Автор

Can you tell me how to use utc date and time zone in jmeter

kranthikumar
join shbcf.ru