TestReport does not create folders : Bug Reports

TestReport does not create folders

Bug reports and feature requests.

TestReport does not create folders

Postby Elena » Tue Jul 19, 2011 3:57 pm

Hi,

running a line like this:
Code: Select all
TestReport.Setup(ReportLevel.Debug, @"adt\\file1.rxlog", true);


does not produce any report. If I remove the folder part, then the file is generated properly. It also works, if I create folder manually before running the test.

It used to work fine with Ranorex 2.x. Is there something special about the path I should do/write?


Kind regards,
Elena
Elena
 
Posts: 11
Joined: Thu Mar 10, 2011 1:47 pm
Location: Copenhagen, Denmark

Re: TestReport does not create folders

Postby Ciege » Tue Jul 19, 2011 6:00 pm

I may be mistaken but there looks to be a bug in your line of code.
Using the @ sign tells the compiler to treat every character as it is displayed so the line of code is trying to put two slashes between the folder and file name, which is invalid.
Try removing either the @ sign OR one of the slashes and run it again.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...
User avatar
Ciege
 
Posts: 965
Joined: Thu Oct 16, 2008 7:46 pm
Location: Arizona, USA

Re: TestReport does not create folders

Postby Elena » Wed Jul 20, 2011 8:59 am

I tried removing one of the slashes - same story. Put the slash back and removed @ sign - same thing again. Still no report.

Besides, this used to work perfectly with Ranorex 2.x reporting.
Elena
 
Posts: 11
Joined: Thu Mar 10, 2011 1:47 pm
Location: Copenhagen, Denmark

Re: TestReport does not create folders

Postby Support Team » Wed Jul 20, 2011 1:38 pm

Hi,

In Ranorex 3.x the report method changed and therefore the behavior changed too. With 3.x the TestSuiteRunner creates the folder for the Report. If you want to use the old method your can use Report.Setup() as you know it from 2.x and the folder will be created.
In Ranorex 3.1 there will be a property inside the Test Suite settings to set the folder of the report.

Regards,
Peter
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: TestReport does not create folders

Postby Elena » Wed Jul 20, 2011 3:36 pm

Thanks for response. I decided to go for Directory.CreateDirectory() instead :)
Elena
 
Posts: 11
Joined: Thu Mar 10, 2011 1:47 pm
Location: Copenhagen, Denmark

Re: TestReport does not create folders

Postby Support Team » Wed Jul 20, 2011 3:37 pm

This is indeed a good solution. :)

Regards,
Peter
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests

cron