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"); }
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); }