Rolling back to Report 2.x : Automation API

Rolling back to Report 2.x

Class library usage, coding and language questions.

Rolling back to Report 2.x

Postby slavikf » Mon Mar 21, 2011 9: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 101 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
slavikf
 
Posts: 97
Joined: Mon Sep 13, 2010 10:07 pm
Location: Toronto, Canada

Re: Rolling back to Report 2.x

Postby Support Team » Tue Mar 22, 2011 2: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
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to Automation API

Who is online

Users browsing this forum: No registered users and 0 guests