def test_06_findpwd_codeError(self):
     """验证码错误找回密码"""
     logging.info(r'==验证码错误找回密码用例==')
     find = FindPwdView(self.driver)
     data = find.get_csv_data('../data/pwd.csv', 5)
     find.findpwd_action(data[0], data[1])
     self.assertTrue(find.check_find_pwd_fail_status())
 def test_04_findpwd_phoneNumUnregistered(self):
     """未注册手机号找回密码"""
     logging.info(r'==未注册手机号找回密码用例==')
     find = FindPwdView(self.driver)
     data = find.get_csv_data('../data/pwd.csv', 3)
     find.findpwd_action(data[0], data[1])
     self.assertTrue(find.check_find_pwd_fail_status())
 def test_03_findpwd_phoneNumError(self):
     """找回密码手机号格式错误"""
     logging.info(r'==找回密码手机号格式错误用例==')
     find = FindPwdView(self.driver)
     data = find.get_csv_data('../data/pwd.csv', 2)
     find.findpwd_action(data[0], data[1])
     self.assertTrue(find.check_find_pwd_fail_status())
예제 #4
0
 def test_21_findpwd_codeEmpty(self):
     """验证码为空找回密码"""
     logging.info(r'==验证码为空找回密码用例==')
     find = FindPwdView(self.driver)
     data = find.get_csv_data('../data/test_data/pwd.csv', 4)
     find.findpwd_action(data[0], data[1])
     sleep(2)
     self.assertTrue(find.check_find_pwd_fail_status())
예제 #5
0
 def test_18_findpwd_phoneNumEmpty(self):
     """找回密码手机号为空"""
     logging.info(r'==找回密码手机号为空用例==')
     find = FindPwdView(self.driver)
     data = find.get_csv_data('../data/test_data/pwd.csv', 1)
     find.findpwd_action(data[0], data[1])
     sleep(2)
     self.assertTrue(find.check_find_pwd_fail_status())