public void BeforeEachTest()
        {
            app = AppInitializer.StartApp(platform);
            app.Screenshot("App Initialized");

            FirstPage    = new FirstPage(app, platform);
            ListViewPage = new ListViewPage(app, platform);
        }
		public void BeforeEachTest ()
		{
			app = AppInitializer.StartApp (platform);
			app.Screenshot("App Initialized");

			FirstPage = new FirstPage(app, platform);
			ListViewPage = new ListViewPage(app, platform);
		}
예제 #3
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);
        }
예제 #4
0
        public void SelectItemOnListViewByID()
        {
            var listItemNumber      = 9;
            var expectedAlertString = $"You Selected Number {listItemNumber}";

            FirstPage.ClickListViewButtonByID();
            ListViewPage.TapListItemNumber(listItemNumber);

            Assert.AreEqual(expectedAlertString, ListViewPage.GetAlertText(listItemNumber));
        }
        public void SelectItemOnListView()
        {
            //Arrange
            var listItemNumber      = 9;
            var expectedAlertString = $"You Selected Number {listItemNumber}";

            //Act
            BackdoorMethodHelpers.OpenListViewPage(app);

            ListViewPage.TapListItemNumber(listItemNumber);

            //Assert
            Assert.AreEqual(expectedAlertString, ListViewPage.GetAlertText(listItemNumber));
        }
예제 #6
0
        public void SelectItemOnListView()
        {
            //Arrange
            var listItemNumber      = 9;
            var expectedAlertString = $"You Selected Number {listItemNumber}";

            //Act
            if (app is iOSApp)
            {
                app.Invoke("openListViewPage:", "");
            }
            else
            {
                app.Invoke("OpenListViewPage");
            }

            app.Screenshot("Backdoor to List View Page");

            ListViewPage.TapListItemNumber(listItemNumber);

            //Assert
            Assert.AreEqual(expectedAlertString, ListViewPage.GetAlertText(listItemNumber));
        }