示例#1
0
 def test_sign_in_with_valid_user(self):
     print ("\n" + str(test_cases(4)))
     mainPage = MainPage(self.driver)
     loginPage = mainPage.click_sign_in_button()
     result = loginPage.login_with_valid_user("valid_user")
     self.assertIn("yourstore/home", result.get_url())
示例#2
0
 def test_sign_in_with_in_valid_user(self):
     print ("\n" + str(test_cases(5)))
     mainPage = MainPage(self.driver)
     loginPage = mainPage.click_sign_in_button()
     result = loginPage.login_with_in_valid_user("invalid_user")
     self.assertIn("There was a problem with your request", result)
示例#3
0
 def test_sign_in_button(self):
     print ("\n" + str(test_cases(3)))
     page = MainPage(self.driver)
     loginPage = page.click_sign_in_button()
     self.assertIn("ap/signin", loginPage.get_url())