Input Parameter: Enables you to run a Test using different sets of input values.
For example, you can use Input parameter to select different destinations for the same source in the Flight Reservation Application.

Replacing Static Data with Input Parameters:

Input parameters enable you to replace a static recorded value in a step with a placeholder for a dynamic value. This placeholder is called a parameter and enables you to use multiple values during the test run. Input parameter names and their values are located in Data table.

Setting the Parameter Value:

To set the parameter value:

  1. In KEYWORD VIEW, select the step that contains the recorded input value.
  2. In the VALUE column, click to display the CONFIGURE THE VALUE button.
  3. Click the CONFIGURE THE VALUE button. The VALUE CONFIGURATION Options dialog box appears.
  4. In the VALUE CONFIGURATION OPTIONS dialog box, select the PARAMETER option. Ensure that the DATATABLE is selected from the PARAMETER list.
  5. In the NAME field, type a unique column name to create a new column in your DATA TABLE or select an existing column name from the NAME list.
  6. Use the default Global SHEET to store the value.
  7. Click OK.
  8. In the QUICKTEST PROFESSIONAL window, enter the values in DATA TABLE that
    will be used during the test run.

Supplying Data to the Parameter:

The design-time table is the central location to store input parameter values. Enter the parameter values in DATA TABLE. The number of rows in DATA TABLE is the number of test Iterations of the test run.

Setting the Number of Iterations:

You can specify the number of rows of DATA TABLE that will be executed during a test run. To do so, from the QuickTest Professional menu bar, select FILE ? SETTINGS. The TEST SETTINGS dialog box appears. In the TEST SETTINGS dialog box, click the RUN tab.

You can select from the following options to specify DATA TABLE iterations:

  • RUN ONE ITERATION ONLY
  • RUN ON ALL ROWS
  • RUN FROM ROW TO ROW (Run a range of rows)

Note: Do not leave a blank row at the end of DATA TABLE. If you enter data on the last row and delete it, you create a cell that QuickTest considers filled with a blank value. During the test run, QuickTest tries to run the test for the blank value and generates an error. To avoid this problem, in the QUICKTEST PROFESSIONAL window, in DATA TABLE, select the cell or the row from where you deleted the data. From the menu bar, select EDIT ? DELETE.