Page 1 of 1

Disable reports entirely

Posted: Mon Jan 26, 2015 4:36 pm
by Noxxys
Hi,

I'm using the Ranorex API in a C# program to click a few things, but I don't want it to generate any report file at all. The reason is that this program will run 24/7 unattended and I don't need the reports, so I don't want the reports to fill the hard drive.

How do I do that?

Thanks

Re: Disable reports entirely

Posted: Tue Jan 27, 2015 6:34 pm
by Ciege
You should be able to set the report level to "None" to disable reporting.

Code: Select all

Ranorex.Core.Reporting.TestReport.Setup(ReportLevel.None, null, false);

Re: Disable reports entirely

Posted: Wed Jan 28, 2015 5:40 pm
by Noxxys
It's working, thanks a lot.

Re: Disable reports entirely

Posted: Wed Jan 28, 2015 5:55 pm
by Ciege
Cool! You're welcome...

Re: Disable reports entirely

Posted: Mon Oct 05, 2015 12:45 pm
by Remensperger
Hi,
in Version 5.4.2 the following command doesn't work:
Ranorex.Core.Reporting.TestReport.Setup(ReportLevel.None, null, false);

There are still log's created.

Where can I totally switch off any log-files? Or can I redirect log's into a Database (MS SQLServer)?

Greetings from Germany

Re: Disable reports entirely

Posted: Wed Oct 07, 2015 8:04 am
by Support Team
Hello Remensperger,

Please follow the steps below to disable the report.

1) Open the test suite properties
open_testsuite_properties.png
2) Disable the report and apply the change
disable_report.png
In order to store Ranorex Reports to a database you could create a custom logger class and attach it to the Ranorex report engine.
For more information on this topic please have a look at the blog post Customizing Ranorex Reports.

More information about reporting in general can be found in the user guide.

Regards,
Johannes

Re: Disable reports entirely

Posted: Wed Oct 14, 2015 3:30 pm
by Aracknid
Try

Ranorex.Report.Setup(ReportLevel.None, null, false);

Aracknid