Пример #1
0
        public static void CreateReport()
        {
            if (EXTENT_REPORT == null)
            {
                GeneralHelpers.EnsureDirectoryExists(reportRootPath);
                GeneralHelpers.EnsureDirectoryExists(reportPath);

                var htmlReporter = new ExtentV3HtmlReporter(fullReportFilePath);
                htmlReporter.LoadConfig(GeneralHelpers.GetProjectPath() + "extent-config.xml");
                EXTENT_REPORT = new ExtentReports();
                EXTENT_REPORT.AttachReporter(htmlReporter);
            }
        }