Ejemplo n.º 1
0
        public static void InitializeExtentReport(string currentDirectory)
        {
            var reportsPath = Path.Combine(currentDirectory, "Reports");

            Directory.CreateDirectory(reportsPath);

            var htmlReporter = new ExtentHtmlReporter($"{reportsPath}\\index.html");

            htmlReporter.Config.Theme = Theme.Standard;
            Instance.AttachReporter(htmlReporter);
            Instance.AddSystemInfo("Host Name", "Selenium with .NetCore/.Net5");
            Instance.AddSystemInfo("Environment", ConfigurationRoot.GetApplicationConfiguration().Environment);
            Instance.AddSystemInfo("UserName", "Ramona Zmole");
        }