public void SetupTest() { frb = new FluentRecordBase(); driver = new ChromeDriver(ConfigurationManager.AppSettings["CHROMEDRIVERPATH"]); baseURL = "http://localhost:4213/"; ui = new sharedUI(driver, baseURL); verificationErrors = new StringBuilder(); ui.login(); }
public static void ClassInitialize(TestContext testContext) { // getting Project path for dummy image string solutionDirectory = sharedUI.SolutionDirectory(); //testdir = solutionDirectory + "\\Machete.test\\"; testimagefile = solutionDirectory + "\\jimmy_machete.jpg"; driver = new ChromeDriver(ConfigurationManager.AppSettings["CHROMEDRIVERPATH"]); baseURL = "http://localhost:4213/"; ui = new sharedUI(driver, baseURL); DB = new MacheteContext(); wsiSet = DB.Set<WorkerSignin>(); wSet = DB.Set<Worker>(); pSet = DB.Set<Person>(); }