NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Data from text file to report header

Hi,

 

We would like to generate xml test reports that have data from .txt file in header. This .txt file is located on the computer where we run test. Idea is to modify first the txt file, run test and have data from txt file in the header of the report. Any idea how to do this or are there any simple examples available?

 

Thanks

0 Kudos
Message 1 of 2
(3,402 Views)

Hello Msee,

 

In the Process Model, there is a call back called ModifyReportHeader, override this call back in your Main Sequence. The "Report Header" parameter variable in the callback holds the XML header code,  the starting  node in the XML will be like "<Report Type='UUT' Title='UUT Report' Link='-1-2011-2-18-18-55-39-168' UUTResult='Passed' StepCount='1'>", you have to replace the "Title" attribute in the node to your custom string value (read from your file). The custom title will be appeared in the Report.

 

Do not change any part of the XML code, just replace the Title value alone.

 

 

AshwiN,

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