02-18-2011 05:03 AM
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
02-18-2011 07:35 AM
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,