Пример #1
0
        virtual public void BeforeEachTest()
        {
            app = AppInitializer.StartApp(platform);
            app.Screenshot("App Initialized");

            FirstPage         = new FirstPage(app, platform);
            ListPage          = new ListPage(app, platform);
            LoginPage         = new LoginPage(app, platform);
            NewUserSignUpPage = new NewUserSignUpPage(app, platform);

            LoginPage.WaitForLoginScreen();
        }
Пример #2
0
        public void VerifyItemsInListView()
        {
            //Arrange
            var listItemNumber      = 9;
            var expectedAlertString = $"You Selected Number {listItemNumber}";

            //Act
            BackdoorHelpers.OpenListViewPage(App);
            ListPage.WaitForNoActivityIndicator();

            //Assert
            Assert.IsTrue(BackdoorHelpers.GetListPageData(App).Count > 30);
        }
        public void SelectItemOnListView()
        {
            //Arrange
            var listItemNumber      = 9;
            var expectedAlertString = $"You Selected Number {listItemNumber}";

            //Act
            BackdoorHelpers.OpenListViewPage(app);

            ListPage.WaitForNoActivityIndicator();
            ListPage.TapListItemNumber(listItemNumber);

            //Assert
            Assert.AreEqual(expectedAlertString, ListPage.GetAlertText(listItemNumber));
            Assert.IsTrue(BackdoorHelpers.GetListPageData(app).Count > 30);
        }
Пример #4
0
        public void VerifyItemsInListView()
        {
            //Arrange
            const int listItemNumber      = 9;
            var       expectedAlertString = $"You Selected Number {listItemNumber}";

            //Act
            BackdoorHelpers.OpenListViewPage(App);

            ListPage.WaitForPageToLoad();
            ListPage.WaitForNoActivityIndicator();

            ListPage.TapListItemNumber(listItemNumber);
            var actualAlertString = ListPage.GetAlertText(listItemNumber);

            ListPage.TapOKOnAlert();

            //Assert
            Assert.AreEqual(expectedAlertString, actualAlertString);
            Assert.IsTrue(BackdoorHelpers.GetListPageData(App)?.Count >= 30, "Less than 30 items found in List");
        }
Пример #5
0
        public void VerifyItemsInListView()
        {
            //Arrange
            const int listItemNumber      = 9;
            var       expectedAlertString = $"You Selected Number {listItemNumber}";

            //Act
            App.InvokeBackdoorMethod(BackdoorMethodConstants.OpenListViewPage);

            ListPage.WaitForPageToLoad();
            ListPage.WaitForNoActivityIndicator();

            ListPage.TapListItemNumber(listItemNumber);
            var actualAlertString = ListPage.GetAlertText(listItemNumber);

            ListPage.TapOKOnAlert();

            //Assert
            Assert.AreEqual(expectedAlertString, actualAlertString);
            Assert.GreaterOrEqual(App.InvokeBackdoorMethod <IReadOnlyList <ListPageDataModel> >(BackdoorMethodConstants.GetListViewPageData).Count, 10, "Less than 10 items found in List");
        }