How to append and save the report

Ask general questions here.
sunitha
Posts: 24
Joined: Thu May 14, 2009 2:06 pm

How to append and save the report

Post by sunitha » Fri Jun 12, 2009 1:39 pm

My application does some operations where i log the report, and i need to save it. How can i??

And again if i start that same application for another test of operations how can i append the same log with the recent data.

:)

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Post by Support Team » Fri Jun 12, 2009 2:22 pm

Hello sunitha,
use the Report.Setup method to set the filename for your report like:

Code: Select all

string logFileName = "c:\\Test.rxlog";

Report.Setup(ReportLevel.Info, logFileName, true);
Report.Error("Test Error1");
Report.Error("Test Error2");
Report.SystemSummary();

Report.End();
You have to set a new Report filename for every new Report. There is no append functionality available at the moment.

Regards,
Christian
Ranorex Support