Use Azure DevOps Server to trigger a local test

This topic describes how to trigger a UFT test stored on your local machine from Azure DevOps Server (formerly known as TFS).

Run a test saved on your local machine

In Azure DevOps Server, do the following:

  1. Create a pipeline (Note: If you are using TFS, skip this step).

    • Use the Default agent pool.
    • In Variables, add the UFT_LAUNCHER variable and select the checkmark to make it Settable at queue time. The variable's value should be the full path to the UFTWorking folder.

    For more details, see the Microsoft Azure documentation.

  2. Add a UFT task or build step, and place the step in the correct place in the build order.

  3. From the Task catalog, select the Test tab. A list of all available test tasks is displayed.

  4. From the Test tab, select the UFT File system Execution task and click Add. A new, empty task is added in red as part of your build plan.

  5. Provide the following information for your build step.


    By default, the Azure DevOps Server CI system uses a preset descriptor for the task. Click the Rename button and provide a more meaningful name for your step.

    Tests The test, test batch file, or folder containing the tests to run. For multiple tests, the test path, name, or test result path should be separated by a comma.

    The amount of time (in seconds) to wait if there is a problem opening or running a test. If the field is left blank, there is no timeout.

  6. From the Utility tab, add an additional Copy/Publish Artifact step and specify the options for this step.

  7. Configure the CI system control options for the step, including:

    Enabled Specify whether the step should be run as part of this build.
    Continue on error Instructs the CI system to stop or continue the build if there is an error on this step.
    Always run Instructs the CI system to always run this step.

Back to top

View the test results

After a test run, UFT automatically saves the run results as an artifact with the build.

Navigate to the build artifacts specified in the Copy/Publish Artifact step and locate the results.html file to view the test results.

UFT 15.0.1 or later: If you run your UFT tests on Team Foundation Server (TFS), you can also view UFT run results in the Summary tab of the TFS build run results.

For example:

Back to top

See also: