QTP frame work - Test Parameters

In the Parameters tab of Test Settings, you can define input parameters that pass values into your test or component and output parameters that pass values from your test or

component to external sources. You can also use the Parameters tab to modify or delete existing test or component parameters



The Parameters tab contains two parameter lists:

• Input parameters—Specifies the parameters that receive values from sources that are external to the test or component.

• Output parameters—Specifies the parameters that pass values to sources that are external to the test or component.

You can edit an existing parameter by selecting it in the appropriate list and modifying its details.

You can add and delete input and output parameters for your test or component using the parameter control buttons:

Option

Description

Adds a parameter to the appropriate parameter list. Enter a name for the new parameter and select the parameter type. You can enter a description for the parameter, for example, the purpose of the parameter in the component. If you are defining an input parameter, enter a default value for the parameter in the Default Value column.


You define test or component parameters in the same way you define action parameters.

Removes the selected parameter from the test or component.


Defining Values for Input Parameters

When the test or component runs, QuickTest uses the default value for each defined input parameter if a specific value has not been defined for the parameter in either QuickTest or Quality Center.

When you run a test or business component from QuickTest, input parameter values for tests and components are taken from in the Input Parameters tab of the Run dialog box.

Using Test or Component Parameters

Once you have defined test or component parameters, you insert them in your test or component by specifying the test or component parameter name with the Parameter reserved object, in the format: Parameter("ParameterName").

0 Responses to "QTP frame work - Test Parameters"

Post a Comment