Exemplo n.º 1
0
 def test_10_user_login_ExperienceAccount(self):
     """体验账号登录"""
     logging.info('==体验账号登录==')
     login = LoginView(self.driver)
     login.login_experience_account_action()
     sleep(2)
     self.assertTrue(login.check_login_success_status())
Exemplo n.º 2
0
 def test_09_user_login_VerificationCode(self):
     """验证码登录"""
     logging.info('==验证码登录==')
     login = LoginView(self.driver)
     data = login.get_csv_data('../data/test_data/login_data.csv', 9)
     login.login_code_action(data[0], data[1])
     sleep(2)
     self.assertTrue(login.check_login_success_status())
Exemplo n.º 3
0
 def test_01_user_login(self):
     """正常登录用例"""
     logging.info('==正常账号成功登录用例==')
     login = LoginView(self.driver)
     data = login.get_csv_data('../data/test_data/login_data.csv', 1)
     login.login_action(data[0], data[2])
     sleep(2)
     self.assertTrue(login.check_login_success_status())