Parametrization

Two tasks for Parametrization in LoadRunner:

  • Replacing the constant values with parameters (in Vuser script)
  • Setting the properties and data source for the parameters

Rest of the article will continue after below advertisement:

Sponsored Links:

Limitation of Parametrization in LoadRunner – Text strings that are not function arguments can not be parametrize.

Creating Parameters:

  • In the script View, select the string and right click on it. Then, select the replace with parameter.
  • Type the Name of the parameter in the new opened small window / popup. You can also select it from drop down. Then, select parameter type from the parameter type list. You may select any of the available types: Date/Time, file, Group Name, Random number, Unique number, User defined function, or Vuser ID (whichever is appropriate). Next, you may select next row as:
    • Sequential
    • Random
    • Unique
    • Same line as <Pameter_Name>
  • At last, you will need to update values on:
    • Each iteration - It instructs the Vuser to use a new value for each iteration
    • Each occurrence - It instructs the Vuser to use a new value for each occurrence of the parameter
    • Once - It instructs the Vuser to update the value of the parameter only once during the execution

Data wizard is a great option for Parametrization in LoadRunner.

Search more stuff on LoadRunner, Performance Testing and Software Testing:


Categories: Basics Tags:
  1. No comments yet.
  1. No trackbacks yet.

Subscribe & Get FREE LoadRunner & Software Testing Stuff