What is Parameterization?

Parameterization

What is Parameterization?

Parameter is a container which is used to hold the values which are used in Vugen script.  Parameterization is used to send the different values(Unique values) to the Vugen script  from the parameter file. It will helps a single virtual vuser to use different data on each run. This simulates real-life usage of an application as it avoids server from caching results.

Example : During the test execution we need to use different username to log into the application. So instead of creating different script with different user name, we can create a single script and parameterize the username value. Therefore during the execution the parameter will send the unique values to application for login.

Different type of Parameterization present in LoadRunnner

Below are the list of parameter present in load runner which will be used for specific purpose.

Date/Time : 

  • Date/Time parameter replaces the value in the script which contains date or time.
  • There are multiple format o combination present in the date/time.
  • One can add there own format or prefix with the words along with date/time representation. It is mainly used to create unique names like customer name during the script execution.
  • During execution if you want the script to replace the date/time parameter only once or for each iteration or each occurrence. Therefore  you need to select the value appropriate to your condition from the Update Value on drop down menu.Parameterization DataTime

File:

  • It is used to pass the specific values to the application.
  • You can combine two file parameter into one using common or tab separator.
  • One can specific from which line the values need to be picked from the parameter file in First Data Line field.
  • Specific how the next row of data can be picked like Sequential or Unique or Unique or Select line as per other parameter in the Select Next Row field.
  • Update Value on field is used to specific when to pick the next data in the parameter like Each iteration or Once or Each Occurrence.
  • Most importantly you need to specific what should the script do if the data in the parameter file is finished. Continue with the last value or Abort script can be selected in When Out of  Values filed.

Parameterization File

Group Name:

  • We can generate a parameter on the basis of group that we select on controller for the script while execution.
  • This parameter will only work while running the script on controller.
  • One can add there own format or prefix with the words.

Parameterization Group

Iteration Number:

  • It will use the current iteration number in parameter file.
  • Used to see which iteration was failed during the execution.
  • It can also used to do some logic in the script. That is on how many iteration your export transaction should run.
  • One can add there own format or prefix with the words.

Parameterization Iteration

Load Generator Name :

  • You will get to know which load generator was used for your execution. Therefore you can check if there is any issue with the load generator.
  • Parameter only works while running the script on controller or performance center.
  • It can also used to check if the script is failing due to any one specific lg using this parameter.
  • One can add there own format or prefix with the words.

Parameterization LG

Random Number :

  • One can generate random values in this parameter file.
  • You can also specific the min and max values. Therefore the random value will be generated between in the min and max values.
  • Update Value on field used to specific when the value need to be generate.

Parameterization Random

Table :

  • Table parameter is same as File Parameter.
  • It is used to pass the specific values to the application.
  • You can combine two file parameter into one using common or tab separator.

Parameterization Table

Unique Number :

  • It will generate the unique value in this parameter.
  • One can also specific what should be the starting number of the unique value in Number range : Start filed.
  • Number of unique values for each user can be specified in Number Range : Block Size Per Vuser field.
  • Update Value on field used to specific when the value need to be generate.
  • Most importantly you need to specific what should the script do if the data in the parameter file is finished. Continue with the last value or Abort script can be selected in When Out of  Values filed.

Parameterization Unique

User  Define Function :

  • It is used to create you function where you need to pass some specific type of values.
  • Function Name can be specified in Function Name field.
  • You can browser some missing dll to the script in this parameter file.

Parameterization User

Vuser ID :

  • It will be used to provide a unique value for each Vuser id during the execution.
  • One can add there own format or prefix with the words.

Parameterization Vuser

XML :

  • XML Parameter Types are used for multiple valued data contained in an XML structure.
  • This parameters are widely used with Web Service scripts and with SOA services.

Parameterization XML

One thought on “What is Parameterization?

Leave a Reply

Your email address will not be published. Required fields are marked *