Example #1
0
        protected void StartReport()
        {
            _config = TestsConfiguration.Instance;
            ExtentReports extentReports = ReportingManager.Instance;

            _reportingTasks = new ReportingTasks(extentReports);
        }
Example #2
0
        /// <summary>
        /// Begin execution of tests
        /// </summary>
        public static void BeginExecution()
        {
            ExtentReports extentReports = ReportingManager.Instance;

            extentReports.LoadConfig(Directory.GetParent(TestContext.CurrentContext.TestDirectory).Parent.FullName + "\\extent-config.xml");

            _reportingTasks = new ReportingTasks(extentReports);
        }
Example #3
0
        public static void BeginReporting()
        {
            ExtentReports extentReports = ReportingManager.Instance;

            //extentReports.LoadConfig(Directory.GetParent(NUnit.Framework.TestContext.CurrentContext.TestDirectory).Parent.FullName + "\\extent-config.xml");
            extentReports.LoadConfig("C:/Users/jaket/source/repos/AardVark/Aardvark.Reporting/extent-config.xml");
            //Note we have hardcoded the browser, we will deal with this later
            //extentReports.AddSystemInfo("Browser", "Chrome");

            _reportingTasks = new ReportingTasks(extentReports);
        }
Example #4
0
        public void beginReporting()
        {
            Console.WriteLine("One Time Set Up");
            DriverProvider.Init();
            BasePage.thread.Value = DriverProvider.getDriver;

            ExtentReports extentReports = ReportingTasks.Instance;

            extentReports.LoadConfig(Directory.GetParent(TestContext.CurrentContext.TestDirectory).Parent.FullName + "\\extent-config.xml");
            reporter = new ReportingTasks();
        }
Example #5
0
        public void Initialize()
        {
            ExtentReports extentReports = ReportingManager.Instance;

            extentReports.LoadConfig(Directory.GetParent(TestContext.CurrentContext.TestDirectory).Parent.FullName + "\\extent-config.xml");
            //Note we have hardcoded the browser, we will deal with this later
            extentReports.AddSystemInfo("Browser", "Firefox");

            _reportingTasks = new ReportingTasks(extentReports);

            _reportingTasks.InitializeTest();
        }
        public static void BeginExecution()
        {
            ExtentReports extentReports = ReportingManager.Instance;

            extentReports.LoadConfig(Directory.GetParent(TestContext.CurrentContext.TestDirectory).Parent.FullName + "\\extent-config.xml");
            extentReports.AddSystemInfo("Browser", "Chrome");

            reportingTasks = new ReportingTasks(extentReports);

            webDriver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(20);
            webDriver.Manage().Timeouts().PageLoad     = TimeSpan.FromSeconds(20);
            webDriver.Manage().Window.Maximize();
        }
        /// <summary>
        /// Begin execution of tests
        /// </summary>
        public static void BeginExecution()
        {
            ExtentReports extentReports = ReportingManager.Instance;

            extentReports.LoadConfig(Directory.GetParent(TestContext.CurrentContext.TestDirectory).Parent.FullName + "\\extent-config.xml");
            //Note we have hardcoded the browser, we will deal with this later
            extentReports.AddSystemInfo("Browser", "Chrome");

            _reportingTasks = new ReportingTasks(extentReports);


            driver = new ChromeDriver(@"C:\library");
            driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(20);
            driver.Manage().Timeouts().PageLoad     = TimeSpan.FromSeconds(20);
            driver.Manage().Window.Maximize();
        }