コード例 #1
0
        public void ShouldNotBeAbleToLoginWhenCredentialsAreBlank()
        {
            var login    = new SauceDemo_LoginPage(driver);
            var variable = new Variables();

            login.ClickLoginButton();
            Assert.AreEqual(variable.usernameRequiredErrorMessage, login.GetLoginErrorMessage());
        }
コード例 #2
0
        public void ShouldNotBeAbleToLoginWhenUsernameIsBlank()
        {
            var login    = new SauceDemo_LoginPage(driver);
            var variable = new Variables();

            login.EnterPassword(variable.validPassword);
            login.ClickLoginButton();
            Assert.AreEqual(variable.usernameRequiredErrorMessage, login.GetLoginErrorMessage());
        }