Beispiel #1
0
 public void Dispose()
 {
     _extentReports = null;
     _logger        = null;
     _htmlReporter  = null;
     _klovReporter  = null;
 }
Beispiel #2
0
        static ReportContext()
        {
            ExtendReport = new AventStack.ExtentReports.ExtentReports();
            var path         = PathHelper.ToApplicationPath(Settings.ExtendReportPath);
            var htmlReporter = new ExtentHtmlReporter(path);

            htmlReporter.Config.Theme = AventStack.ExtentReports.Reporter.Configuration.Theme.Dark;
            ReportContext.ExtendReport.AttachReporter(htmlReporter);
        }
Beispiel #3
0
        public static void RegisterExtentReport(IObjectContainer objectContainer, TestContext testContext)
        {
            var report = new ExtentHtmlReporter(testContext.UniqueOutputDirectory);
            var extent = new AventStack.ExtentReports.ExtentReports();

            extent.AttachReporter(report);

            objectContainer.RegisterInstanceAs(extent);
        }
Beispiel #4
0
        public void Initialize()
        {
            ExtentReporter = new AventStack.ExtentReports.ExtentReports();

            // NOTE: For some reason, I need to specify the path here or it goes 'one level up'. Am I missing something?
            _htmlReporter = new AventStack.ExtentReports.Reporter.ExtentHtmlReporter(System.IO.Path.Combine(ReportOutputFolder, "index.html"));

            ExtentReporter.AttachReporter(_htmlReporter);
        }
Beispiel #5
0
        public ExtendReportContext()
        {
            ExtentReport = new AventStack.ExtentReports.ExtentReports();
            // store the Report
            var path         = PathHelper.GetCurrentPath(Settings.ExtendReportPath);
            var htmlReporter = new ExtentHtmlReporter(path);

            htmlReporter.Config.Theme = AventStack.ExtentReports.Reporter.Configuration.Theme.Dark;
            ExtentReport.AttachReporter(htmlReporter);
        }
Beispiel #6
0
        /// <summary>
        /// Initialize Report
        /// </summary>
        /// <param name="configuration">Report Configuration</param>
        /// <returns></returns>
        public static AventStack.ExtentReports.ExtentReports InitializeReport(IConfiguration configuration)
        {
            var reportPath = getReportsFolder(configuration);

            var htmlReporter = new ExtentHtmlReporter(reportPath);

            htmlReporter.Config.Theme = AventStack.ExtentReports.Reporter.Configuration.Theme.Dark;

            AventStack.ExtentReports.ExtentReports extent = new AventStack.ExtentReports.ExtentReports();
            extent.AttachReporter(htmlReporter);

            return(extent);
        }
Beispiel #7
0
        private void ConfigReport()
        {
            _extentReports = new AventStack.ExtentReports.ExtentReports();

            if (_htmlReporter != null)
            {
                _extentReports.AttachReporter(_htmlReporter);
            }

            if (_klovReporter != null)
            {
                _extentReports.AttachReporter(_klovReporter);
            }
        }
Beispiel #8
0
 public static void FlushExtentReport(AventStack.ExtentReports.ExtentReports extent)
 {
     extent.Flush();
 }
Beispiel #9
0
 public void Uninitialize()
 {
     ExtentReporter.Flush();
     ExtentReporter = null;
 }