Upload .trx or .html file to teamcity

Answered

We have a requirement to upload/view coded UI results file (.trx) or a converted .html report in team city. We do know that if we invoke the CUI tests directly from Teamcity then the results can be viewed directly in Teamcity for each run but due to some dependencies we need to invoke/run a batch file from teamcity so the results don't get uploaded in team city. Could you let us know if there is anyway in which we can upload the results file (.trx or .html) in our local machine to Teamcity and view it there?

0
1 comment

From your message, it's not really clear whether the build agent has access to the TRX report (even if it's not on the server) or once the build is completed you take the build and run manually a separate test in a completely separate environment (not a build agent).

In the first case, you can use the "XML Report Processing" Build feature in a Build configuration, which will bring all the features of TeamCity reports even if this reports are provided by non-standard methods, such as them being directly in the VCS root, generated artifacts, or being generated by another utility.

The second scenario, it's not currently possible to manually upload additional results to a finished build. To work around this limitation, you could add a build step that gathers the files from a known location in the computer and use the XML Report Processing, or create a separate build configuration where you can upload your reports (via VCS for example) and process them to generate the TeamCity report.

More information on loading standard XML/TRX reports here:
https://confluence.jetbrains.com/display/TCD10/XML+Report+Processing

For HTML reports, you can use the approach in this section of the documentation:
https://confluence.jetbrains.com/display/TCD10/Including+Third-Party+Reports+in+the+Build+Results

0

Please sign in to leave a comment.