Run your UFT One tests from ALM

If you store your test in ALM, use ALM to also store the device settings for your test and change them between test runs.


Make sure you meet the following prerequisites:

Update your UFT One testing options

In Test Runs pane of the Options dialog, select the Allow other products to run tests and components option.

(Tools > Options > GUI Testing tab > Test Runs node)

Verify DCOM permission settings

DCOM permissions are set automatically if Configure DCOM settings for ALM Integration is selected during the UFT One installation.

For more details, see the section on modifying DCOM permissions in the UFT One Installation Guide.

Back to top

Set the device ID for the test device

To set the device ID:

  1. In UFT One, connect to your ALM project (ALM > ALM Connection).

  2. Open the test you want to save in ALM.

  3. Set the description properties of the device used in the test:

    1. In the test's object repository, in the Test Objects tree, select Device.

    2. On the right, click the Add description properties button.

    3. In the Add Properties dialog box, select id. The id property is added to the list of Description properties.

    Note: If you do not specify the device description properties, then the device and application settings set in ALM are used to run the test, even if you have selected a specific device and app in the Record and Run Settings in UFT One.

  4. Convert the value of the id property to a data table parameter:

    1. In the Test object details area, click in the Value cell for the id property.
    2. Click the parameterization icon to the right of the value.
    3. In the Value Configuration Options dialog box, select Parameter, and then select DataTable from the list.
    4. Select to store the data table content in the global sheet, or in the current action sheet.

    The id parameter is added to the Data pane.

  5. Save the test in the ALM Test Plan (FileSave <testname> As). The test opens from ALM.

  6. Continue with Add your test data to your ALM Test Resources.

Back to top

Add your test data to your ALM Test Resources

To add your test data to ALM, first export your UFT One data table. Right click in a data table cell, and select FileExport.

In ALM, add the Excel file you just created to the Test Resources module:

  1. On the left, expand the ALM Testing module, and select Test Resources.

  2. In the Resources tree, right-click a relevant folder and select New Resource.

    In the New Resource dialog box, enter the exact name of the Excel file you exported earlier (without the extension), and set the Type to Data table.

  3. In the Resources tree, select your new resource.

  4. In the Resource Viewer tab on the right, click Upload File .

  5. Browse to and select the Excel file that contains your exported UFT One data table content.

    The data table content is now available for use in ALM.

Back to top

Add your test data to your ALM test

  1. In ALM's Testing module, select Test Plan.
  2. Browse to and open your test, or create a new test configuration. Click the ID link to open the Test Configuration Details dialog box.
  3. In the Test Configuration Details dialog box, select Data on the left, then select Override test data resource.
  4. From the Data Resource drop-down, select the data table resource you uploaded earlier.
  5. In UFT One, reopen the test, and set the data table to the data table resource now saved in ALM:

    1. Select File > Settings > Resources.

    2. In the Data Table area, select Other location and browse to and select your table.

      You'll find it by selecting ALM Resources in the Open dialog box.

    The data source is added to the Data Table area of the Resources pane.

Back to top

Run your UFT One tests from ALM with the ALM Extension

Use the ALM Extension for Digital Lab to set device, app, and test definitions settings directly from ALM, without opening UFT One.

When you use the ALM Extension for Digital Lab, test results for test runs are automatically saved in ALM.

To do this, you must first do the following:

Configure ALM to work with Digital Lab

For more details on integrating ALM with Digital Lab, see the ALM Help Center.

Verify your proxy settings

When running a test remotely using ALM, UFT One uses the UFT One proxy setting information for connection to the Digital Lab, even if the settings in ALM are different.

Ensure that the settings for the current run are the same in UFT One as the test in ALM when running a test.

For details, see Connect to Digital Lab or local mobile devices.

Back to top

See also: