Beispiel #1
0
 def test_throw10_case(self):
     '''选择投10倍流程测试'''
     hp = HomePage_leyou(self.driver)
     pbcn = PaintBallChooseNumber_leyou(self.driver)
     sfcn = SingleFootChooseNumber_leyou(self.driver)
     sfcl = SingleFootConfirmLottery_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     pbc = PaintBallConfirm_leyou(self.driver)
     l = Login_leyou(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.single_foot_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_2x1()  # 选择2选1
     aa = sfcn.jzdg_two_choose_one_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:
         texxt = hp.header_text()  #获取首页顶端文本
         self.assertEqual("乐优炫彩", texxt)
Beispiel #2
0
 def test_throw10_case(self):
     '''选择投10倍流程测试'''
     hp = HomePage_leyou(self.driver)
     pbcn = PaintBallChooseNumber_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     pbc = PaintBallConfirm_leyou(self.driver)
     l = Login_leyou(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(10)  #点击投注10倍
         text = cl.throw_time_text()  #获取投注倍数文本
         print(text)
         self.assertIn('10', text)
 def test_haobc_rfsf_throw100_case(self):
     '''选择投100倍流程测试'''
     hp = HomePage_leyou(self.driver)
     hcn = HaobcChooseNumber_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     pbc = PaintBallConfirm_leyou(self.driver)
     l = Login_leyou(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.haobc_link()  ##点击竞篮
     hcn.Play_f()  # 选择玩法
     hcn.Play_rfsf()  # 选择让分胜负
     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)
Beispiel #4
0
 def test_throw80_case(self):
     '''选择投80倍流程测试'''
     hp = HomePage_leyou(self.driver)
     pbcn = PaintBallChooseNumber_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     pbc = PaintBallConfirm_leyou(self.driver)
     l = Login_leyou(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(80)  # 点击投注80倍
         text = cl.throw_time_text()
         self.assertIn('80', text)
Beispiel #5
0
 def test_single_basketball_dxf_throw100_case(self):
     '''选择投100倍流程测试'''
     hp = HomePage_leyou(self.driver)
     hcn = HaobcChooseNumber_leyou(self.driver)
     sbcn = SingleBasketballChooseNumber_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     pbc = PaintBallConfirm_leyou(self.driver)
     l = Login_leyou(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.single_basketball_link()  ##点击竞篮单关
     hcn.Play_f()  # 选择玩法
     hcn.Play_dxf()  # 选择大小分
     aa = sbcn.jldg_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_throw80_case(self):
     '''选择投80倍流程测试'''
     hp = HomePage_leyou(self.driver)
     pbcn = PaintBallChooseNumber_leyou(self.driver)
     sfcn = SingleFootChooseNumber_leyou(self.driver)
     sfcl = SingleFootConfirmLottery_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     pbc = PaintBallConfirm_leyou(self.driver)
     l = Login_leyou(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.single_foot_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_rqspf()  # 选择让球胜平负
     aa = sfcn.jzdg_rqspf_choose(1)  # 选择比赛
     if aa > 0:
         pbcn.confirm_match()  # 点击确认赛事
         pbc.Times_input_click()  # 点击投注倍数
         pbc.throw_times(80)  # 点击投注80倍
         text = sfcl.lottery_times_text()  # 获取投注倍数文本
         self.assertIn('1注80倍', text)
     if aa == 0:
         text = sfcn.Play_dgp_text()
         self.assertIn("单关配", text)