10-26-2016 09:37 PM
I want change my report path to "D:\\" by sequence or by TS API, report name should be keep "$(ClientFileDir)\\$(ClientFileName)_Report-$(FileDate)-$(FileTime)-$(Unique).$(FileExtension)", only the path need change to "D:\\", I don't want using "Result Processing" dialog,I have read a lot of related posts,find the best way is overwrite GetReportFilePath callback.
I don't know why the GetReportFilePath Callback don't work, thanks!
Solved! Go to Solution.
10-27-2016 04:13 AM
10-27-2016 05:01 AM
I put it in client sequence "ReportOptions" like below, it work now.
Parameters.ReportOptions.Directory = "D:\abc",
Parameters.ReportOptions.DirectoryType= "SpecificDirectory"
but I don't know why it don't work it i put it in model sequence.
11-02-2016 01:11 PM
Hi TabZhang,
Using the ReportOptions callback is the appropriate location to set the report path programmatically, so your current solution is correct.
The GetReportFilePath callback exists so the client sequence file can inspect the report file path if needed, and is executed during the Model Plugin - UUT Done and Model Plugin - Batch Done sequences of the process model. ReportOptions is called at Model Plugin - Begin. This is important because the actual file that contains the report is being created during the Model Plugin - UUT Start and/or Model Plugin - Batch Start sequences which execute after Model Plugin - Begin, but before Model Plugin - UUT Done.
11-02-2016 08:37 PM
Hi Steven,
OK, Thanks for your clarification!