Use TFS to trigger a local test

This topic describes how to trigger a UFT test stored on your local machine from TFS.

Run a test saved on your local machine

Do the following:

  1. In your TFS build, add an additional build step, and place the step in the correct place in the build order.

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

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

  4. Provide the following information for your build step.

    Description

    By default, the TFS 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.
    Timeout

    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.

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

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

Back to top

See also: