How and What to parameterized using Parameterization in QTP

Test can be enhanced by parameterizing the values that it uses. A parameter is a variable that is assigned a value from an external data source or generator.Following values can be parameterized:


  •        Checkpoints
  •        Object properties for a selected step
  •        Operation arguments defined for a selected step.
  •        One or more properties of an object stored in the local object repository. 

Values can be parameterized using:

  •       Test/action parameters
  •       DataTable parameters
  •       Environment Variable parameters
  •       Using Random number parameters

Parameter Types: 

Following are the parameter types used for parameterization


·        Test/action parameters:

 Test parameters enable to use values passed from the test. Action parameters enable to pass values from other actions in the test. 

·         Data Table parameters: 

Enables to create a data-driven test (or action) that runs several times using the data supplied. In each repetition, or iteration, QTP uses a different value from the data table

·        Environment variable parameters:


 Enables to use variable values from other sources during the run session. These may be values supplied, or values that QTP generates based on conditions and options

·        Random number parameters. 

Enables to insert random numbers as values in the test


2 comments: