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); }
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); }
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); }