Ranorex.Core.Reporting.TestReport.Clear() stops Test

Bug reports.
UgaAga
Posts: 69
Joined: Thu Mar 15, 2012 2:11 pm

Ranorex.Core.Reporting.TestReport.Clear() stops Test

Post by UgaAga » Wed Jul 30, 2014 6:10 pm

Hi,
in some cases i would like to clear all informations logged up to this point. For this reason i use Ranorex.Core.Reporting.TestReport.Clear(). But my test stops after the Clear()! My SelectedRunConfig is still in best order but my ActivityStack is empty. Why? And if this isn't a bug, how can i restore my ActivityStack or clone it?

Best regards

UgaAga
Posts: 69
Joined: Thu Mar 15, 2012 2:11 pm

Re: Ranorex.Core.Reporting.TestReport.Clear() stops Test

Post by UgaAga » Fri Aug 01, 2014 9:47 am

Anyone?

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

Re: Ranorex.Core.Reporting.TestReport.Clear() stops Test

Post by Support Team » Fri Aug 01, 2014 1:56 pm

HI UgaAga,

The Clear() method removes the complete activity stack. This method should not be called within the test suite. The TestReport class is designed for creating your own report without using the Ranorex test suite. It should only be called after the SaveReport() if you want to create a new Report.
I suppose the problem is that you are calling the method within the test suite.

Regards,
Bernhard