Identify failed tests

Ranorex Studio, Spy, Recorder, and Driver.
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?


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

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");							
	Report.Copy(TestReport.ReportEnvironment, @"C:\ReportFailed\Report.rxlog");
This method copies the report in your specified folder.

Markus (T)