Page 1 of 1

How to append and save the report

Posted: Fri Jun 12, 2009 1:39 pm
by sunitha
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.

:)

Posted: Fri Jun 12, 2009 2:22 pm
by Support Team
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