コード例 #1
0
        //  [Test]
        public void CancelSignUpTest()
        {
            //app.Repl();
            string username = Utills.ReadTestData("validCredentials", "userName");
            string password = Utills.ReadTestData("validCredentials", "password");
            //  ReportUtill.extentTest.Log(Status.Info, "Given I Launch the App");
            LoginScreen loginScreen = new LoginScreen(app, platform);
            // ReportUtill.extentTest.Log(Status.Info, "When I tap on sign up button");
            SignUpScreen signUpScreen = loginScreen.TapSignUpButton();

            // ReportUtill.extentTest.Log(Status.Info, "When I enter a new username");
            signUpScreen.EnterNewUsername(username);
            // ReportUtill.extentTest.Log(Status.Info, "And I enter a new password");
            signUpScreen.EnterNewPassword(password);
            // ReportUtill.extentTest.Log(Status.Info, "When I tap on cancel button");
            signUpScreen.TapCancelButton();
            // ReportUtill.extentTest.Log(Status.Info, "Then I confirm sign up is cancelled");
            Assert.IsTrue(loginScreen.QueryLoginButton().Any(), "Signup cancel unsuccessful.");
        }