10-19-2021 08:27 AM
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
10-20-2021 08:12 AM
How do you do that?
10-26-2021 04:41 AM
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
10-26-2021 09:58 AM
Thanks, which sequence should I add this statement in?
10-26-2021 10:23 AM
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
10-26-2021 11:40 AM
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".