Example #1
0
        // Browser Setup
        public BaseSetup()
        {
            // Setup up report directory from App.config file.
            var reportDir = AppDomain.CurrentDomain.BaseDirectory + ConfigurationManager.AppSettings["ReportPath"];

            Directory.CreateDirectory(reportDir);
            var fileName     = (reportDir + ConfigurationManager.AppSettings["ReportTitle"] + _time + ".html");
            var htmlReporter = new ExtentHtmlReporter(fileName);

            _extent = new ExtentReports();

            _extent.AttachReporter(htmlReporter);

            // Report Configurations
            //htmlReporter.LoadConfig(AppDomain.CurrentDomain.BaseDirectory + @"..\..\packages\ExtentReports.3.0.2\lib\extent-config.xml");

            // make the charts visible on report open
            htmlReporter.Configuration().ChartVisibilityOnOpen = false;
            htmlReporter.Configuration().ChartLocation         = ChartLocation.Top;
            // report title
            htmlReporter.Configuration().DocumentTitle = ConfigurationManager.AppSettings["ReportTitle"];
            // DSS logo
            string dssImg = "<img src=\"..\\WAF\\Logo\\DSSinc.png\" alt=\"DSS\" style=\"padding-top: 5px; padding-left: 10px; padding-right: 30px; max-height: 90%; width: auto;\"> ";
            // report or build name
            string reportText = "<span class=\"suite-start-time label blue darken-3\" style=\"position: relative; top: -15px;\">" + ConfigurationManager.AppSettings["ReportTitle"] + " &nbsp|&nbsp Build - " + ConfigurationManager.AppSettings["ProductVersion"] + "</span>";

            htmlReporter.Configuration().ReportName = dssImg + reportText;
            // add custom css
            htmlReporter.Configuration().CSS = @".step-details > img { float: right; } td{font-size: 16px} .test-steps th:nth-child(2), tr.log > td:nth-child(2), .node-steps th:nth-child(2), .node-steps td:nth-child(2) { display: none; } .brand-logo { display: none !important; } .nav-wrapper { background-color: white; } a:last-child .label.blue.darken-3 { display: none; }";
            // add custom javascript

            _test = _extent.CreateTest("Test");

            Browser.Initialize();
        }
Example #2
0
        protected void Setup()
        {
            var dir      = TestContext.CurrentContext.TestDirectory + "\\";
            var fileName = this.GetType().ToString() + ".html";

            reportdir = dir + "reports";
            var htmlReporter = new ExtentHtmlReporter(dir + fileName);

            htmlReporter.Configuration().Theme = Theme.Dark;

            htmlReporter.Configuration().DocumentTitle = "TestReport";

            htmlReporter.Configuration().ReportName = "MeridianReportfor 18.1";

            _extent = new ExtentReports();
            _extent.AttachReporter(htmlReporter);

            ICapabilities cap = ((RemoteWebDriver)Driver.Instance).Capabilities;


            _extent.AddSystemInfo("Environment", ConfigurationManager.AppSettings["MeridianTestEnvironment"]);

            _extent.AddSystemInfo("Browser", ConfigurationManager.AppSettings["Selenium2Browserch"]);

            _extent.AddSystemInfo("Browser Name", cap.BrowserName);
            _extent.AddSystemInfo("Browser Version", cap.Version);
            // _extent.AddSystemInfo("Environment", cap.Platform.MajorVersion.ToString());
        }
Example #3
0
        public static void MyClassInitialize(TestContext testContext)
        {
            BuildVersion = ConfigurationManager.AppSettings["Version"];
            //MainCall.LogEntry("Execution Started On Build", "ExecutionStarted", BuildVersion, null);

            var htmlReporter = new ExtentHtmlReporter(@"C:\Automation\Reports\AutomationReport.html");

            htmlReporter.Configuration().DocumentTitle = "My First Report";

            // make the charts visible on report open
            htmlReporter.Configuration().ChartVisibilityOnOpen = true;

            // report title
            htmlReporter.Configuration().DocumentTitle = "aventstack - ExtentReports";
            // encoding, default = UTF-8
            htmlReporter.Configuration().Encoding = "UTF-8";

            // protocol (http, https)
            htmlReporter.Configuration().Protocol      = Protocol.HTTPS;
            htmlReporter.Configuration().ReportName    = "Build-1224";
            htmlReporter.Configuration().ChartLocation = ChartLocation.Bottom;
            htmlReporter.Configuration().Theme         = Theme.Dark;
            htmlReporter.Configuration().CSS           = "css-string";
            htmlReporter.Configuration().JS            = "js-string";

            _extent = new ExtentReports();
            _extent.AttachReporter(htmlReporter);
        }
        public void StartReport()
        {
            htmlReporter = new ExtentHtmlReporter("C:/Users/Setup/Desktop/SampleReports");

            htmlReporter.Configuration().Theme = Theme.Dark;

            htmlReporter.Configuration().DocumentTitle = "Test Scenarios Report";

            htmlReporter.Configuration().ReportName = "QA Report";

            extent = new ExtentReports();

            extent.AttachReporter(htmlReporter);

            //ITakesScreenshot ts = (ITakesScreenshot)driver;
            //Screenshot screenshot = ts.GetScreenshot();

            //string path = System.Reflection.Assembly.GetCallingAssembly().CodeBase;
            //string actualPath = path.Substring(0, path.LastIndexOf("bin")) + "ErrorScreenshots" + "Ade test" + ".png";
            //string projectPath = new Uri(actualPath).LocalPath;
            //string reportPath = projectPath + "Reports\\AdeReports.html";

            //extent = new ExtentReports();
            //var extentHtml = new ExtentHtmlReporter(reportPath);
        }
Example #5
0
        public static void BeforeTestRun()
        {
            ObjectRepository.ServerName   = ConfigurationManager.AppSettings["ServerName"];
            ObjectRepository.DataBaseName = ConfigurationManager.AppSettings["DataBaseName"];

            ObjectRepository.ProjectName = "MOL";
            string curPath     = GenericHelper.CurrentDirectory();
            string currentTime = DateTime.Now.ToString("yyyy-MM-dd_hh-mm-ss");

            string ResultPath = curPath + "\\Result Folder\\MOL_" + currentTime;

            ObjectRepository.ParentResultPath = ResultPath;
            GenericHelper.CreatFolder(ResultPath);

            htmlReporter = new ExtentHtmlReporter(ResultPath + "\\Report.html");
            htmlReporter.Configuration().Theme = Theme.Standard;

            htmlReporter.Configuration().DocumentTitle = "HTML Report";
            htmlReporter.Configuration().ReportName    = "Execution Report";
            extent = new ExtentReports();
            extent.AttachReporter(htmlReporter);

            // Creating the Log file
            SeleniumWebDriver.Reports.LogReport.CreateLogFile();
        }
Example #6
0
 public static void TestMethod1()
 {
     try
     {
         string path        = System.Reflection.Assembly.GetCallingAssembly().CodeBase;
         string actualPath  = path.Substring(0, path.LastIndexOf("bin"));
         string projectPath = new Uri(actualPath).LocalPath;
         string ts          = date;
         ResultsPath = Path.Combine(projectPath, "Result\\Reports_" + date + "\\");
         //deletefile();
         reportPath     = Path.Combine(ResultsPath, "EquipmentReturnReport-" + date + ".html");
         screenshotPath = Path.Combine(ResultsPath);
         Directory.CreateDirectory(ResultsPath);
         string             hostName                        = System.Net.Dns.GetHostName();
         ExtentHtmlReporter htmlReporter                    = new ExtentHtmlReporter(reportPath);
         htmlReporter.Configuration().Theme                 = Theme.Dark;
         htmlReporter.Configuration().DocumentTitle         = "EquipmentReturnDocument";
         htmlReporter.Configuration().ChartVisibilityOnOpen = true;
         htmlReporter.Configuration().ReportName            = "EquipmentReturn";
         htmlReporter.AppendExisting = true;
         //htmlReporter.LoadConfig("C:\\EquipmentReturn-ui-automation\\EquipmentReturn.Automation.FunctionalTest\\extent-config.xml");
         extent = new ExtentReports();
         extent.AddSystemInfo("Host Name", hostName);
         extent.AddSystemInfo("Environment", "Non Production");
         extent.AddSystemInfo("Tester", "Purna Mutyala(TTEC IT - QA Team)");
         extent.AttachReporter(htmlReporter);
     }
     catch (Exception e)
     {
         Console.WriteLine(e.StackTrace);
     }
 }
 static ExtentManager()
 {
     try
     {
         //ExtentTestManager._parentTest.Log(Status.Info, "Opening browser- " + bType);
         string        OS                = ConfigurationManager.AppSettings["OS"].ToString();
         string        HostName          = ConfigurationManager.AppSettings["HostName"].ToString();
         string        Environment       = ConfigurationManager.AppSettings["Environment"].ToString();
         string        UserName          = ConfigurationManager.AppSettings["UserName"].ToString();
         DirectoryInfo dirScreenshotPath = new DirectoryInfo(GeneralMethod.GetScreenshotPath());
         foreach (FileInfo fi in dirScreenshotPath.GetFiles())
         {
             fi.Delete();
         }
         var htmlReporter = new ExtentHtmlReporter(GeneralMethod.GetReportPath());
         htmlReporter.Configuration().ChartLocation         = ChartLocation.Bottom;
         htmlReporter.Configuration().ChartVisibilityOnOpen = true;
         htmlReporter.Configuration().DocumentTitle         = "Extent/NUnit Samples";
         htmlReporter.Configuration().ReportName            = "Extent/NUnit Samples";
         htmlReporter.Configuration().Theme = Theme.Standard;
         Instance.AttachReporter(htmlReporter);
         Instance.AddSystemInfo("os", OS);
         Instance.AddSystemInfo("Host Name", HostName);
         Instance.AddSystemInfo("Environment", Environment);
         Instance.AddSystemInfo("User Name", UserName);
     }
     catch (Exception e)
     {
         throw;
     }
 }
        public static void BeforeTestRun()
        {
            // Init data config
            Configs.InitDataConfig();

            // Init report index.html
            pathReport = $"{AppDomain.CurrentDomain.BaseDirectory}" + timeStamp + Configs.varBrowser + Path.AltDirectorySeparatorChar;
            reportHtml = pathReport + Configs.varReportHtlm;

            // Create folder report
            Directory.CreateDirectory(Path.Combine(pathReport));

            // Here I inform the path of the file that will be generated by creating an ExtentHtmlReporter object
            var reporter = new ExtentHtmlReporter(reportHtml);

            reporter.Configuration().Theme                 = AventStack.ExtentReports.Reporter.Configuration.Theme.Dark;
            reporter.Configuration().ChartLocation         = ChartLocation.Top;
            reporter.Configuration().ChartVisibilityOnOpen = true;
            reporter.Configuration().DocumentTitle         = "Extent/NUnit Samples";
            reporter.Configuration().ReportName            = "Extent/NUnit";

            // Instantiate the ExtentReports object
            _extent = new ExtentReports();
            _extent.AddSystemInfo("Host Name", Configs.varOrgName);
            _extent.AddSystemInfo("Environment", Configs.varEnvironment);
            _extent.AddSystemInfo("QC", Configs.varQcName);

            // Then attach in ExtentHtmlReporter
            _extent.AttachReporter(reporter);

            // Sikuli launch
            //launcher.Start();
        }
Example #9
0
        protected void Setup()
        {
            client          = new APIClient("https://rajeshpractice.testrail.io");
            client.User     = "******";
            client.Password = "******";
            //var dir = TestContext.CurrentContext.TestDirectory + "\\";
            //var fileName = this.GetType().ToString() + ".html";
            //var htmlReporter = new ExtentHtmlReporter(dir + fileName);

            string path        = System.Reflection.Assembly.GetCallingAssembly().CodeBase;
            string actualPath  = path.Substring(0, path.LastIndexOf("bin"));
            string projectPath = new Uri(actualPath).LocalPath;
            string reportPath  = projectPath + "Reports\\ExtentStepLogs.html";

            var htmlReporter = new ExtentHtmlReporter(reportPath);

            htmlReporter.Configuration().ChartVisibilityOnOpen = true;
            htmlReporter.Configuration().DocumentTitle         = "Rajesh - Yemul";
            htmlReporter.Configuration().ChartLocation         = ChartLocation.Top;


            extent = new ExtentReports();

            extent.AddSystemInfo("Host Name", "Rajesh");
            extent.AddSystemInfo("Environment", "QA");
            extent.AddSystemInfo("User", "Raj");

            extent.AttachReporter(htmlReporter);
        }
 public void setupOnce()
 {
     htmlReporter = new ExtentHtmlReporter(@"C:\11\" + DateTime.Now.ToString("yymmdd") + ".html");
     htmlReporter.Configuration().Theme      = Theme.Standard;
     htmlReporter.Configuration().ReportName = DateTime.Now.ToString("yymmdd");
     extent = new ExtentReports();
     extent.AttachReporter(htmlReporter);
 }
Example #11
0
 public void StartHtmlReport(string documentTitle, string reportName)
 {
     _htmlReporter = new ExtentHtmlReporter(_reportPath);
     _htmlReporter.Start();
     _htmlReporter.Configuration().Theme         = Theme.Dark;
     _htmlReporter.Configuration().DocumentTitle = documentTitle;
     _htmlReporter.Configuration().ReportName    = reportName;
     Extent.AttachReporter(_htmlReporter);
 }
        public static void Report()
        {
            extent = new ExtentReports();
            var htmlReporter = new ExtentHtmlReporter("C:\\extent.htmls");

            htmlReporter.Configuration().DocumentTitle = "ExtReport";
            htmlReporter.Configuration().Theme         = Theme.Dark;

            extent.AttachReporter(htmlReporter);
        }
 public void SetReportConfiguration(string documentTitle, string reportName, string reportPath)
 {
     extentReports      = new ExtentReports();
     extentHtmlReporter = new ExtentHtmlReporter(reportPath + reportName + ".html");
     extentHtmlReporter.Configuration().Theme         = Theme.Dark;
     extentHtmlReporter.Configuration().DocumentTitle = documentTitle;
     extentHtmlReporter.Configuration().ReportName    = reportName;
     extentReports.AttachReporter(extentHtmlReporter);
     IsReportConfigured = true;
 }
Example #14
0
        public static void addReport()
        {
            htmlReporter = new ExtentHtmlReporter(getReportPath());
            htmlReporter.Configuration().DocumentTitle = REPORT_TITLE;
            htmlReporter.Configuration().ReportName    = REPORT_NAME;
            htmlReporter.Configuration().Theme         = Theme.Standard;

            extent = new ExtentReports();
            extent.AttachReporter(htmlReporter);
            extent.AddSystemInfo(Variables.sEnvironmentName, Variables.sEnvironmentValue);
        }
        private void setupExtentReport(string reportName, string documentTitle)
        {
            string currentTime = DateTime.Now.ToString("yyyy-dd-M--HH-mm-ss");

            _htmlReporter = new ExtentHtmlReporter(Directory.GetCurrentDirectory() + "\\" + currentTime + "-" + _configurator.getBrowser() + ".html");
            _htmlReporter.Configuration().Theme         = Theme.Dark;
            _htmlReporter.Configuration().DocumentTitle = documentTitle;
            _htmlReporter.Configuration().ReportName    = reportName + " Execution Browser: " + _configurator.getBrowser();
            _report = new ExtentReports();
            _report.AttachReporter(_htmlReporter);
        }
Example #16
0
        static ExtentManager()
        {
            var htmlReporter = new ExtentHtmlReporter(TestContext.CurrentContext.TestDirectory + "\\Extent.html");

            htmlReporter.Configuration().ChartLocation         = ChartLocation.Top;
            htmlReporter.Configuration().ChartVisibilityOnOpen = true;
            htmlReporter.Configuration().DocumentTitle         = "Extent/NUnit Samples";
            htmlReporter.Configuration().ReportName            = "Extent/NUnit Samples";
            htmlReporter.Configuration().Theme = Theme.Standard;

            Instance.AttachReporter(htmlReporter);
        }
 public static void InitializeClass(TestContext testContext)
 {
     htmlReporter = new ExtentHtmlReporter(filePath);
     htmlReporter.Configuration().ChartVisibilityOnOpen = true;
     htmlReporter.Configuration().DocumentTitle         = "Carepoint Test Report";
     htmlReporter.Configuration().ReportName            = "Medical History Tests";
     report = new ExtentReports();
     report.AttachReporter(htmlReporter);
     addPrescriptionTest = report.CreateTest("AddPrescription");
     driver  = new FirefoxDriver();
     baseURL = "https://www.katalon.com/";
 }
        public static void InitializeReport()
        {
            var htmlReporter = new ExtentHtmlReporter(binPath + "\\TestResult.HTML");

            htmlReporter.Configuration().Theme         = AventStack.ExtentReports.Reporter.Configuration.Theme.Dark;
            htmlReporter.Configuration().ChartLocation = AventStack.ExtentReports.Reporter.Configuration.ChartLocation.Top;
            htmlReporter.Configuration().DocumentTitle = "Automation Report";
            extent = new ExtentReports();

            extent.AttachReporter(htmlReporter);
            extent.AddSystemInfo("Author", "G,Balaji");
        }
Example #19
0
        public static void InitializeReport()
        {
            string reportPath = Path.Combine(Directory.GetParent(System.IO.Directory.GetCurrentDirectory()).Parent.Parent.Parent.FullName,
                                             @"ECO3-Testing\ECO3-Testing\Reporting.html");
            var htmlReporter = new ExtentHtmlReporter(reportPath);

            htmlReporter.Configuration().Theme                 = AventStack.ExtentReports.Reporter.Configuration.Theme.Dark;
            htmlReporter.Configuration().ChartLocation         = AventStack.ExtentReports.Reporter.Configuration.ChartLocation.Bottom;
            htmlReporter.Configuration().ChartVisibilityOnOpen = true;
            extent = new ExtentReports();
            extent.AttachReporter(htmlReporter);
        }
Example #20
0
        static ReportManager()
        {
            var htmlReporter = new ExtentHtmlReporter(SetReportPath());

            htmlReporter.Configuration().ChartLocation         = ChartLocation.Top;
            htmlReporter.Configuration().ChartVisibilityOnOpen = true;
            htmlReporter.Configuration().DocumentTitle         = "Extent/NUnit Samples";
            htmlReporter.Configuration().ReportName            = "Extent/NUnit Samples";
            htmlReporter.Configuration().Theme = Theme.Standard;

            Instance.AttachReporter(htmlReporter);
        }
Example #21
0
        private static ExtentHtmlReporter getHtmlReporter()
        {
            htmlReporter = new ExtentHtmlReporter(filePath);
            string path = ConfigurationManager.AppSettings["EtentConfig"];

            htmlReporter.LoadConfig(path);
            // make the charts visible on report open
            htmlReporter.Configuration().ChartVisibilityOnOpen = true;
            htmlReporter.Configuration().DocumentTitle         = "com.amaz - QAV automation report";
            htmlReporter.Configuration().ReportName            = "Regression cycle_1.1";
            return(htmlReporter);
        }
Example #22
0
        public static void OneTimeSetUp()
        {
            string fileName = Assembly.GetExecutingAssembly().Location.ToString() + "../../Report" + DateTime.Now.ToString("HH_ss_MM") + ".html";

            htmlReporter = new ExtentHtmlReporter(fileName);
            htmlReporter.Configuration().Theme         = Theme.Dark;
            htmlReporter.Configuration().DocumentTitle = "InviaTest";
            htmlReporter.Configuration().ReportName    = "InviaTest";

            extent = new ExtentReports();
            extent.AttachReporter(htmlReporter);
        }
        public static ExtentHtmlReporter getHtmlReport()
        {
            String path = getCurrentProjectPath() + "/bin/Release/Reports";

            new CommonMethods().createDirectory(path);
            ExtentHtmlReporter htmlReporter = new ExtentHtmlReporter(path + "/Automation-" + getTimeStamp() + ".html");

            htmlReporter.Configuration().Theme         = Theme.Dark;
            htmlReporter.Configuration().DocumentTitle = "DocWorks Selenium Report";
            htmlReporter.Configuration().ReportName    = "DocWorks Selenium Testing Report";
            return(htmlReporter);
        }
        static ExtentManager()
        {
            //var reportPath = ResourceConstants.ReportPath;
            var htmlReporter = new ExtentHtmlReporter(TestContext.CurrentContext.TestDirectory + ResourceConstants.ReportPath);

            htmlReporter.Configuration().ChartLocation         = ChartLocation.Top;
            htmlReporter.Configuration().ChartVisibilityOnOpen = true;
            htmlReporter.Configuration().DocumentTitle         = "Parallel.Test.Framework";
            htmlReporter.Configuration().ReportName            = "Parallel Tests";
            htmlReporter.Configuration().Theme = Theme.Standard;
            Instance.AttachReporter(htmlReporter);
        }
        /// <summary>
        /// Method automatically used on the start of the test suite to initialize the report
        /// </summary>
        /// <param name="reportName"></param>
        public void InitializeReport(string reportName)
        {
            if (ExtentWrapper == null)
            {
                ExtentWrapper = new ExtentReports();
                bool reportIsKlov = false;
                try
                {
                    reportIsKlov = ConfigurationManager.AppSettings["REPORT_IS_KLOV"].Equals("1");
                    if (reportIsKlov)
                    {
                        var klovReporter = new KlovReporter();

                        // specify mongoDb connection
                        klovReporter.InitMongoDbConnection("localhost", 27017);

                        // specify project ! you must specify a project, other a "Default project will be used"
                        klovReporter.ProjectName = reportName;

                        // you must specify a reportName otherwise a default timestamp will be used
                        klovReporter.ReportName =
                            ConfigurationManager.AppSettings["REPORT_DOCUMENT_TITLE"] + " - " +
                            ConfigurationManager.AppSettings["REPORT_NAME"];

                        // URL of the KLOV server
                        klovReporter.KlovUrl = "http://localhost";

                        ExtentWrapper.AttachReporter(klovReporter);
                    }
                    else
                    {
                        string reportPath = ConfigurationManager.AppSettings["REPORT_FILE_PATH"];

                        System.IO.Directory.CreateDirectory(reportPath);

                        string reportFullPath = String.Format(reportPath + @"{0}.html", reportName + " - Automated Tests - Execution Date Time " + DateTime.Now.ToString("dd-MM-yyyyTHH-mm-ss"));

                        Html = new ExtentHtmlReporter(reportFullPath);
                        Html.Configuration().FilePath              = reportFullPath;
                        Html.Configuration().DocumentTitle         = ConfigurationManager.AppSettings["REPORT_DOCUMENT_TITLE"];
                        Html.Configuration().ReportName            = ConfigurationManager.AppSettings["REPORT_NAME"];
                        Html.Configuration().ChartVisibilityOnOpen = true;
                        Html.Configuration().ChartLocation         = ChartLocation.Top;

                        ExtentWrapper.AttachReporter(Html);
                    }
                }
                catch (ConfigurationErrorsException)
                {
                }
            }
        }
Example #26
0
        private static ExtentHtmlReporter GetHtmlReporter()
        {
            var path = Path.Combine(_filePath, _reportName);

            _htmlReporter = new ExtentHtmlReporter(path);

            // make the charts visible on report open
            _htmlReporter.Configuration().ChartVisibilityOnOpen = true;
            _htmlReporter.Configuration().DocumentTitle         = "Regression report";
            _htmlReporter.Configuration().ReportName            = "Regression cycle";

            return(_htmlReporter);
        }
Example #27
0
 private static ExtentReports getInstance()
 {
     htmlReporter = new ExtentHtmlReporter(@"G:\htmlFile.html");
     htmlReporter.LoadConfig(@"C:\Users\ABC\source\repos\SeleniumNUnitTest\NUnit.Tests1\Extent\extent-config.xml");
     htmlReporter.Configuration().Theme         = Theme.Dark;
     htmlReporter.Configuration().DocumentTitle = "ArrowReport";
     htmlReporter.Configuration().ReportName    = "ArrowReport";
     extentReports = new ExtentReports();
     extentReports.AttachReporter(htmlReporter);
     extentReports.AddSystemInfo("OS_NAME", "Windows 10");
     extentReports.AddSystemInfo("HostMachine", "Local Machine");
     return(extentReports);
 }
Example #28
0
 public ExtentReportsHelper()
 {
     extent   = new ExtentReports();
     reporter = new ExtentHtmlReporter("../../TestReports/extent.html");
     reporter.Configuration().DocumentTitle = "Automation Testing Report";
     reporter.Configuration().ReportName    = "Regression Testing";
     reporter.Configuration().Theme         = AventStack.ExtentReports.Reporter.Configuration.Theme.Standard;
     extent.AttachReporter(reporter);
     extent.AddSystemInfo("Application Under Test", "nop Commerce Demo");
     extent.AddSystemInfo("Environment", "QA");
     extent.AddSystemInfo("Machine", Environment.MachineName);
     extent.AddSystemInfo("OS", Environment.OSVersion.VersionString);
 }
Example #29
0
        public void setupExtentReport(string reportName, string documentTitle)
        {
            string currentTime = DateTime.Now.ToString("yyyy-dd-M--HH-mm-ss");
            string solPath     = _commonFunctions.getSolutionPath();


            htmlReporter = new ExtentHtmlReporter(_commonFunctions.getSolutionPath() + "\\Reports" + "\\" + reportName + "_" + currentTime + "-" + ".html");
            htmlReporter.Configuration().Theme         = Theme.Dark;
            htmlReporter.Configuration().DocumentTitle = documentTitle;
            htmlReporter.Configuration().ReportName    = reportName + " Execution App: Android App ";// + configurator.getBrowser();
            extent = new ExtentReports();
            extent.AttachReporter(htmlReporter);
            extRptDrv = extent;
        }
 public static void SetExtentReport()
 {
     if (extent == null)
     {
         htmlReporter = new ExtentHtmlReporter(dir + "\\" + _reportName + "_CPQ_Report.html");
         htmlReporter.Configuration().DocumentTitle = "CPQ Tests";
         htmlReporter.Configuration().ReportName    = "CPQ Tests";
         extent = new ExtentReports();
         extent.AttachReporter(htmlReporter);
         extent.AddSystemInfo("OS", "Windows");
         extent.AddSystemInfo("Browser", Settings.Browser);
         extent.AddSystemInfo("Environment", Settings.Environment);
     }
 }