NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Generating 2 test reports for the same test - XML and HTML

Hi All,
I have a special test requirement.
Need to generate 2 test reports for the same test. One in HTML and the other in XML format.
Is there any direct method for that?
How it can be implemented?
 
Thanks in advance.
 
SajK
0 Kudos
Message 1 of 2
(3,148 Views)
Hi SajK,

To accomplish this task, you will need to modify the process model. For example, if you are using the sequential process model, you can concentrate on the TestReport sequence call and the various report related steps in the Single Pass and Test UUTs sequences.

The TestReport sequence (also a callback) relies on Parameters.ReportOptions.Format to decide which of the following sequences to use when generating the report:
<TestStand>\Components\NI\Models\TestStandModels\reportgen_txt.seq
<TestStand>\Components\NI\Models\TestStandModels\reportgen_html.seq
<TestStand>\Components\NI\Models\TestStandModels\reportgen_xml.seq


In your case, instead of choosing one of the sequences, you could hard code it to use both the html and xml sequences. Be aware that for this to work, you must also modify and/or duplicate most of the report related steps in the Single Pass and Test UUTs sequences. For instance, the Set Report Format step becomes unnecessary since you are hard-coding the report format. On the other hand, the Write UUT Report step needs to be duplicated, one step to write to an html file location, and another to write to the xml file location.

Please note that modifying the process mode in this way will deprecate some of the settings in the report options dialog box (such as the report format). For more information on TestStand report generation, please refer to the following DevZone article:
Report Generation Explained

Regards,

Message Edited by James M on 05-29-2007 03:08 PM

0 Kudos
Message 2 of 2
(3,124 Views)