当前位置:网站首页>JMeter function assistant - random value, random string, fixed value random extraction

JMeter function assistant - random value, random string, fixed value random extraction

2022-07-07 06:13:00 Migu! Little southern country conducts tests

Random  ( random number )、RandomString   ( Random string )、

RandomFromMultipleVars  ( Fixed value random extraction ) 

Random function +CSVRead function   ( Random extraction of fixed values in the file )

Random extraction of numbers

One 、 find Random function    

Two 、 By entering two pure numbers —— Control the range of random numbers —— The generated value contains the maximum value and the minimum value  

3、 ... and 、 Click generation , You can directly copy , Paste directly when using

String random extraction

One 、 find RandomString function

Two 、1、 Fill in the string length     2、 Fill in the characters contained in this string   0-9、a-z、A-z

3、 ... and 、 Click generation , You can directly copy , Paste directly when using

Fixed value random extraction method 1 、   Use User defined variables +RandomFromMultipleVars function

One 、 Find and add custom variables —— Values to be random —— Add a variable to each value

Two 、 find RandomFromMultipleVars function   (1) Fill in multiple user-defined variable names with | separate   (2) Just leave it blank

3、 ... and 、 Click generation , You can directly copy , Paste directly when using

Fixed value random extraction method II 、  Use   Random function +CSVRead function

One 、 To write text file , Multiple data are written in the same column separated by commas

Two 、 adopt Random function   Minimum 0 Maximum total number of columns -1 ( Random column )

3、 ... and 、 adopt CSVRead function   (1) Point to the text path where the data is located + file name (2) Fill in the generated Random function

原网站

版权声明
本文为[Migu! Little southern country conducts tests]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207070107530108.html