Microsoft test result in Excel format - trx

Is there any tool exist that transfroms trx file into Excel format?
I am looking for something that will automate unit test result publishing at the time of test suite execution (without requiring microsoft team server)

You can use http://trx2html.codeplex.com/ which provides an easy way to convert an rtx file into an html document.

If you just need the information about the test name and whether passed or failed, you could copy the columns from Test Results UI (in Visual Studio) and paste on excel.

I created a tool for this propose, the trx file will be converted to Excel 2010 format with useful information.
Pls try: https://youtu.be/G7VASkhim7I
Instructions
Download the Trx2Excel application from here and run the application.
Select the option: Get data from one file or from a folder.
Select the result file (for single file option) or result folder (for multiple files option).
Select the location and the saved file (the output file).
Click the Convert button.

Related

Share test result TRX file

I have the Enterprise edition of Visual Studio, but not everyone does.
How can I share the TRX so that other people can see the results? I've seen that there are several Trx to HTML convertors but they're all quite old and either don't work any more or don't show the details of the test.
Most of the results of a load test are stored in a database. The TRX file has only a very small portion of the results - you can easily see what it actually contains by opening the file in Notepad, it is just XML.
Visual Studio trial versions have some support for load tests. (They only support a small number of virtual users and do not support plugins.) They might allow viewing and analysis of the results of runs done on other computers. This limited support of load tests might also be available on licenced Non-Enterprise versions.
The results of individual load test runs, or groups of runs, can be copioed from one computer to another by using the Export and Import commands in the "Open and manage load test results" window. These create and read LTRAR files. See here for more details.
The TRX file contains a connection string to the SQL database and so the file cannot normally be copied and then work properly on another computer. The encoded connection string is located within the resultsRepositoryConnectString=... attribute within the TRX file. Changing the value in a copied file to a value found in a working TRX file on the destination computer allows the copied file to work. See here for more details.
The only other options for viewing results on other computers would be by exporting the results in Excel by using the "Create Excel Report" command. (Access it via the icons on the "Summary - Graphs - Tables - Details - ..." line in the load test results viewer.)
For unit tests, but not load tests, I routinely export trx files from my unit tests, because they ARE shareable, can be placed as attachments into our launch control systems, and DO contain all of the data necessary for the downstream teams to verify the results, including test console output. I do this with a custom task added to the project that runs the vstest.console.exe, with the /logger:trx;logfilename="blah" command line switch. The full task line is:
<Exec Command=""$(DevEnvDir)commonExtensions\Microsoft\TestWindow\vsTest.console.exe" "$(MSBuildProjectDirectory)\$(OutputPath)$(AssemblyName).dll" /logger:trx;LogFileName="$(MSBuildProjectDirectory)\testResults.trx"" />
You can also add ContinueOnError="true" if you don't want a test failure to stop the build.
MSTest still seems to ship with visual studio, supposedly does support load tests, and historically has exported TRX files, but I haven't tried it. Running pre-2019 unit test projects, that still have tasks pointed to mstest, in vs2019 tend to fail with assembly version errors, so I don't know if it even still works at all.

TFS 2015 >> Exporting Test Cases and associated detail Steps in excel

We can import the test cases with their associated steps from excel to TFS.
Is there any way or tool for exporting the test cases with their associated detail steps into excel?
Currently i am using TFS 2015.
You can query the test case work items and select Steps Column in VS, then export the query to Excel directly. But you need to reorganize the format of the Steps:
You can export test artifacts data on TFS Web Access so that they can either be sent via email or printed. The Export capability allows you to customize what data you want to export. https://msdn.microsoft.com/en-us/library/dd380763.aspx
For exporting to Excel, you can choose the Print or Email option from
the Export dialog box, then choose Cancel from the Print dialog box.
The data for the report is displayed. Select the test cases and
associated steps, then you can copy and paste it into a Excel if you
want. All the formatting in the report is retained.

Create result from excel into TFS

I want to create result in TFS through an excel sheet. I need to have different iterations and my excel contains individual step results in each and every row.
This is related to offline test execution, however this feature is still in planning process. Refer to this link for details: http://visualstudio.uservoice.com/forums/330519-team-services/suggestions/3596154-offline-test-execution-allow-users-to-execute-tes
For now, I would recommend you to use Microsoft Test Manager to run the test. If you do want to do it via excel, you could save the test result in excel and then develop some code to read the test result information in the excel file and import the test result via TFS Test Management API. For the instruction about TFS TestManagement API, check this link and this link for details.

How to batch print folders of MS Office documents?

We have workers’ reports that are kept in folders. Mostly the files are saved as Word and Excel documents. I need to print them for each business meeting and have to open each folder individually. I wonder if there is a possibility to simplify the process.
Specifically for bulk printing there exists the software called Print Conductor. Here is the description of the files it works with: http://www.print-conductor.com/articles/print-documents.html. You will need to specify the folders, and the program will drag the files from there creating lists of files for printing. Then you will be able to print them all at once.

Testlink: Export complete test cases into OpenOffice

I have a large number of test cases in Testlink and I need to export them into either OpenOffice Calc or Writer (and then possibly reimport them), including test steps.
Currently Testlink only supports XML for exports and imports of test cases. To import an XML file into OpenOffice and export it, specifically formatted XSLT files are needed. To create them appears to be rather time consuming if you are not an XML expert.
Did anybody do this already? Does anybody have examples or working XSLT files for Testlink test cases, for Calc or Writer?
My bad. It turns out that it is very easily possible to export test cases with test steps:
Choose Test Reports in the topmost menu of Testlink.
On the Reports and Metrics page, select OpenOffice Writer (or MS Word) as the Report Format.
On the left side, select Test Plan Report. On the right side, select the checkbox Test Scenario (you don't need Test Summary or any other options). Below, click on the test case folder that you wish to export.
You get the document for download. (Note: may require some formatting.)
Alternatively, it is possible to choose HTML in step 2 as the report format and save the frame.
While it is possible to select OpenOffice Calc/MS Excel, there doesn't seem to be a way to include test case steps.
Can you change the test report subjects?
Choose Test Reports in the topmost menu of Testlink.
On the Reports and Metrics page, select OpenOffice Writer (or MS Word) as the Report Format.
On the left side, select Test Plan Report. On the right side, select the checkbox Test Scenario (you don't need Test Summary or
any other options). Below, click on the test case folder that you wish to export.
You get the document for download.
Can i change the download file name?
When i choose the testcase folder, i can download the test report(MS word). but file name is "Test Project name.doc". so I want to change the file name from "Test project name" to "Test Plan name"

Resources