public static void initializeReport() { ExtentReportBuilder.CreateReport(@"D:\Programming\vsWorkspace\solutions\SpecflowNetCoreDemo\ExtentReport.html"); ConfigReader.LoadConfigs(); Log.Logger = new LoggerConfiguration() .Enrich.With(new ThreadIdEnricher()) .WriteTo.Console(outputTemplate: "{Timestamp} [{Level}] ({ThreadId}) {Message}{NewLine}{Exception}") .WriteTo.File(@"D:\Programming\vsWorkspace\solutions\SpecflowNetCoreDemo\log -.txt", rollingInterval: RollingInterval.Day, outputTemplate: "{Timestamp} [{Level}] ({ThreadId}) {Message}{NewLine}{Exception}") .CreateLogger(); }
public static void printReport() { ExtentReportBuilder.WriteReport(); DriverFactory.DisposeDriver(); Log.CloseAndFlush(); }
public Hooks1(FeatureContext featureContext, ScenarioContext scenarioContext, ExtentReportBuilder extentReportBuilder) { this._featureContext = featureContext; this._scenarioContext = scenarioContext; this._extentReportBuilder = extentReportBuilder; }