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
-
The Publish TestComplete Test Results extension must be installed on your Team Foundation Server. For instructions on how to install the extension, see Installing the Publish TestComplete Test Results Extension.
-
Your build definition must be configured to allow processes launched during the build to access the OAuth token. See below.
Configuring Build Definition to Publish TestComplete Test Results Step
-
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.
-
Configure the build definition to allow processes and scripts launched during the build run to access the OAuth token:
-
Add the Publish TestComplete Test Results step to your build process:
Place it after the Visual Studio Test step that runs TestComplete tests.
-
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.
-
Save the changes.
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