public void WrongRepresentativeUserLoginTest() { LoginPage loginPage = new LoginPage(); ServicRequestPage servicRequestPage = new ServicRequestPage(); loginPage.GoToSite(); loginPage.LoginAs("K0001_2").WithPassword("test").Login(); Assert.IsFalse(servicRequestPage.IsAt); loginPage.LoginAs("*****@*****.**").WithPassword("test").Login(); Assert.IsFalse(servicRequestPage.IsAt); }
public void SuccessfullRepresentativeUserLoginTest() { LoginPage loginPage = new LoginPage(); ServicRequestPage servicRequestPage = new ServicRequestPage(); loginPage.GoToSite(); loginPage.LoginAs("K0001_2").WithPassword("7WwNYocKez").Login(); Assert.IsTrue(servicRequestPage.IsAt, "Failed to login."); if (servicRequestPage.IsAt) { loginPage.Logout(); } }
public static void Login() { LoginPage loginPage = new LoginPage(); loginPage.GoToSite(); loginPage.LoginAs("K0001_2").WithPassword("7WwNYocKez").Login(); }