public void AddEmployee(string name, string email, string address, string phone) { Test.Log(Status.Info, "AddEmployee"); eyes.CheckWindow("Add Employee Page"); employeePage.AddEmployee(name, email, address, phone); Assert.IsTrue(employeePage.IsSuccessAlertPresent()); }
public void TestAddEmployee(String name) { Logger.Instance.Info("testAddEmployee Thread-id: " + Thread.CurrentThread.ManagedThreadId); LoginPage loginPage = new LoginPage(WebDriver); EmployeePage employeePage = loginPage.LoginAs("admin", "admin123"); employeePage.AddEmployee(name, "*****@*****.**", "MTZ", "522255", "Montevideo", "Uruguay", "11523"); Assert.IsTrue(employeePage.IsSuccessAlertVisible()); }
public void AddEmployee() { employeePage.AddEmployee("Juan", "*****@*****.**", "MTV", "598752022"); Assert.IsTrue(employeePage.IsSuccessAlertPresent()); }