def test_edit_event_case(self):
     '''验证投注确认页编辑赛事按钮测试流程'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     l = Login_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法-
     pbcn.Play_spf()  # 选择胜平负
     aa = pbcn.spf_choose(2)  # 选择比赛
     if aa == 2:
         pbcn.confirm_match()  # 点击确认赛事
         sleep(3)
         pbc.Add_event()  #点击编辑赛事
         bb = pbcn.edit_event(1)  # 选择1场比赛
         sleep(3)
         if bb == 1:
             print("场次小于两场")
         if bb == 2:
             pbcn.confirm_match()  # 点击确认赛事
             text = pbc.Pf_pass_text()  # 获取过关方式文本
             print(text)
             self.assertIn("3串1", text)
         if bb == 3:
             print("我已进入竞足单关")
예제 #2
0
 def test_edit_event_case(self):
     '''验证投注确认页编辑赛事按钮测试流程'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     l = Login_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_rqspf()  # 选择让球胜平负
     aa = pbcn.rqspf_choose(2)  # 选择比赛
     if aa == 2:
         pbcn.confirm_match()  # 点击确认赛事
         pbc.Add_event_rqspf()  #点击编辑赛事
         pbcn.edit_event(1)  #选择1场比赛
         pbcn.confirm_match()  # 点击确认赛事
         text = pbc.Pf_pass_text()  # 获取过关方式文本
         self.assertIn("3串1", text)