public void EndTest(Guid id, LogStatus status, Exception e) { tests[id].Log(Convert(status), e); report.EndTest(tests[id]); Flush(); }
public void LogTest(Guid id, LogStatus status, string description = null) => tests[id].Log(Convert(status), description);
public void EndTest(Guid id, LogStatus status, string details) { tests[id].Log(Convert(status), details); report.EndTest(tests[id]); Flush(); }
RelevantCodes.ExtentReports.LogStatus Convert(LogStatus status) => (RelevantCodes.ExtentReports.LogStatus)Enum .Parse(typeof(RelevantCodes.ExtentReports.LogStatus), status.ToString());