public void SetUp() { string browserType = ConfigurationManager.AppSettings["browserType"]; cmnDriver = new CommonDriver(browserType); cmnDriver.PageLoadTimeout = Int32.Parse(ConfigurationManager.AppSettings["pageLoadTimeout"]); cmnDriver.ElementDetectionTimeout = Int32.Parse(ConfigurationManager.AppSettings["elementDetectionTimeout"]); screenshotControl = new ScreenshotControl(cmnDriver.Driver); extentReport.AddTestLog(Status.Info, "Initializing all web pages"); amazonHomePage = new AmazonHomePage(cmnDriver.Driver); }
public void SetUp() { extentReport.CreateATestCase("Setup"); string browserType = _configuration["browserType"]; extentReport.AddTestLog(Status.Info, "Browsertype - " + browserType); cmnDriver = new CommonDriver(browserType); string baseUrl = _configuration["baseUrl"];; cmnDriver.navigateToFirstUrl(baseUrl); driver = cmnDriver.Driver; loginPage = new Guru99LoginPage(driver); screenshotUtils = new ScreenshotUtils(driver); }
public void PreSetup() { executionStartTime = DateTimeUtils.GetCurrentDateAndTime(); currentWorkingDirectory = ConfigurationManager.AppSettings["currentWorkingDirectory"]; extentReport = new ExtentReport($"{currentWorkingDirectory}/Reports/AmazonTestReport-{executionStartTime}.html"); extentReport.CreateATestCase("Setup - Setting up the pre-requisites for the test cases"); extentReport.AddTestLog(Status.Info, "Initializing chrome browser"); }