8.2 Issue: Unable to get reporting activity

Bug reports.
kpandiyaraj
Posts: 1
Joined: Fri Jul 13, 2018 3:12 pm

8.2 Issue: Unable to get reporting activity

Post by kpandiyaraj » Fri Jul 13, 2018 3:18 pm

Hi,

I have added code "var rootActivity = Ranorex.Core.Reporting.ActivityStack.Instance.RootActivity;" in Program.cs as follow. It worked in previous versions, But RootActivity returns null in Ranorex 8.2.0.

[STAThread]
public static int Main(string[] args)
{
Keyboard.AbortKey = System.Windows.Forms.Keys.Escape;

int error = 0;

try
{
error = TestSuiteRunner.Run(typeof(Program), Environment.CommandLine);
}
catch (Exception e)
{
Report.Log(ReportLevel.Info, e.Message);
Report.Error("Unexpected exception occurred: " + e.ToString());
error = -1;
}
finally
{
var rootActivity = Ranorex.Core.Reporting.ActivityStack.Instance.RootActivity;
etc.....
ReportGenerator.SendZipMail(ReportGenerator.HtmlReport);
}
return error;
}

Please check

Regards,
pandiyaraj

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

Re: 8.2 Issue: Unable to get reporting activity

Post by Support Team » Wed Jul 18, 2018 2:06 pm

Hello pandiyaraj,

Thank you for reporting this issue.
We identified the issue during this week and we are already analyzing it. Unfortunately, I am not yet able to say when the issue will be fixed. Most probably this will be done in one of the upcoming versions of Ranorex.

A possible workaround for you might be to move that code into a global tear-down of the test suite. Would this be a viable workaround for you?

Sincerely,
Tomaž
.
Image