Example #1
0
 def test_denglu_yanzheng10(self):
     login.login_input(self.driver)
     time.sleep(5)
     try:
         self.assertTrue(login.login_check_success(self.driver))
         time.sleep(1)
     except:
         logbug.debug("est_denglu_yanzheng10未通过")
Example #2
0
 def test_denglu_yanzheng7(self):
     login.login_input(self.driver, user='******', pwd='zdh01', code='a1a')
     time.sleep(1)
     try:
         self.assertTrue(
             login.login_check_errormsg(self.driver, hint='验证码为4位数字和字母!'))
         time.sleep(1)
     except Exception:
         logbug.debug("test_denglu_yanzheng7未通过")
Example #3
0
 def test_denglu_yanzheng2(self):
     login.login_input(self.driver, user='******', pwd='', code='1234')
     time.sleep(1)
     try:
         self.assertTrue(
             login.login_check_errormsg(self.driver, hint='密码不能为空!'))
         time.sleep(1)
     except Exception:
         logbug.debug("test_denglu_yanzheng2未通过")
Example #4
0
 def test_denglu_yanzheng9(self):
     login.login_input(self.driver, user='******', pwd='zdh01', code='壁虎')
     time.sleep(1)
     try:
         self.assertTrue(
             login.login_check_errormsg(self.driver, hint='验证码只能为字母和数字!'))
         time.sleep(1)
     except:
         logbug.debug("est_denglu_yanzheng9未通过")
Example #5
0
 def test_denglu_yanzheng5(self):
     login.login_input(self.driver, user='******', pwd='', code='')
     time.sleep(1)
     try:
         self.assertTrue(
             login.login_check_errormsg(self.driver,
                                        hint='用户名只能为字母、数字和下划线!'))
         time.sleep(1)
     except Exception:
         logbug.debug("test_denglu_yanzheng5未通过")
 def test_customer_list_tab(self):
     login.login_input(self.driver)
     time.sleep(5)
     menu1 = menu()
     menu1.Select_Menu_case(self.driver, '客户列表')
     time.sleep(5)
     customerlist.customer_list_tab_select(self.driver, '全部客户')
     time.sleep(2)
     customerlist.search_1_0_chepai_gotofirst_detail(self.driver, '京J97896')
     time.sleep(2)
     customerlist.kehuxiangqing_guanxirenxinxi_chezhuxinxi_tongtoubaoren(
         self.driver, '同投保人')
     time.sleep(2)
     # customerlist.kehuxiangqing_baojiaxinxi_xiuliqijianfeiyongbuchang(self.driver,1,100,2)
     time.sleep(2)