NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Include results in "Batch Report" instead of "UUT Report"

Solved!
Go to solution

Hi all,

 

I have modified the ProcessSetup callback in TS 4.0 to perform a preliminary hardware test before I test 8 UUTs using the Batch model. Since it's a callback, the results are not recorded by default, so I store them into a global array of results. Then, I copy this array of results into my MainSequence results array.

 

The problem is that this means these preliminary test results will be recorded for UUT0 (if I use "One thread only" synchronization") or for all UUTs (if I use the batch model synchronization). How can I add the results of my ProcessSetup test to the "Batch results" section of the results page instead of the "UUT Results" sections? The test is checking the shared hardware and therefore applies to all UUTs. I'd rather not have it repeated for each UUT or make it look like it only applies to the first UUT.

 

Thank you,

Chris

0 Kudos
Message 1 of 4
(3,677 Views)

Forgot to mention I am generating an XML report.

 

-Thanks

0 Kudos
Message 2 of 4
(3,663 Views)

Hi Tomahawk,

 

The ModifyReportHeader callback will allow you to add results to the report header without having to have a separate UUT.  You can find more information regarding this and other reporting  callbacks in the TestStand Manual. Let me know if you have any questions about overriding this callback!  

Al B.
Staff Software Engineer - TestStand
CTA/CLD
0 Kudos
Message 3 of 4
(3,645 Views)
Solution
Accepted by topic author Tomahawk1277

Tomahawk,

 

Al is correct that if you were using HTML or ASCII report formats, you could override the ModifyReport... Callbacks to get what you want. Unfortunately, with XML Reporting, you can not use the ModifyReport... Callbacks. In order to accomplish the functionality you would like to see while continuing to use the XML report format, you will need to modify the BatchReport Callback as well as the XML style sheet that you are using.

 

In TestStand 4.2 we created tutorials and provided better documentation for our XML Style Sheets. With a little bit of effort, I'm confident that with TestStand 4.2 you would be able to achieve your goal.

 

I would suggest taking a look at the Customizing TestStand Style Sheets topic of the TestStand 4.2 Help (available online). Unfortunately, the TestStand 4.0 XML Style Sheets do not have the same quality of documentation as the TestStand 4.2 Style Sheets so you will not have commented sections in the 4.0 Style Sheets as the Help explains.

 

For this particular case, you would want to modify the BatchReport Callback to store the data that you want to place in your Batch Report section. Then, you would need to modify the Batch Report section of the XML Style Sheet with the appropriate XPath to display that data in the Batch Report.

Manooch H.
National Instruments
0 Kudos
Message 4 of 4
(3,632 Views)