NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Change the report file path in NI TestSTAND 2017

I have a need to store test results from "Golden UUTs" in their own folder to be easily viewed. I currently under Result Processing for Test Results use " Specify Report File Path by Expression" "$(ClientFileDir)\\Reports\\$(UUTStatus)\\$(ClientFileName)_Report[$(UUT)][$(UUTStatus)][$(FileTime)][$(FileDate)]$(Unique).$(FileExtension)". Can I just an IF statement that modifies the report path in "NI_ReportsGenerator.seq" when Golden UUT serial number is entered or must I create a new callback process model for TestReport, which I have no experience doing? What would be the most efficient way to do this?

 

 

0 Kudos
Message 1 of 3
(2,686 Views)

Hello Big_Papa_Craig,

 When you use " Specify Report File Path by Expression", TS generate path by "Model Plugin - Batch Start" sequence and "Determine Batch Report File Path Expression" step. So like below picture you can add a statement after that and do some string modify by yourself. You can get original path form BatchReportFilePath and add path or renew path to do what you want ~ 

 

ricky10116_real_0-1582076689409.png

 

 

Thanks,

Ricky

 

0 Kudos
Message 2 of 3
(2,631 Views)

 

Thanks, Ricky I have the "Specify Report File Path by Expression" option selected so the file path is created by the top statement in subsequence "Calculate File Path". I passed a boolean in that set the "UUT Status" to "Golden".

So my file path changed from: C:\Program Files (x86)QA\Reports\Passed\

                                             to:C:\Program Files (x86)\QA\Reports\Golden\

 

Thank you for your help,

Craig

 

AAAA.jpg

0 Kudos
Message 3 of 3
(2,598 Views)