Rolling back to Report 2.x

Class library usage, coding and language questions.
User avatar
slavikf
Posts: 104
Joined: Mon Sep 13, 2010 9:07 pm
Location: Toronto, Canada
Contact:

Rolling back to Report 2.x

Post by slavikf » Mon Mar 21, 2011 8:38 pm

I was told, i can switch to Ranorex 2.x report functionality by using Report.Setup method.
I did it.
I wanted my report to be opened by Ranorex after it ran tests, so i used "Test.rxlog" filename.

And probably because of that i got following error:
err.PNG
err.PNG (39.4 KiB) Viewed 708 times
Question:
How to revert to Ranorex 2.X reports and
- have report open after each run
- not having this error comes up every time

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

Re: Rolling back to Report 2.x

Post by Support Team » Tue Mar 22, 2011 1:48 pm

Hi,

to setup the old reporting from 2.x you have to add a Test Case as first entry of your Test Suite which holds a Code Module with code looking as followed:
Report.Setup(ReportLevel.Always, "Test.rxlog", false, false);
After that you have to disable the new Reporting by editing the Test Suites Properties:
In General Tab you have
  • to remove the Report Files name and
  • to set the Auto Save Interval to 0
This procedure will be simplified in one of our next releases, but you can use this workaround for now.

Kind regards,
Tobias
Support Team
.
Image