How To Use MSTest TRX to HTML Viewer
MSTest TRX to HTML Viewer is free open source library to convert MSTest result (.trx) file into HTML. It is also allowed to perform MS Test on your test container (.dll) file. This utility will work with simple command line arguments as mentioned below.
You can generate HTML report by selecting .trx (MS Test Result) file or applying MSTest on your test container (.dll) file, using this method it would require physical path of MSTest.exe and your TestContainer file (.dll) then it will automatically created .trx file to generate HTML report.
- Basic Usage
- /t
- /T
- /trxfilepath
- -t
- -T
- -TRXFILEPATH
- All Arguments
| Name | Flag | Summary |
| MSTest Exe File Path | /m | You have to define physical path of MSTest.exe. this will required only if you don’t have .trx file. |
| Test Container Folder Path | /tc | You have to define physical path of your test container file (.dll). this will required only if you don’t have .trx file. |
| Trx File Path | /t | You have to define physical path of trx file. |
| Destination Folder Path | /d | Output data (HTML) files will store at this location. If path not exists then it will automatically created. |
| Help | /? | This will display all command parameters on screen. |
- General Help
MSTestResultViewer.Console.exe /?
Output:
Note: first of all you should be inside the MSTestResultViewer.Console.exe folder to work successfully. You can execute following command to get into MSTestResultViewer.Console.exe working folder.
- Goto command prompt
- type command in command windowcd “C:\Program Files\Saffroze Technology\MSTest Result Viewer”C:\Program Files\ will be your default installation path.
- If you have .trx file then execute following command
MSTestResultViewer.Consol.exe /t “d:\test.trx” /d “d:\HTMLReport”
/t “d:\test.trx” physical path of .trx file.
/d “d:\HTMLReport” destination folder, it will automatically created if does not exists. - If you don’t have .trx file then execute following command.MSTestResultViewer.Consol.exe /m “C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\MSTest.exe”
/tc “D:\Imdadhusen\Samples\MSTestProject\MSTestProject\bin\Debug\MSTestProject.dll” /d “d:\HTMLReport”
/m “C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\MSTest.exe” physical path of MSTest.exe.
/tc “D:\Imdadhusen\Samples\MSTestProject\MSTestProject\bin\Debug\MSTestProject.dll” physical path of TestContainer file.
/d “d:\HTMLReport” destination folder, it will automatically created if does not exists. - View HTML Report go to d:\HTMLReport folder double click on index.html. You can see everything of your test result with graphical represantaion.
Command Line Parameter Screen
Generated Report Screen
You can download MSTest TRX to HTML Viewer for free.
You can also download trx to html viewer guidline in pdf



