NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get my FileGlobals into my report

I my sequence file I have a number of global variables that I would like to include in my report..  But I can't figure out excatly how this is done?
 
Thanks
Claus
0 Kudos
Message 1 of 6
(3,752 Views)
Clausi,
 
You can use the ModifyReportFooter Model Callback to append these variables to the end of the report.
The only thing you have to do is go to Edit->SequnceFile Callbacks.... and add the modify report footer call back.
This action will add the sequence callback to your sequence file.
If you go to the sequence and modify the input parameter 'ReportFooter' (String) the string will be appended to the report.
In your case you have to create a string containing the name and values of the properties you want to append.
unfortunately this will only work for the Text and HTML report formats.
 
I hope it helps.
 
For more information check the Appendix A of the TestStand Reference Manual.
0 Kudos
Message 2 of 6
(3,734 Views)

HI Antonio,

Thanks for your suggestion.. I have tried to add the ModifyReportFooter callback.. In the parameter ReportFooter I set the value to 'Hello' but it never appears in the report (txt format) after completion.

The ModifyReportFooter callback also has a parameters called ReportOptions. Does it need any changes to enable the ReportFooter string to enter the report?

 

Regards

Claus

0 Kudos
Message 3 of 6
(3,720 Views)

Claus,

You do not need to modify the Report Options.

What version of TestStand are you using?

I am attaching a TestStand 3.0 sequence that modifies the report footer.

I just append 'Test' at the end of the report.

Make sure to go to the Configure->Report Options... menu and set the Report Format to Text or HTML.

Regards.

0 Kudos
Message 4 of 6
(3,711 Views)
Hi Antonio,
 
Thanks! Now I have it working.. It seems that I had made a wrong statement in the "Main" section..
Cool 🙂
 
Regards
Claus
0 Kudos
Message 5 of 6
(3,708 Views)
Clausi -
Note that this solution only works when the sequence file is the client file, that is, it is the file that is called by the process model.  The client file has the ability to override the callback sequences defined in the model. If you wanted to include the file globals of a sequence from a second file that the first one calls, this solution will not work. 
 
If you wanted to add the file globals for an arbitrary file to the report per UUT and you wanted it to not show up in the middle of the report, you could extend the model to have a sequence that collects this type of information and it could add the information to the footer in the process model callback instead of by the client.  There are many ways to collect and achieve this though.
Scott Richardson
https://testeract.com
0 Kudos
Message 6 of 6
(3,673 Views)