Run your UFT 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.

Prerequisites

Do the following before you start:

Update your UFT testing options

In Test Runs pane of the Options dialog, select the Allow other Micro Focus 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 installation.

For more details, see the section on modifying DCOM permissions in the Unified Functional Testing Installation Guide.

Back to top

Set the device ID for the test device

Do the following:

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

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

  3. Set the identification properties of the device used in the test.

    Do the following:

    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 identification 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.

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

    Do the following:

    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 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 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, reopen the test, and set the data table to the data table resource now saved in ALM.

    Do the following:

    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 tests from ALM with the ALM Extension

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

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

To do this, you must first do the following:

Configure ALM to work with Mobile Center

For more details, see Software Self-solve knowledge base article KM02519815.

Verify your proxy settings

When running a test remotely via ALM, UFT uses the UFT proxy setting information for connection to the Mobile Center, even if the settings in ALM are different.

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

For details, see Connect to Mobile Center.

Back to top

See also: