Publish TestComplete Test Results (for Team Foundation Server 2015 - 2018 On-Premises Only)

Applies to TestComplete 12.60, last modified on September 17, 2018

If you run your TestComplete tests by using Visual Studio Test task version 1, TestComplete test results will not be published to the server and not included to the test run statistics. You can publish TestComplete test results manually.

Note: If you use Visual Studio Test task version 2 or the Run Functional Tests task to run TestComplete tests, TestComplete test results will be published automatically.

Requirements

Configuring Build Definition to Publish TestComplete Test Results Step

  1. Open a build definition that runs your TestComplete tests. To learn how to create such a definition, see Running TestComplete Tests by Using Visual Studio Test Task.

  2. Configure the build definition to allow processes and scripts launched during the build run to access the OAuth token:

    TestComplete integration with Visual Studio: Configuring a build to allow script and process to access OAuth token

    Click the image to enlarge it.

  3. Add the Publish TestComplete Test Results step to your build process:

    TestComplete integration with Visual Studio: Adding the Publish TestComplete Test Results step to a build definition

    Click the image to enlarge it.

    Place it after the Visual Studio Test step that runs TestComplete tests.

  4. Specify the test results to collect and publish:

    In Test Result Folder, specify the path to the folder where the TestComplete test results will reside.

    In Test Result Files, enter the search pattern that the step will use to search for and collect .trx files (Visual Studio test results) that include your TestComplete test logs. The pattern can include * and ? wildcards. The default *.trx pattern will search for all .trx files in the specified folder. To search for all .trx files in the folder recursively, use the **\*.trx pattern.

    To merge all found test result files into a single test run, select the Merge Test Results check box. Otherwise, the step will create a test run for each found test result file.

    If needed, in Test Run Title, enter the name for a test run to which the test results will be assigned.

    TestComplete integration with Visual Studio: Configuring the Publish TestComplete Test Results build step

    Click the image to enlarge it.

  5. Save the changes.

Prev     Next

See Also

Defining a Build Process
Installing Publish TestComplete Test Results Extension (For Team Foundation Server 2015 - 2018 On-Premises Only)
Configuring vNext Builds to Run TestComplete Tests

Highlight search results