Running tests within Visual Studio Test.rxlog is not updated
Posted: 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;
}
}
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;
}
}