コード例 #1
0
ファイル: login_test.py プロジェクト: prashanth-sams/storms
    def test_login_negative(self):
        App.is_displayed(self, NewsScreen.accountTab)
        App.is_displayed(self, NewsScreen.hamburgerMenu)
        App.assert_text(self, NewsScreen.newsHeader, 'News')

        App.click(self, NewsScreen.hamburgerMenu)
        App.assert_text(self, NewsScreen.menuHeader, 'Menu')

        # login as real user
        LoginScreen.login_user(self, 'invalid password')
        App.assert_text(self, LoginScreen.invalidMsg, 'Incorrect username or password.')
コード例 #2
0
ファイル: login_test.py プロジェクト: prashanth-sams/storms
    def test_login_positive(self):
        App.is_displayed(self, NewsScreen.accountTab)
        App.is_displayed(self, NewsScreen.hamburgerMenu)
        App.assert_text(self, NewsScreen.newsHeader, 'News')

        App.click(self, NewsScreen.hamburgerMenu)
        App.assert_text(self, NewsScreen.menuHeader, 'Menu')

        # login as real user
        LoginScreen.login_user(self, 'valid password')
        App.assert_text(self, NewsScreen.newsHeader, 'News')

        App.click(self, NewsScreen.accountTab)
        App.is_displayed(self, DashboardScreen.profileImage)
        App.assert_text(self, DashboardScreen.profileName, 'hack')
        App.assert_text(self, DashboardScreen.dashboardHeader, 'My Dashboard')
コード例 #3
0
 def test_home_2(self):
     App.is_displayed(self, HomeScreen.homeMenu, True)
     App.is_displayed(self, HomeScreen.loginMenu, True)
コード例 #4
0
 def test_home_1(self):
     App.is_displayed(self, HomeScreen.homeMenu, True)
     App.is_displayed(self, HomeScreen.loginMenu, True)
     App.is_displayed(self, HomeScreen.formsMenu, True)
     App.is_displayed(self, HomeScreen.swipeMenu, True)