Exemplo n.º 1
0
 def test_bei_diao_7(self):
     '''姓名输入正确,去输入身份证'''
     faqipage = FaQiBeiDiaoPage(self.driver, self.url, u'登录-知了背调')
     faqipage.user_password_success_login('17717564981', '1234qwer')
     faqipage.input_name('靳生顺')
     faqipage.click_input_id_number()
     self.assertEqual(faqipage.get_input_error_text(), '姓名格式正确')
Exemplo n.º 2
0
 def test_bei_diao_4(self):
     '''先输手机号,不输入点击输入身份证号'''
     faqipage = FaQiBeiDiaoPage(self.driver, self.url, u'登录-知了背调')
     faqipage.user_password_success_login('17717564981', '1234qwer')
     faqipage.click_input_phone_number()
     faqipage.click_input_id_number()
     self.assertEqual(faqipage.get_input_error_text(), '手机号不能为空')
Exemplo n.º 3
0
 def test_bei_diao_8(self):
     '''姓名输入正确,身份证号输入正确,去输入手机号'''
     faqipage = FaQiBeiDiaoPage(self.driver, self.url, u'登录-知了背调')
     faqipage.user_password_success_login('17717564981', '1234qwer')
     faqipage.input_name('靳生顺')
     faqipage.input_id_number('632124199210262815')
     faqipage.click_input_phone_number()
     self.assertEqual(faqipage.get_input_error_text(), '身份证格式正确')
Exemplo n.º 4
0
 def test_bei_diao_6(self):
     '''姓名输入正确,输入错误身份证,然后去输手机号'''
     faqipage = FaQiBeiDiaoPage(self.driver, self.url, u'登录-知了背调')
     faqipage.user_password_success_login('17717564981', '1234qwer')
     faqipage.input_name('靳生顺')
     faqipage.input_phone_number('iii')
     faqipage.click_input_phone_number()
     self.assertEqual(faqipage.get_input_error_text(), '身份证号输入有误')
Exemplo n.º 5
0
 def test_bei_diao_9(self):
     '''姓名输入正确,省份证号码输入正确,手机号格式错误'''
     faqipage = FaQiBeiDiaoPage(self.driver, self.url, u'登录-知了背调')
     faqipage.user_password_success_login('17717564981', '1234qwer')
     faqipage.input_name('靳生顺')
     faqipage.input_id_number('632124199210262815')
     faqipage.input_phone_number('1771756498')
     faqipage.input_department('')
     self.assertEqual(faqipage.get_input_error_text(), '手机号输入有误')
Exemplo n.º 6
0
 def test_bei_diao_10(self):
     '''三要素不输入,点击发起背调'''
     faqipage = FaQiBeiDiaoPage(self.driver, self.url, u'登录-知了背调')
     faqipage.user_password_success_login('17717564981', '1234qwer')
     faqipage.click_start_button()
     self.assertEqual(faqipage.get_input_error_text(), '三要素输入有误')