NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically rename report file while still loading in sequence editor after execution

Hello, I'm looking for help with the following problem. My sequences run tests for a number of different product families, and I want the reports to be stored in separate folders on a NAS based on the product family, but the sequence files don't live on the NAS, so I can't just use the client directory macro. From researching, it seems like the best way to accomplish this is to use the GetReportFilePath callback and rename both Parameters.ReportFilePath and RunState.Caller.Locals.ReportPath (although only the latter may be necessary). This leaves a 0-Byte "ghost" file with the original name/location specified in the Results Configuration page, but that's tolerable. Unfortunately, this makes it so that the report does not appear in the report tab after execution, it seems that TS is still looking at the ghost file, not at the actual file.

 

Is there any way to change that? I've looked through the TestReport callback but it's not clear to me what I would change, or when that even runs.

 

I could also potentially implement this by doing some complicated logic inside the report name expression box, but this is hampered by the macros executing after any logic, and the caller actually being the process model instead of the sequence file whose properties I'm interested in (although that could potentially be worked around I didn't see any examples that did so).

 

Any help would be appreciated.

 

Thanks,

Stuart

0 Kudos
Message 1 of 1
(1,752 Views)