Parameterization in Load runner
A method to replace a static value with other
values picked external data source like excel or DB or notepad is known as
Parameterization.
Usually, We use parameterization for those
value which are user inputs or static value which can change basis of no of
users
Load runner also has this option. Load runner
provides various types of parameter types to use this feature.
There are various types of
Parameters available in load runner:
1.
File
2.
Table
3.
XML
4.
Random Number
5.
Iteration Number
6.
Unique Number
7.
Load
generator Name
8.
Date/Time
9.
Vuser
ID
10.
User-Defined
parameter.
1/2. File and Table:
When a file type or
table type parameter is used, a .dat file is created. By default all
the data files are named as <Parameter Name>.dat and are stored in the
script’s directory.
3. XML type parameters:
XML Parameter Types
are used for multiple valued data contained in an XML structure. It replaces a
complex structure in which an array can be made a part of another array.
The complex
structure as required in a web-service call can be replaced with a single XML
parameter.
XML parameterization
helps to have input of the data, and enables efficient parameterization of
Vuser scripts.
XML parameters are
widely used with Web Service scripts and with SOA services.
4. Random Number:
Random Number replaces the
parameter with a random number. While creating random type parameter, a minimum
and maximum value of the range (the range, out of which the random number is
planned to be selected) is required to be set.
5. Iteration Number:
Iteration number parameter type replaces the parameter name with Vuser’s current iteration number.
6. Unique Number:
Unique number
parameter replaces the parameter with a unique value. This value is taken from
the range set by entering the start value and the size of the range.
7. LoadGenerator Name:
A LoadGenerator is
the machine on which Vusers perform the steps as in the scripts. During test
execution, Load Generator Name type parameter replaces the parameter
8. Date/Time parameter type:
A Date/time
parameter replaces the parameter with a date and/or time. One can specify one’s
own format of date/time representation.
9. Vuser Id parameter type:
A Vuser ID replaces
the parameter with the ID number assigned to the Vuser by the Controller during
a scenario run. When you run a script from VuGen, the Vuser ID is always 1.
10. User defined parameter type:
A User defined
parameter type is a user-defined function in which call to the function is made
and the value returned by the function replaces the parameter name.
Happy
Exploration!!!!
Comments
Post a Comment