Example Programs

Showing results for 
Search instead for 
Did you mean: 

Converting TestStand XML Reports to JUnit


TestStand XML reports can be converted to other formats using eXtensible Stylesheet Language Transformations (XSLT). This can be useful for importing Test Results into a tool that is not compatible with the TestStand XML report schema.



This example takes a TestStand XML report and converts it to a JUnit report format compatible with the Jenkins JUnit plugin. This allows users to view test results in Jenkins:

Note: This example stylesheet only converts basic test result data into JUnit - such as Step Name, Step Status, and Error Message. This stylesheet can be modified to include additional failure information for specific step types.


Hardware and Software Requirements

NI TestStand

Command Line Transformation Utility (msxsl.exe)

Steps to Implement or Execute Code

  1. Download the attached stylesheet and msxsl.exe from Microsoft.
  2. Generate a TestStand XML Report using the report plugin.
  3. Run the following command in the Windows command prompt:
    msxsl <path to test report> <path to example stylesheet> -o <path to output xml file>