NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Modify Report Header using an expression

Solved!
Go to solution

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


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 1 of 6
(5,333 Views)

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.

Regards
Ray Farmer
0 Kudos
Message 2 of 6
(5,328 Views)

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

 


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 3 of 6
(5,323 Views)
Solution
Accepted by topic author .aCe.

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

Report Generation Explained

 

Lewis

Lewis Gear CLA
LabVIEW UAV

Message 4 of 6
(5,296 Views)

Hi Lewis,

I modified the Model Callback.

Thanks for that.

 


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 5 of 6
(5,264 Views)

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

 

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