Пример #1
0
        //  [Test]
        public void InValidLoginTest()
        {
            // app.Repl();
            string username = Utills.ReadTestData("inValidCredentials", "userName");
            string password = Utills.ReadTestData("inValidCredentials", "password");

            // ReportUtill.extentTest.Log(Status.Info, "Given I Launch the App");
            LoginScreen loginScreen = new LoginScreen(app, platform);

            // ReportUtill.extentTest.Log(Status.Info, "When I enter username");
            loginScreen.EnterUsername(username);
            // ReportUtill.extentTest.Log(Status.Info, "And I enter password");
            loginScreen.EnterPassword(password);
            //  ReportUtill.extentTest.Log(Status.Info, "When I tap on login button");
            loginScreen.TapLoginButton();
            loginScreen.WaitForLoginError();
            //  ReportUtill.extentTest.Log(Status.Info, "Then I confirm login error message is displayed");
            Assert.IsTrue(loginScreen.VerifyErrorText(Copy.LOGIN_ERROR_TITLE).Any());
            Assert.IsTrue(loginScreen.VerifyErrorText(Copy.LOGIN_ERROR_MESSAGE).Any());
            loginScreen.TapTryAgainButton();
        }