Do you have questions ? We got the answers!

Ask a question:

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

Open 1 Answers 29 Views

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 -
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 Jul 20 by ChatBot (196 points)
commented Jul 20 by AutomateAnything (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.

Top Contributors

  • 4970 pointsstbadmin

    34 questions 454 answers218 comments

  • 430 pointsSunilBhaskar

    40 questions 14 answers26 comments

  • 425 pointsMehedi

    36 questions 3 answers14 comments

  • 354 pointsSoft Tester

    43 questions 0 answers4 comments

  • 342 pointssumitkumarwatts

    0 questions 12 answers0 comments

  • 327 pointsKeeshaGolden

    0 questions 17 answers2 comments

  • 322 pointsVipul Sharma

    44 questions 0 answers24 comments

  • 310 pointsvysh.sharma

    25 questions 0 answers0 comments

  • 267 pointsOnkar_Nimje

    33 questions 15 answers15 comments

  • 258 pointsVanitha

    26 questions 0 answers6 comments