07-27-2009 02:40 PM
I'm a fairly new user with TestStand, though I've been working with Labview for a few years now. I've written a test sequence that will be replacing a previous implementation that was done in VisualBasic.
The problem I'm running into now, though, is in the test reporting. I want to use the XML format for the reports, but I cannot seem to figure out how to customize what data is printed. I want to print the failures, and then there are some global variables that I would like to see printed in the header. I've seen the XML tutorial for TestStand 4.2, but that doesn't work for 4.1. Is there anything similar for 4.1?
Can anyone provide any resources for how to go about customizing the XML stylesheet for the report generation in 4.1?
Thanks!
07-27-2009
07:14 PM
- last edited on
11-05-2024
01:05 PM
by
Content Cleaner
Hey ADahl,
NI doesn't really support customizing style sheets. There is a great tutorial here: http://www.w3schools.com/xsl/default.asp
It's really not that hard to figure out what to change once you get digging through the style sheets. I found this site helpful when I customized mine: https://www.ni.com/docs/en-US/bundle/teststand/page/sections-in-xml-report-style-sheets.html
It lays out the sections so you can read the stylesheet better.
Failures should automatically be included in the report if that step is set to include results. Here is a doc on including other data in a report: https://www.ni.com/en/support/documentation/supplemental/08/teststand-report-generation-and-customiz... You should get your globals into the report by using one of the methods in there.
Honestly though when it comes to customizing the style sheet... there are a million and 1 ways to go about it. What I did was comb through the xsl file until I found the header information. Then I just added my own stuff in there and kind of copied off the format they had for the other stuff. Now it's looking great. I had to tweak some things here and there to get it exactly right.
Let me know if you have any other questions,
07-28-2009
09:23 AM
- last edited on
11-05-2024
01:07 PM
by
Content Cleaner
With TestStand 4.2 we've started supporting more customizations of XML stylesheets. As you mentioned you will find a few examples of this in the shipping examples sent with TestStand 4.2. For more information on doing the customizations yourself this KnowledgeBase article may prove helpful.
TestStand XML Report Customization
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YGlBCAW&l=en-US
Regards,
Steven Zittrower
Applications Engineer
National Instruments