NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about XML Reporting format with the StyleSheet set to expand.xsl.

Currently, I am using the XML Reporting format with the StyleSheet set to expand.xsl. This format is great for our report generation needs except for one small thing. When the xml report is opened, all the fails are expanded by default. What we want is that all the step results should be collapsed when the document is opened. I tried looking around in the report options to see if there is something I can do, but could not find anything. It looks like the source code for expand.xsl will need modification in order for this to happen. Do you have any suggestions/comments?

Any help will be much appreciated.

Thanks

Anuj Gupta

0 Kudos
Message 1 of 8
(4,203 Views)
Hi
You are correct. expand.xsl needs to be modified to not expand the failed steps.
I have attached a modified expand.xsl which does not expand the failed steps when the report is displayed.
 
Hope this helps.
 
Anand Jain
National Instruments.
 
 
0 Kudos
Message 2 of 8
(4,180 Views)
Anand,
 
Thanks for your reply. I just tested your modified stylesheet and it solves the problem, all the step results are now collapsed. But in this stylesheet, the icon/button in front of the step name is missing. Like you know how theres is either a + or a - (with color as either green or red depending on weather it was a pass or a fail), that thing is missing. To show you what the report looks like now, I am attaching a snapshopt of it in this message, it will probably help you understand what the problem is.
 
I would really appreciate if you can fix the problem.
 
Thanks !
 
Anuj
 
 
0 Kudos
Message 3 of 8
(4,174 Views)
Anuj
 
I do not see a snapshot of the problem. Can you please repost it.
Can you also make sure that you put the given file to
 
<TestStand>\Components\NI\Models\TestStandModels\StyleSheets\ folder.
 
Hope this helps.
Regards
Anand Jain
National Instruments.
 
 
0 Kudos
Message 4 of 8
(4,156 Views)
Anand,
 
I had attached the picture in the last post, I don't know why it did not show up, my apologies for that. I am trying to attach the pic again in this reply.
 
Also, I did make sure that the modified stylesheet was placed in the folder you mentioned.
 
Thanks
 
Anuj
0 Kudos
Message 5 of 8
(4,146 Views)
Anuj,

I am able to use the modified style sheet with the button icons still included.  I simply placed the style sheet inside the "<Test Stand>\Components\NI\Models\TestStandModels\StyleSheets\" directory.  Then you can choose this style sheet from the Report Options menu.  Be sure that the directory contains the proper gif images such as button_expand.gif and button_collapse.gif.  The modified stylesheet will look for those images when the xml report is being displayed.

Thanks,

Tyler

Message Edited by Tyler T. on 07-25-2005 10:42 AM

0 Kudos
Message 6 of 8
(4,132 Views)

I found out that the modified stylesheet was being pulled out from a different location and not the folder it should have been in. I was sure I had put it in the right spot, but I was wrong.

It works perfect now. Thanks for the help and I apologize for the inconvenience caused to you due to my  negligence.

Thanks again

Anuj

0 Kudos
Message 7 of 8
(4,114 Views)

Just an FYI for completeness, TestStand 4.2 features improved XML Style Sheets that are restructured to reduce the time required to generate HTML output from XML report files and to simplify the task of modifying style sheets so that you can change the appearance and content of XML reports.

 

For more information about customizing TestStand XML report style sheets and using the included XML schemas, refer to:
NI TestStand Help: XML Report Style Sheets

Jervin Justin
NI TestStand Product Manager
0 Kudos
Message 8 of 8
(3,556 Views)