Example #1
0
        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();
        }
Example #2
0
 public static void printReport()
 {
     ExtentReportBuilder.WriteReport();
     DriverFactory.DisposeDriver();
     Log.CloseAndFlush();
 }
Example #3
0
 public Hooks1(FeatureContext featureContext, ScenarioContext scenarioContext, ExtentReportBuilder extentReportBuilder)
 {
     this._featureContext      = featureContext;
     this._scenarioContext     = scenarioContext;
     this._extentReportBuilder = extentReportBuilder;
 }