In the process of using Jmeter to test the interface, in addition to using fixed request parameters and CSV file filling. Sometimes we may want to use some random values. Jmeter provides this ability through Jmeter functions.
1. View function expressions
-
Before using Jmeter functions, first look at which functions are supported
-
Open the function assistant dialog box
-
For example: UUID function
-
For example, the random string function
- For example: MD summary algorithm
Use function expressions
- Copy the function expression we generated in the previous step:
${__RandomString(4,abcdefg123456,)}
- Note that there are no single or double quotes
- Note that there are no single or double quotes
View request results
- It’s already a random value