Back to QMetry All Products Help Page
How to import automation result files in .trx format into QTM4J?
This article is intended for users who want to import .trx-based automation result files into QTM4J. QMetry supports automation test result import for the following frameworks: JUnit, TestNG, QAF, Cucumber, and Specflow out of the box. A .trx result file is a software developer's test result file extension created by Visual Studio, which contains test results stored in an XML format. Using the open-source .NET global tool (trx2junit), users can convert their test result file in JUnit/XML format after the automation script execution and later import the converted test results into QTM4J with ease.
Below are the steps to convert the .trx result files in JUnit/XML:
Note: The steps mentioned below are just for reference purposes. Any inquiries/issues related to these steps are out of QMetry Support scope, you can directly reach out to trx2junit support for any queries.
Step 1: Install the dotnet tool using the CLI command:
dotnet tool install -g trx2junit
Step 2: Covert to JUnit .xml using the below command:
trx2junit {trxFile}
where trxFile is the path to the trx-file. (You can pass multiple files in one go)
Step 3: Once the test result files are converted in JUnit/XML format, refer to the below links to import them into QTM4J:
For any queries regarding the import of JUnit test results to QTM4J, reach out to QMetry support.
Back to QMetry All Products Help Page