Running tests within Visual Studio Test.rxlog is not updated

Bug reports.
erik.lindahl
Posts: 1
Joined: Fri Jan 23, 2009 2:35 pm

Running tests within Visual Studio Test.rxlog is not updated

Post by erik.lindahl » Tue Jan 27, 2009 11:55 am

The code below is generated by Ranorex Studio. When running from within Visual Studio the file Test.rxlog is not updated (overwritten) with new testresults. however, the jpg-files created by Report.Screenshot() are updated and overwritten.

class Program
{
[STAThread]
public static int Main(string[] args)
{
Keyboard.AbortKey = System.Windows.Forms.Keys.Pause;
int error = 0;

string logFileName = "Test.rxlog";

Report.Setup(ReportLevel.Info, logFileName, true);

try
{
//TODO: Code here - for example:
Recording1.Start();
}
catch (RanorexException e)
{
Report.Error(e.ToString());
Report.Screenshot();
error = -1;
}

Report.End();
return error;
}
}

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

Post by Support Team » Tue Jan 27, 2009 2:05 pm

Hi erik.lindahl,
this is a bug in Ranorex2.0 RC1.
It will be fixed in the next version.

Christian
Ranorex Support Team