Exemple #1
0
 def test_010(self):  # 进入充话费是否正常
     qmf = mypage.Qinmifu(driver)
     qmf.qinmifu()
     qmf.chonghuafei()
     try:
         assert qmf.try_find(mypage.Qinmifu.pan_huafei_loc) is True
         logging.info('进入充话费正常')
     except:
         logging.warning("进入充话费不正常")
         qmf.get_screenshot("进入充话费不正常")
         raise
Exemple #2
0
 def test_007(self):  #亲密付添加号码是否正常
     qmf = mypage.Qinmifu(driver)
     qmf.qinmifu()
     qmf.tianhao()
     try:
         assert qmf.try_find(mypage.Qinmifu.pan_lijitianjia_loc) is True
         logging.info('添加号码正常')
     except:
         logging.warning("添加号码不正常")
         qmf.get_screenshot("添加号码不正常")
         raise
Exemple #3
0
 def test_006(self):  #亲密付添加号码时取消是否正常
     qmf = mypage.Qinmifu(driver)
     qmf.qinmifu()
     qmf.tianhaoquxiao()
     try:
         assert qmf.try_find(mypage.Qinmifu.pan_quxiao_loc) is True
         logging.info('添加号码时取消正常')
     except:
         logging.warning("添加号码时取消不正常")
         qmf.get_screenshot("添加号码时取消不正常")
         raise
Exemple #4
0
 def test_005(self):  #亲密付管理成员是否正常
     qmf = mypage.Qinmifu(driver)
     qmf.qinmifu()
     time.sleep(5)
     qmf.guanli()
     try:
         assert qmf.try_find(mypage.Qinmifu.pan_guanli_loc) is True
         logging.info('管理成员正常')
     except:
         logging.warning("管理成员不正常")
         qmf.get_screenshot("管理成员不正常")
         raise
Exemple #5
0
 def test_ChongZhiDingDan(self):  #进入亲密付充值订单正常
     qmf = mypage.Qinmifu(driver)
     time.sleep(5)
     qmf.ChongZhiJiLu()
     qmf.ChongZhi()
     try:
         assert qmf.try_find(mypage.Qinmifu.chongzhi_pan_loc) is True
         logging.info("进入亲密付充值订单")
     except:
         logging.warning("无法进入亲密付充值订单")
         qmf.get_screenshot("无法进入亲密付充值订单")
         raise
Exemple #6
0
 def test_QMF(self):  # 能否进入亲密付页面
     qmf = mypage.Qinmifu(driver)
     time.sleep(20)
     qmf.swipe_up(t=1000, n=2)
     qmf.qinmifu()
     try:
         assert qmf.try_find(mypage.Qinmifu.pan_qinmifu_loc) is True
         logging.info('进入亲密付')
     except:
         logging.warning("无法进入亲密付")
         qmf.get_screenshot("无法进入亲密付")
         raise
Exemple #7
0
 def test_008(self):  #添加记录正常
     qmf = mypage.Qinmifu(driver)
     qmf.qinmifu()
     time.sleep(5)
     qmf.tianjiajilu()
     try:
         assert qmf.try_find(mypage.Qinmifu.pan_tianjiajilu_loc) is True
         logging.info('添加记录正常')
     except:
         logging.warning("添加记录不正常")
         qmf.get_screenshot("添加记录不正常")
         raise
Exemple #8
0
 def test_004(self):  # 进入充值记录正常
     qmf = mypage.Qinmifu(driver)
     time.sleep(10)
     qmf.qinmifu()
     time.sleep(5)
     qmf.chongzhijilu()
     try:
         assert qmf.try_find(mypage.Qinmifu.qmf_dingdan_pan_loc) is True
         logging.info("进入亲密付订单")
     except:
         logging.warning("无法进入亲密付订单")
         qmf.get_screenshot("无法进入亲密付订单")
         raise
Exemple #9
0
 def test_LiuLiangDingDan(self):  #进入亲密付流量订单正常
     qmf = mypage.Qinmifu(driver)
     qmf.qinmifu()
     time.sleep(5)
     qmf.ChongZhiJiLu()
     qmf.LiuLiang()
     try:
         assert qmf.try_find(mypage.Qinmifu.liuliang_pan_loc) is True
         logging.info("进入亲密付流量订单")
     except:
         logging.warning("无法进入亲密付流量订单")
         qmf.get_screenshot("无法进入亲密付流量订单")
         raise
Exemple #10
0
 def test_011(self):  # 进入充流量是否正常
     qmf = mypage.Qinmifu(driver)
     qmf.qinmifu()
     qmf.chongliuliang()
     try:
         assert qmf.try_find(mypage.Qinmifu.pan_liuliang_loc) is True
         logging.info('进入充流量正常')
     except:
         logging.warning("进入充流量不正常")
         qmf.get_screenshot("进入充流量不正常")
         raise
     finally:
         qmf.back()
Exemple #11
0
 def teardown(self):  # 每次返回
     qmf = mypage.Qinmifu(driver)
     time.sleep(5)
     qmf.back()
     logging.info('返回')