Software Testing Learning Hub

Parameterization in QTP

parameterization

Parameterization is a process in which parameters, or variables are substituted for hard-coded values which help perform the same operations on the AUT (application under test) with multiple sets of data.Executing the test again and again with same set of data will not help to identify accurate test script result.

Parameterization techniques helps to access the test data through different sources and via different ways. parameterization technique needs to be identified in advance and have to do the scripting according to the selected parameterization technique.

There are four types of parameters:

  • Actions/Test- Test,action or component parameters enable you to use values passed from your test or component, or
    values from other actions in your test.This is run-time parameterization. Action or test run-time generates an output with the script and pass it to your action.
  • Data table- Data Table parameters enable you to create a data-driven test (or action) that runs several times using the data you provide. In each repetition, QTP uses a different values provided in data sheet.data can be stored in excel file.
  • Environmental Parameters-Environment variable parameters enable you to use variable values from other sources during the run session. These may be values you supply, or values that QuickTest generates for you based on conditions and
    options you choose.
  • Random number/names Parameters-Random number/names parameters used when test requires a unique set of values.
    For examle- If test needs an unique set of numbers then random number parameterization method can be used

Selection of parameterization technique is depend on the QA preference and framework structure.