Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 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>();
 }