NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

xml repport with TS3

How to skip the recording of the skipped steps in the report using TS3 and the xml format report?
0 Kudos
Message 1 of 5
(3,212 Views)
Hi
One way of doing it is to modify your style sheet not to put skipped steps in the report. This involves changing couple of lines in the style sheet. I have modified the default style sheet (report.xsl). I done some basic testing and it seems to work. If all the steps in the sequence are skipped then I do not remove the sequence name from the report as that is something you might want to see.

Thanks
Anand
0 Kudos
Message 2 of 5
(3,212 Views)
Hi
Thanks for the style sheet. But my problem is realy to not put the skipped results in the xml file. We have one sequence for all the models of UUTs and on some models only half of the sequence is realy run. If all the steps are recorded, the size of the xml file exceed 10Mb. By not recording the skipped steps, I expect to cut the size by half.
Thanks,
Yannick
0 Kudos
Message 3 of 5
(3,212 Views)
Yannick -
TestStand does not have any built in way to remove skipped results from the results list when in XML form. The process model just calls GetXML on the result list from the UUT loop and saves this out as is. There are two options that you could persue to remove the skipped result from the XML stream:

1) Preprocess the result list while it is in a Property Object tree form by writing a routine to recursively go thru the results and delete the skipped items as you find them in the tree. This recursive call could be executed before the call to GetXML in the process model. If you decide to do this, the ModelSupport DLL has recursive routines for processing the result tree for reports. This could be used as a guide to write your ro
utine.

2) Postprocess the XML stream and remove all elements from the XML body. I think that this would be slower and would take a lot more effort than option (1).

Scott Richardson (NI)
Scott Richardson
https://testeract.com
0 Kudos
Message 4 of 5
(3,212 Views)
Hi,

The easies way to remove skipped results is to remove them from your results before you get to the report generation.

A long time ago I produced a sequence that will remove the skipped results from the ResultList. It was generated in TS1.0.2 but still works for TS2.0.1f1 and should still work for TS3.0.

http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3E52956A4E034080020E74861&p_node=DZ52194&p_submitted=N&p_rank=&p_answer=&p_source=External

Give it ago.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 5 of 5
(3,212 Views)