02-17-2020 02:06 PM
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?
02-18-2020 07:50 PM - edited 02-18-2020 07:54 PM
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 ~
Thanks,
Ricky
02-25-2020 10:13 AM
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