Click here to Skip to main content
15,881,559 members
Articles / Web Development / HTML
Tip/Trick

Convert Trx into HTML using TRXER

Rate me:
Please Sign up or sign in to vote.
5.00/5 (4 votes)
16 Apr 2015CPOL2 min read 35.9K   2   4
Introducing a new tool to transform trx (mstest results file) into HTML report

Image 1

Introduction

Just released a new tool called TRXER.
Git link: https://github.com/NivNavick/trxer
What it does is transform TRX file (mstest results file) into HTML report.
The HTML as shown below is clean, nice and understandable.
You can see the pie indicates statuses count and a table that includes test classes that contain the tests themselves.
Trxer is a new way to view Trx Reports, all you need is a browser.

So now you can transform your trx files into a clear HTML report.

NAVIGATE EASILY

Trxer's friendly UI will make your life easier, much easier. You can navigate through test classed, see outputs, messages, stacktrace, test duration and much more.

READ CLEARLY

TRXER HTML report is eye friendly which means you will understand all you need in one glimpse. No mess, no misunderstood fonts.

FIND PROBLEMS FASTER

With our friendly UI, you can watch stacktraces, outputs and messages so you can determine what's the problem as quickly as lightning.

USING GRAPHS

We draw graphs for you so you can see the status of each test class and the total passed, failed and warnings of all tests which you can download and use later.

COLORS

TRXER HTML report is colorful.
Each color:

  • green
  • red
  • yellow

indicates test status and tells you whether test passed, failed or got warned during run.

Failed Tests

The important thing we are looking for is why our test run failed.

Trxer will show you test that failed on report's top, so you have easy access to failed tests.

Images

Assume you have an image to show in the report, just put its URL in the test message, stdout or stderror and
Trxer automatically will show your image in the final HTML report.

What you should do is surround the URL with quotes like the following:

"http://www.example.com/myimage"

And the result will be:

Image 2

Stacktraces

Providing a clear view to understand stacktraces:

Image 3

Status Bar

Status bar indicates whether test run has failed or passed.

Test run failed

Image 4

Test run passed

Image 5

Supporting Versions

TRXER supports Visual Studio 2010 and higher (xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010")
but can easily support lower versions by lowering the '2010' year to whatever you like.

Supporting Browsers

Trxer supported by all major browsers that supports Html5 Canvas.

Usage

TrxerConsole is an EXE file.

Open command prompt and type the following:

TrxerConsole.exe  <file.trx>

The output will be at the trx folder under the name "file.trx.html" which we can see below:

Image 6

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Israel Israel
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralMy vote of 5 Pin
rolovargas23-Aug-17 7:23
rolovargas23-Aug-17 7:23 
QuestionHey Dude Excellent Post! Pin
Your Display Name Here20-Apr-15 7:48
Your Display Name Here20-Apr-15 7:48 
QuestionThis was a tip... Pin
OriginalGriff17-Apr-15 2:25
mveOriginalGriff17-Apr-15 2:25 
AnswerRe: This was a tip... Pin
Your Display Name Here20-Apr-15 7:50
Your Display Name Here20-Apr-15 7:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.