some questions on Ranorex.Report
Posted: Sat Jan 29, 2011 5:49 pm
First, report won't create. I used try-catch block to catch all the exceptions in my test methods and in catch block I am calling method which looks like this:
After I generate report I throw exception for Nunit to fail test.
I thought ranorex report with specific name will be created, but it wouldn't.
Second, is there any way to rename screenshot image file by some custom name?
Regards,
Vajda Vladimir
Code: Select all
private void ErrorLog(Exception ex)
{
string logFileName = TestContext.CurrentContext.Test.Name + ".rxlog";
Ranorex.Report.Setup(Ranorex.ReportLevel.Debug, logFileName, true, false);
Ranorex.Report.Error(ex.ToString());
Ranorex.Report.Screenshot();
Ranorex.Report.End();
throw ex;
}
I thought ranorex report with specific name will be created, but it wouldn't.
Second, is there any way to rename screenshot image file by some custom name?
Regards,
Vajda Vladimir