Page 1 of 1

Report not getting saved in custom location

Posted: Thu May 26, 2016 7:27 am
by deepak1920
Hi,

I am trying to set up the report from Visual Studio. I have written below line of code -

Ranorex.Core.Reporting.TestReport.Setup(ReportLevel.Debug, "abc.rxlog", true, "C:\\Temp");

I have placed view.rxlog file in "C:\\Temp" folder. Now when I execute my script from Visual Studio, it creates abc.rxlog.data_tmp and abc.ref files in bin directory instead of "C:\\Temp". Apart from this abc.rxlog is not found anywhere.

Could you please help me in setting up my report. I want to save it to a specific location rather than bin directory.


Thanks!

Re: Report not getting saved in custom location

Posted: Mon May 30, 2016 3:23 pm
by Support Team
Hi deepak,

In order to save your report to your custom location, you need to add the path to the filename-argument.
Furthermore, the report needs to be saved at the end of the test.
Ranorex.Core.Reporting.TestReport.Setup(Ranorex.ReportLevel.Info,@"C:\Temp\abc.rxlog",true);
Ranorex.Core.Reporting.TestReport.SaveReport();
The path you are using as an argument, only points to an already existing custom template, in order to change appearance of your report.

I hope this information helps you.

Sincerely,
Matthias