BUG: TestReport.SaveReport locks first tests case to success

Bug reports.
User avatar
artur_gadomski
Posts: 207
Joined: Mon Jul 19, 2010 6:55 am
Location: Copenhagen, Denmark
Contact:

BUG: TestReport.SaveReport locks first tests case to success

Post by artur_gadomski » Fri Nov 09, 2012 1:24 pm

Hi
Using this code:
TestReport.Setup(ReportLevel.Debug, "Report.rxlog", true);
TestReport.BeginTestSuite("Suite");
TestReport.BeginTestCase("Case 1");
TestReport.BeginTestModule("Module 1");
Report.Info("Before save.");
TestReport.SaveReport();
Report.Failure("Failed");
TestReport.EndTestModule();
TestReport.EndTestCase();

TestReport.BeginTestCase("Case 2");
TestReport.BeginTestModule("Module 2");
Report.Success("Success");
TestReport.EndTestModule();
TestReport.EndTestCase();

TestReport.BeginTestCase("Case 3");
TestReport.BeginTestModule("Module 3");
Report.Info("Before save.");
TestReport.SaveReport();
Report.Failure("Failure");
TestReport.EndTestModule();
TestReport.EndTestCase();
Attached report is created where test Case 1 passes and test case 3 fails. It should produce Report where both test cases fail.
Attachments
Report.rar
Wrong report
(119.54 KiB) Downloaded 188 times

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

Re: BUG: TestReport.SaveReport locks first tests case to success

Post by Support Team » Fri Nov 09, 2012 2:21 pm

Hi,

In Ranorex 3.3.4, which will be released in a few days, this will be fixed. This error only occurs if you use the Test Report API. You shouldn't have this false state if you use the TestSuite. The automatically calculation caused this error.

Regards,
Peter
Ranorex Team
.
Image