NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Log Additional Data to the Batch Report Header ?

Is there a way to log additional data to the Batch Report Header just like you can log additional data to the UUT report:

TestStand Report Generation and Customization - NI

 

 

George Zou
0 Kudos
Message 1 of 6
(1,250 Views)

How do you do that?

 

George Zou
0 Kudos
Message 2 of 6
(1,208 Views)

Hello,

I had the same problem,

may this can help you.

 

//Create Variable
#NoValidation(RunState.Root.Locals.UUT.AdditionalData.SetValString ( Locals.Results[Locals.DummyVar.iCtrArrayResults].Name ,  PropOption_InsertIfMissing, Locals.Results[Locals.DummyVar.iCtrArrayResults].State )),
//Add to Report
#NoValidation(   Evaluate(      "RunState.Root.Locals.UUT.AdditionalData."&Locals.Results[Locals.DummyVar.iCtrArrayResults].Name  &".SetFlags(\"\", 0,PropFlags_IncludeInReport)"        )     ),

 

 Best Rgds 

MAGL21

0 Kudos
Message 3 of 6
(1,190 Views)

Thanks, which sequence should I add this statement in?

 

George Zou
0 Kudos
Message 4 of 6
(1,182 Views)

Hi,

of cause, you need to adjust this statement according your case,

in the end you need to create a variable at this place:

RunState.Root.Locals.UUT.AdditionalData

And you need to set the falg of this variable via this command:

YourNewVariable.SetFlags(\"\", 0,PropFlags_IncludeInReport)

rgds 

MAGL

0 Kudos
Message 5 of 6
(1,170 Views)

If I add it the main sequence, no error, but the additional header show up in the UUT Report, nothing changed in the Batch Report.

If I add it the PreBatch callback, I got an error: unknow variable or property name "RunState.Root.Locals.UUT".

 

George Zou
0 Kudos
Message 6 of 6
(1,170 Views)