Page 1 of 1

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

Posted: Wed Jul 30, 2014 6:10 pm
by UgaAga
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

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

Posted: Fri Aug 01, 2014 9:47 am
by UgaAga
Anyone?

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

Posted: Fri Aug 01, 2014 1:56 pm
by Support Team
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