Page 1 of 1

Way to specify report folder?

Posted: Tue Apr 12, 2011 4:31 pm
by Gunner1980
I would like to change where my reports are saved as I don't want them all piling up in my root directory with the test suite. I would like to save all reports to a Reports folder. I tried to append the report filename through the GUI by typing Reports/ in front of the filename but it gives me an error saying the report file name cannot contain /. How do I change the reports folder?

Re: Way to specify report folder?

Posted: Tue Apr 12, 2011 4:39 pm
by Ciege
In another post you mentioned that you do use a shared framework of code. In that framework you can create (as I do) a Report Setup Method. This method (in my case) takes 2 parameters, 1 - Report Name and 2 - Base Folder (like C:\Temp\Reports).
The method creates a new folder under that passed in base that is a unique date/time stamp appended to the report name, then under that new folder creates the report, also appended with a date time stamp.

Then, all of my test cases call this Report Setup method at the beginning of their test to get a uniquely name folder structure and report name every iteration of the test.

You can have your method setup any way you like to support your needs for a reporting structure.

Re: Way to specify report folder?

Posted: Tue Apr 12, 2011 5:51 pm
by Gunner1980
Yeah I can use the code but they created a GUI for specifying report names, but I didn't want to do it through the code if the GUI supported this via a menu I don't know about yet.

And if I do still do it through the code does it update the test suite properly or am I going to have settings overriding each other since you can specify the report name in report.setup and in the GUI of the test suite.

Re: Way to specify report folder?

Posted: Tue Apr 12, 2011 6:04 pm
by Ciege
Gunner1980 wrote:And if I do still do it through the code does it update the test suite properly or am I going to have settings overriding each other since you can specify the report name in report.setup and in the GUI of the test suite.
Don't know the answer to that...

I prefer to keep everything in code so I have as much flexibility as possible and because I use Visual Studio to do all my developing.

Re: Way to specify report folder?

Posted: Tue Apr 12, 2011 6:10 pm
by Support Team
Hello,

current plan is to make the report output folder configurable in the settings of the test suite in 3.1,
which is expected for June.

Regards,
Roland
Ranorex Support Team

Re: Way to specify report folder?

Posted: Wed Apr 13, 2011 8:07 pm
by Gunner1980
Ok Thanks, if I specify the report folder through code can I continue to use the GUI to specify the report naming conventions or will they overwrite each other?

Re: Way to specify report folder?

Posted: Mon Apr 18, 2011 10:36 am
by Support Team
Actually, calling the TestReport.Setup method in code will not help, because the test suite will call that method again when started. You can, however, open the rxtst file and edit the "reportfilename" attribute of the test suite tag. The downside is that from then on you cannot edit the properties of the test suite node any more from the UI, because the UI won't let you save your changes.

Regards,
Alex
Ranorex Team