Set up and run test configurations

Relevant for: business process tests

Note: This task is part of a higher-level task. For details, see Create and maintain business process tests and flows in UFT.

Prerequisite

Create an Excel file containing your test data, with the following:

  • If you have test parameters: The first sheet must contain the test parameters.

  • A separate sheet for each component with parameters.

  • In the sheets for the components, the columns with the parameter names must use the format <COMPONENT NAME>.<PARAMETER NAME>.

Tip: If you have iterations defined for the components included in your business process test, you can export the iteration and parameter names/values for these components into an Excel file. For details, see Export component parameters to an Excel.

Back to top

Create a test configuration

By default, UFT automatically creates a static test configuration with each business process test, using the name of the test. You can create other test configurations:

  1. In the Properties pane, open the Test Configurations tab .
  2. Do one of the following:

    From a data set
    1. In the Test Configurations tab, click the New button.

    2. In the Open dialog box, navigate to the location (in ALM or the file system) where the Excel file is saved and select the file.

    3. Click OK to associate the Excel file with the test configuration. UFT displays the test configuration tabs.

    From the Test Cases Generator
    1. In the Test Configurations tab, click the Test Combinations button.

    2. Generate your test configurations as described in Generate test configurations

Back to top

Enter static data configuration values

In UFT, static data configuration values are read-only. To add data to the static configuration, edit the test configuration in ALM.

For details, see the task on how to associate static data in the Application Lifecycle Management User Guide.

Back to top

Map test parameters to the Excel file

After you associate the Excel file with a specific test configuration, instruct UFT where to provide the values for your test parameters:

  1. In the Test Configurations tab, select the Test Parameters Mapping tab. A list of all test parameters is displayed.

  2. In the Resource Column, from the drop-down list, select the name of the column to which you want to map the parameter.

  3. (Optional) In the Filter column, select the value to use.

Tip: If you want UFT to automatically map all test parameters to the relevant column in the Excel file, click the Automap button. UFT automatically finds the correct column and displays an icon indicating that the parameter is automatically mapped.

Back to top

View component parameter mapping details

  1. In the Test Configurations tab, select the Components Automap tab. A list of all components in the test is displayed.

  2. In the components list, select the component you want to view.

  3. Below the components list, UFT displays which sheet in the Excel file the component and its parameters are mapped to, including the values for the parameters:

    If there are errors, UFT displays a warning icon in the Components Automap tab and in the Data Mapping Status column. You can hover over the error name to see a description of the error.

    Errors must be corrected in the Excel file.

Back to top

Run the test with the selected configuration

  1. In the Run dialog, expand the Options node.

  2. From the Options area, select the Test Configurations tab.

  3. In the Test Configurations tab, select the Test Configuration you want to use.

    When the test runs, UFT takes the data from the file associated with the selected test configuration.

Back to top