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.
msxsl <path to test report> <path to example stylesheet> -o <path to output xml file>
MSDN: Translating from One XML Schema to Another
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Hi,
I have tried to generate xml file as mentioned in "https://forums.ni.com/t5/Example-Programs/Converting-TestStand-XML-Reports-to-JUnit/ta-p/3689131?pro...", but I am not able to see this in Jenkins. Am I missing anything?
Thanks,
Sanad MM
It was configuration issues and fixed. Not able to delete above message, please discard.
Thanks,
Sanad MM
Hey,
I am having a problem converting the TestStand XML reports into JUnit XML report. for the command
msxsl "C:\Users\joshikak\Downloads\outputs\Sample Test_Old_Report[19 30 48][10 06 2019].xml" "C:\Users\joshikak\Downloads\ATML_JUnit_Simple.xsl" -o C:\Users\joshikak\Downloads\output
I got an error saying
'msxsl' is not recognized as an internal or external command,
operable program or batch file.
I don't know how to proceed.
Thanks in advance
Calling msxsl directly in the command prompt will not work unless it's included in your PATH environment variable. You need to make sure that you're specifying the entire path to wherever you put the msxsl.exe, or a relative path to your working directory.
Any of ended up like this? Two "testsuite" generated under single file?
Well I had run the test sequence in parallel model with ATML 6.0 report generation for this purpose. Surprisingly I saw single report generated from TestStand for two test socket. I thought it's fantastic as I don't need to parse two file with his msxsl. But Jenkins couldn't recognize this second testsuite in single file and causes below error.
I'm looking for changing any ATML config to generate two xml report files instead of one so that I can overcome this.. Has anyone faced this in parallel model and have good practice already?
Thanks,
Ajay.