12-08-2011 07:30 AM
Hi All,
I would like to know if we can modify the Report Header programmatically? I basically would like to append a couple of lines in the header.
I can think of two ways -
1. ModifyReportHeader callback - this is really not an option for me as we need to do the implementation in a custom step.
2. Override the default reportgen_txt.seq and reportgen_html.seq and edit them as necessary - this one seems a bit ugly to me.
Any other ideas?
thanks and regards,
aCe
Solved! Go to Solution.
12-08-2011 08:32 AM
Hi,
ModifyReportHeader callback is the way to go. Dont see why you cannot use you custom step inside the callback to take in the report string, do the modification and return it so that its fed back in to the report string.
12-08-2011 10:24 AM
Ray,
Sorry, I if I was not clear earlier.
This custom step would be used by a test sequence developer who has very little understanding of TestStand.
The idea is that the person would drag and drop this step in to a sequence and add details of the Unit under test during edit-time which then should appear in the report header along with serial numbers etc. when the program is run.
For example, data such as:
Test Specification: X123-456-789 Issue x
Unit Part#: xxxxxxx
Interface Part# xxxxxxxxxxxx
Asking someone to add the callback would then require TestStand skills and would defeat our goal of trying to deskill this operation.
I hope I am making sense!
Thanks and regards,
aCe
12-13-2011
05:16 AM
- last edited on
10-18-2025
05:29 PM
by
Content Cleaner
Hi aCe,
How are you getting on with this?
You may find these document useful:
Modifying HTML Report Headers to Include Custom Information in TestStand
Lewis
12-15-2011 07:51 PM
Hi Lewis,
I modified the Model Callback.
Thanks for that.
10-29-2019 04:23 AM - edited 10-29-2019 04:28 AM
Hi,
I am facing a similar issue I believe, I am trying to Modify the Report Headers for my test sequences. However since I want this done in multiple different test sequences I would like to do it a upper level.
My understanding is the "ModifyReportHeader" callback in the Process Model Sequence File is just a place holder and never gets called so modifying it will not do anything.
The solution I can think of would be to create a custom "NI_ReportGenerator.seq" and modify the "ModifyReportHeader" callback in it. Would this be the best way to go about it?
However with the way Result Processing is handled in TestStand now, the "ModelSupport.seq" calls the "NI_ReportGenerator.seq" using an absolute path stored in the ModelPluginConfiguration variable. What would be the best way to call the custom "NI_ReportGenerator.seq"
Any ideas would be appreciated!
Kewal