Welcome to the Question and Answer site for Software Testing Professionals

You can get your queries resolved from Software Testing Professionals.

Ask a Question

Get answers and give answers to questions from other members.

View All Questions

Get votes and earn points to build your reputation in community.

View Hot Questions

Jenkins: How to convert Result of C# Selenium (MS Unit Test Freamwork - Result : .trx file) to XML or HTML report with

Open 1 Answers 51 Views
0 1

I am working on C# Selenium Automation Testing Project (It is a MS Unit Test project, It is not a NUnit Test),
I have configured my solution in Jenkins for CI execution.
I have used MSBuild Test plugin for Test Execution.

After Test Suite successfully executed, The result is Generated in .trf file (It is a default  output formate of C# Selenium Test with MS Unit Test )
Please let me know the Post build step so that I can received my Test Result in HTML from jenkins.

1 Answer


trx2html is the thing you should be using.

download the trx2html file here - http://trx2html.codeplex.com/
unzip and put the files in C:\Program Files (x86)\trx2html

You can execute it from the command line with below command:

"C:\Program Files (x86)\trx2html\0.6\trx2html.exe" TestResult.trx

You can add same as a post build step in Jenkins. In post build step, execute it as a batch command.

Also, make sure that above software is added at the server your Jenkins server is running.

Hope that helps!

answered by (200 points)
commented by (58 points)
Thanks, I will implement this one, Also If there are multiple trx file result in TestResult forlder, How to run this batch command for latest result only.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

We have resolved 1.2k+ Software Testing queries!

Software Testing Board Weekly update

We will send you handpicked questions that you would love to answer.

View previous campaigns.

Top Contributors