Jmeter generated using the random function and data csv file

A. Generating a random variable and

  1, add a random variable (random variable), right-click on a test plan (Test Plan).

    

    2, set random variable name, style, range

    

    3, began to quote

    

    Description: $ {name} # $ {} writing format is fixed, the intermediate braces need to refer to the name of the variable

    5, is provided with random variables helper functions

    1) int (Digital) type

    

    2) Type String

    

II. Csv file using data

  1 Prepare your csv file

  Create a txt file, enter the following, save as csv file (encoded as UTF-8), each change saved in txt document 每组数据以英文逗号分隔

  

  

  2, right-click on a test plan (Test Plan), Add -> configuration elements -> CSV Data Set Config (data file settings)

  

  3. Configure CSV Data Set Config (data file settings)

  

  age and sex representative of this line has two data (name easily take it), the two read data are respectively assigned to the age and sex (cycle time, using the data of the first row, a second row of two cycles data, the data row again over the first line from the top down)

  4, start using variables

  

 

Guess you like

Origin www.cnblogs.com/zhouxuyang1/p/10932428.html