def test_throw10_case(self):
     '''选择投10倍流程测试'''
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     sfcn = SingleFootChooseNumber_lexiu(self.driver)
     sfcl = SingleFootConfirmLottery_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     pbc = PaintBallConfirm_lexiu(self.driver)
     l = Login_lexiu(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.single_foot_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_spf()  # 选择胜平负
     aa = sfcn.jzdg_spf_choose(1)  # 选择比赛
     if aa > 0:
         pbcn.confirm_match()  #点击确认赛事
         pbc.Times_input_click()  #点击投注倍数
         pbc.throw_times(10)  #点击投注10倍
         text = sfcl.lottery_times_text()  #获取投注倍数文本
         print(text)
         self.assertIn('1注10倍', text)
     if aa == 0:
         text = sfcn.Play_dgp_text()
         self.assertIn("单关配", text)
 def test_throw50_case(self):
     '''选择投50倍流程测试'''
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     pbc = PaintBallConfirm_lexiu(self.driver)
     l = Login_lexiu(self.driver)
     hp.open()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_rqspf()  # 选择让球胜平负
     aa = pbcn.rqspf_choose(2)  # 选择比赛
     if aa == 2:
         pbcn.confirm_match()  # 点击确认赛事
         pbc.Times_input_click()  # 点击投注倍数
         pbc.throw_times(50)  # 点击投注50倍
         text = cl.throw_time_text()
         self.assertIn('50', text)
 def test_throw100_case(self):
     '''选择投100倍流程测试'''
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     pbc = PaintBallConfirm_lexiu(self.driver)
     l = Login_lexiu(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_2x1()  # 选择二选一
     aa = pbcn.two_choose_one_choose(2)  # 选择比赛
     if aa == 2:
         pbcn.confirm_match()  # 点击确认赛事
         pbc.Times_input_click()  # 点击投注倍数
         pbc.throw_times(100)  # 点击投注100倍
         text = cl.throw_time_text()
         self.assertIn('100', text)
示例#4
0
 def test_haobc_dxf_throw100_case(self):
     '''选择投100倍流程测试'''
     hp = HomePage_lexiu(self.driver)
     hcn = HaobcChooseNumber_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     pbc = PaintBallConfirm_lexiu(self.driver)
     l = Login_lexiu(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.haobc_link()  ##点击竞篮
     hcn.Play_f()  # 选择玩法
     hcn.Play_dxf()  # 选择大小分
     aa = hcn.sf_choose(2)  # 选择比赛
     if aa == 2:
         hcn.confirm_match()  # 点击确认赛事
         pbc.Times_input_click()  # 点击投注倍数
         pbc.throw_times(100)  # 点击投注100倍
         text = cl.throw_time_text()
         self.assertIn('100', text)
 def test_single_basketball_sf_throw20_case(self):
     '''选择投20倍流程测试'''
     hp = HomePage_lexiu(self.driver)
     hcn = HaobcChooseNumber_lexiu(self.driver)
     sbcn = SingleBasketballChooseNumber_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     pbc = PaintBallConfirm_lexiu(self.driver)
     l = Login_lexiu(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.single_basketball_link()  ##点击竞篮单关
     hcn.Play_f()  # 选择玩法
     hcn.Play_sf()  # 选择胜负
     aa = sbcn.jldg_sf_choose(2)  # 选择比赛
     if aa == 2:
         hcn.confirm_match()  # 点击确认赛事
         pbc.Times_input_click()  # 点击投注倍数
         pbc.throw_times(20)  # 点击投注20倍
         text = cl.throw_time_text()
         self.assertIn('20', text)