Exemplo n.º 1
0
        virtual public void BeforeEachTest()
        {
            app = AppInitializer.StartApp(platform);
            app.Screenshot("App Initialized");

            FirstPage         = new FirstPage(app, platform);
            ListViewPage      = new ListViewPage(app, platform);
            LoginPage         = new LoginPage(app, platform);
            NewUserSignUpPage = new NewUserSignUpPage(app, platform);
        }
Exemplo n.º 2
0
        public void CreateNewUserAndUnsuccessfullyLogin()
        {
            //Arrange
            var username          = "******";
            var password          = "******";
            var incorrectPassword = "******";

            //Act
            LoginPage.PressSignUpButton();
            NewUserSignUpPage.CreateNewUserWithPassword(username, password);
            LoginPage.LoginWithUsernamePassword(username, incorrectPassword);
            LoginPage.TapTryAgainDialog();

            //Assert
            Assert.IsTrue(app.Query("Login").Length > 0);
        }
Exemplo n.º 3
0
        public void CreateNewUserAndLogin()
        {
            //Arrange
            var username = _username;
            var password = "******";
            var expectedFirstPageTitle = "First Page";

            //Act
            LoginPage.PressSignUpButton();
            NewUserSignUpPage.CreateNewUserWithPassword(username, password);
            LoginPage.LoginWithUsernamePassword(username, password);

            //Assert
            var actualFirstPageTitle = FirstPage.GetTitle();

            Assert.AreEqual(expectedFirstPageTitle, actualFirstPageTitle);
        }