(4) Jmeter parameterized function assistant/use random function/random parameters

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
    Insert image description here

  • For example: UUID function
    Insert image description here

  • For example, the random string function

Insert image description here

  • For example: MD summary algorithm
    Insert image description here

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
      Insert image description here

View request results

  • It’s already a random value
    Insert image description here
    Insert image description here

Guess you like

Origin blog.csdn.net/futao__/article/details/127556389