Пример #1
0
 def test_login_username_and_pass_missing(self):
     lp = LoginPage(self.driver)
     lp.login_as("", "")
     self.assertTrue(
         lp.check_if_label_exists(*LoginPageLocator.LBLVALIDMAIL))
     self.assertTrue(
         lp.check_if_label_exists(*LoginPageLocator.LBLVALIDPASS))
Пример #2
0
 def test_login_sql(self):
     lp = LoginPage(self.driver)
     lp.login_as("test' or true--", "'test or true--")
     self.assertTrue(
         lp.check_if_label_exists(*LoginPageLocator.LBLINCORRECT))
Пример #3
0
 def test_login_user_true_pass_true(self):
     lp = LoginPage(self.driver)
     lp.login_as("True", "True")
     self.assertTrue(
         lp.check_if_label_exists(*LoginPageLocator.LBLACCOUNTNOTACTIVATED)
         or lp.check_if_label_exists(*LoginPageLocator.LBLINCORRECT))
Пример #4
0
 def test_login_invalid_user_valid_pass(self):
     lp = LoginPage(self.driver)
     lp.login_as("dummyusertest", "TestAutomationTask")
     self.assertTrue(
         lp.check_if_label_exists(*LoginPageLocator.LBLINCORRECT))
Пример #5
0
 def test_login_valid_user_invalid_pass(self):
     lp = LoginPage(self.driver)
     lp.login_as("*****@*****.**", "23456789")
     self.assertTrue(
         lp.check_if_label_exists(*LoginPageLocator.LBLINCORRECT))
Пример #6
0
 def test_login_password_missing(self):
     lp = LoginPage(self.driver)
     lp.login_as("*****@*****.**", "")
     self.assertTrue(
         lp.check_if_label_exists(*LoginPageLocator.LBLVALIDPASS))
Пример #7
0
 def test_login_password_caps(self):
     lp = LoginPage(self.driver)
     lp.login_as("*****@*****.**", "TestAutomationTask".upper())
     self.assertTrue(
         lp.check_if_label_exists(*LoginPageLocator.LBLINCORRECT))