LoadRunner script development: common function parameter list and (c)

A parameterized: Design> Parameters> Parameters lists

1. Parameter Properties

  Parameter type

2. create table > edit with notepad

  Add Columns

  Add Rows

3. select 

The first way parameterized:

 

 The second way parameterized

 

 

 

 To replace a certain value, the Original value needs to be changed to the value

Parameter type

 

Parameter type description
Custom Replace ordinary general parameters
Date/Time Date / time parameter that can specify different formats time
File Text type, read the contents of .bat files, content can be edited in the table below, can be more columns, separated by commas
GroupName Users belonging to the group (when running script)
Iteration Number Replace the iteration number of iterations number parameter vuser
Load Generator Name Controller name
Random Number A random number, to set minimum and maximum values, the values ​​used within a certain range or percentage of tasks distributed vuser
Table And the same text file
Unique Number The only value
User Defined Function User-defined functions
VuserID User id
xml Xml for multi-valued data structure containing, in this structure, an array could be part of another array. Often used in xml soap service or service

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Parametric values

Select next row

Sequential

order According to the parameters of the sequence, from top to bottom
Random random Data from the parameter, the random value
Unique only Assign a unique data for each virtual user
Update value on Each iteration Each iteration Each iteration takes a new value
Each occurrence Each occurrence Every parameter values ​​have taken a new value
once once Data is taken only once a

 

 

 

 

 

 

 

 

 

other

 

二. custom type

 

 

 

 

 

三. File:sequential_eachiteration

 

 

 

 

 

四. File:sequential_echooccurrence

 

 

 

 

 

五. File:unique_eachoccurrence

I.: Abort Vuser: stop the test

 

 

 

 

 

Case 2: Continue in a cyclic manner: the value of recycling and re-start a new round of unique values

 

 

 

 

Case three: Continue with last value: The last value in use

 

 

 

 

六. Group Name

 

 

 

七. Iteration Number

 

 

 

Eight. Random Number

 

Guess you like

Origin www.cnblogs.com/my_captain/p/11817184.html