示例#1
0
        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);
        }
示例#2
0
        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();
            }
        }
示例#3
0
 public static void Login()
 {
     LoginPage loginPage = new LoginPage();
     loginPage.GoToSite();
     loginPage.LoginAs("K0001_2").WithPassword("7WwNYocKez").Login();
 }