Total Pageviews

Tuesday, October 28, 2014

Merge multiple TRX files (Visual Studio Test Result File)

TRX files are  Visual Studio test results file. For any reason, if you end up having multiple TRX file you still can merge all of them into one file using utility given below. Multiple TRX files can generate as a result of test suit failing and a re-run is required when only failed cases are executed.

Merge TRX files- (only 2 files at a time)
  1. Download this utility
  2. Copy all TRX files in the same folder
  3. USAGE: trxmerger.exe <input1>.trx <input2>.trx <output>.trx
Note: Pick up the TRX file which was created first (Check time stamp) and then move to the next one.Changes from second trx file will be overwritten on first if there are matching test cases.The merged file then can be merged with next one and so on.

Convert TRX file into more user friendly format like HTML-
  1. Download this utility
  2. USAGE:  VSTSTestReport.exe  "C:\<filename>.trx" <filename>.html



    Cheers!
    Abhay