コード例 #1
0
 def test_login(self, login_email_text, login_pass_text, expect_value):
     login_page_url = config.login_page_url
     login_page = LoginPage(self.driver, login_page_url)
     login_page.input_login_email(login_email_text)
     login_page.input_login_pass(login_pass_text)
     login_page.click_login_btn()
     page_title = self.driver.title
     assert page_title == expect_value
コード例 #2
0
ファイル: test_move_to.py プロジェクト: ZZHH7890/TestPython
 def test_login(self, login_email_text, login_pass_text, expect_value):
     login_page_url = config.login_page_url
     login_page = LoginPage(self.driver, login_page_url)
     login_page.input_login_email(login_email_text)
     login_page.input_login_pass(login_pass_text)
     login_page.move_to_qq_btn()
     time.sleep(10)
     page_title = self.driver.title
     assert page_title == expect_value 
コード例 #3
0
 def test_login(self, login_email_text, login_pass_text, expect_value):
     base_url = "https://user.17track.net/zh-cn"
     login_page = LoginPage(self.driver, base_url)
     self.driver.implicitly_wait(10)
     login_page.input_login_email(login_email_text)
     login_page.input_login_pass(login_pass_text)
     login_page.login()
     self.driver.implicitly_wait(30)
     page_title = self.driver.title
     assert page_title == expect_value
コード例 #4
0
 def test_login(self, login_email_text, login_pass_text, expect_value):
     login_page_url = config.login_page_url
     logger.info("输入网址")
     login_page = LoginPage(self.driver, login_page_url)
     login_page.input_login_email(login_email_text)
     login_page.input_login_pass(login_pass_text)
     seller_center_page = login_page.go_to_seller_center_page()
     logistics_track_page = seller_center_page.go_to_seller_logistics_track_page(
     )
     page_title = logistics_track_page.get_current_page_title()
     assert page_title == expect_value
コード例 #5
0
ファイル: TestLoginPage.py プロジェクト: ZZHH7890/TestPython
 def test_login(self):
     base_url = "https://user.17track.net/zh-cn"
     login_email_text = "*****@*****.**"
     login_pass_text = "111111"
     login_page = LoginPage(self.driver, base_url)
     self.driver.implicitly_wait(10)
     login_page.input_login_email(login_email_text)
     login_page.input_login_pass(login_pass_text)
     login_page.login()
     self.driver.implicitly_wait(30)
     print(self.driver.title)
     self.assertEqual(1, 2)
コード例 #6
0
 def test_login(self, login_email_text, login_pass_text, expect_value):
     login_page_url = config.login_page_url
     login_page = LoginPage(self.driver, login_page_url)
     login_page.input_login_email(login_email_text)
     login_page.input_login_pass(login_pass_text)
     seller_center_page = login_page.go_to_seller_center_page()
     seller_center_page.take_logistics_track_tab_screen_shot()
     logger.info(seller_center_page.get_seller_center_page_title())
     time.sleep(5)
     logistics_track_page = seller_center_page.go_to_seller_logistics_track_page(
     )
     page_title = logistics_track_page.get_logistics_track_page_title()
     time.sleep(2)
     logger.info(page_title)
     assert page_title == expect_value