NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Report Path and Operator Field in Reports

Dear all,

I have a question regarding TestStand and couldn’t find a clear answer in the forums.

I would like to define two string variables in the Locals or Parameters of the sequence and use them within the “Specify Report File Path by Expression” option to dynamically generate the report path.

Is this supported, and if so, what would be the correct syntax?

 

Additionally, I would like to override the “Operator” field in the generated report with a custom string defined during the sequence execution.

Is there a way to assign this programmatically within the sequence?

 

Thank you in advance for your support.

Best regards,

0 Kudos
Message 1 of 2
(56 Views)

The report path normally has to be decided ahead of MainSequence actually being called. So as long as you have that in mind, you can override callbacks like ReportOptions, or PreUUT to modify the expression (Parameters.ReportOptions.ReportFileSequentialModelExpression" if using Sequential Model for example).

 

For changing the "Operator" field you can override PreUUT, and call Parameters.ModelData.StationInfo.LoginName = "NewOperatorName"

0 Kudos
Message 2 of 2
(36 Views)