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