Report.Setup does not create directory or warn

Bug reports.
User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Report.Setup does not create directory or warn

Post by Ciege » Wed Mar 11, 2009 11:47 pm

I am using the following line of code to setup a report from Visual Studio 2008 with C#.

Code: Select all

string LogFile = @"c:\temp\Report\MyReport.xml";
Report.Setup(ReportLevel.Debug, LogFile, true);
If C:\Temp\Report does not exist I would expect either Ranorex to create the directory C:\Temp\Report or throw an exception that the directory C:\Temp\Report does not exist.

Currently, everything will run along just fine but no report will be generated.

Thanks...

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Post by Support Team » Thu Mar 12, 2009 2:01 pm

Thanks, this behavior will be fixed in the next release; It is probably best to just try and create the directory if it doesnt exist.

Michael
Ranorex Team

User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Post by Ciege » Thu Mar 12, 2009 4:46 pm

Yes, I am now automatically verifying or creating the directory myself before using report.setup.

I just thought I would bring this behavior to your attention.