Identify failed tests

Ranorex Spy, Recorder, and Studio.
dariof
Posts: 12
Joined: Tue Oct 15, 2013 1:50 pm

Identify failed tests

Post by dariof » Tue Dec 03, 2013 5:44 pm

The program saves the test reports KO and OK in the same folder, but I'd like to check only the reports failed.

Is it possible, for example, to save the reports failed in a different folder? or rename the reports failed?

Thanks

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

Re: Identify failed tests

Post by Support Team » Wed Dec 04, 2013 4:55 pm

Hello dariof,

You could achieve this by adding the following lines of code in your Program.cs file:
if (error==0)
	Report.Copy(TestReport.ReportEnvironment, @"C:\ReportSuccess\Report.rxlog");							
else
	Report.Copy(TestReport.ReportEnvironment, @"C:\ReportFailed\Report.rxlog");
This method copies the report in your specified folder.

Regards,
Markus (T)
.
Image