public static void Info(string message) { Logger.Info(message); ExtentReportsHelper.GetExtentReportsHelper().SetStepStatusInfo(message); var step = new StepResult() { name = message }; AllureLifecycle.Instance.StartStep(Guid.NewGuid().ToString(), step); AllureLifecycle.Instance.StopStep(); }
public static ExtentReportsHelper GetExtentReportsHelper() { if (_extentReportsHelper == null) { _extentReportsHelper = new ExtentReportsHelper(); _extent = new ExtentReports(); _reporter = new ExtentV3HtmlReporter(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "ExtentReports.html")); _reporter.Config.DocumentTitle = "Automation Testing Report"; _reporter.Config.ReportName = "Final Project Report"; _reporter.Config.Theme = AventStack.ExtentReports.Reporter.Configuration.Theme.Standard; _extent.AttachReporter(_reporter); _extent.AddSystemInfo("Machine", Environment.MachineName); _extent.AddSystemInfo("OS", Environment.OSVersion.VersionString); } return(_extentReportsHelper); }