def test_choose_num_clear_button_case(self):
     '''选号页面清除所选比赛流程测试'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     sfcn = SingleFootChooseNumber_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     sfcl = SingleFootConfirmLottery_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     l = Login_lelun(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.clear_button()  # 点击清除按钮
         sfcn.jzdg_two_choose_one_choose(1)  # 选择1场比赛
         pbcn.confirm_match()  # 确认所选场次
         sleep(2)
         text1 = sfcl.lottery_times_text()  # 获取投注倍数文本
         self.assertIn("1注5倍 ", text1)
     if aa == 0:
         texxt = hp.header_text()  #获取首页顶端文本
         self.assertEqual("乐仑炫彩", texxt)
 def test_delete_all_event_case(self):
     """验证删除选择的全部赛事图标,流程测试"""
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     sfcn = SingleFootChooseNumber_lelun(self.driver)
     sfcl = SingleFootConfirmLottery_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.single_foot_link()  ##点击竞彩足球
     pbcn.Play_f()  ###点击玩法
     pbcn.Play_2x1()  ##点击2选1
     aa = sfcn.jzdg_two_choose_one_choose(2)  ###随机点击2场比赛
     if aa > 0:
         pbcn.confirm_match()  ###点击确认赛事
         pbc.Pf_del_icon()  # 点击删除图标
         cl.confirm_delete_button()  # 点击确认删除按钮
         sfcn.jzdg_two_choose_one_choose(1)  # 选择1场比赛
         pbcn.confirm_match()  ###点击确认赛事
         text1 = sfcl.lottery_times_text()  # 获取投注倍数文本
         self.assertIn("1注5倍 ", text1)
     texxt = hp.header_text()  # 获取首页顶端文本
     self.assertEqual("乐仑炫彩", texxt)
 def test_edit_event_case(self):
     '''验证投注确认页编辑赛事按钮测试流程'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     sfcn = SingleFootChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     sfcl = SingleFootConfirmLottery_lelun(self.driver)
     l = Login_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     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.Add_event()  # 点击编辑赛事
         bb = sfcn.jzdg_two_choose_one_edit_event(1)  # 选择1场比赛
         if bb == 1:
             print("只有一场赛事")
             pbcn.confirm_match()  # 点击确认赛事
             text1 = sfcl.lottery_times_text()  # 获取投注倍数文本
             self.assertIn("2注5倍 ", text1)
         if bb == 2:
             pbcn.confirm_match()  # 点击确认赛事
             text1 = sfcl.lottery_times_text()  # 获取投注倍数文本
             self.assertIn("2注5倍 ", text1)
     texxt = hp.header_text()  # 获取首页顶端文本
     self.assertEqual("乐仑炫彩", texxt)
Exemplo n.º 4
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_2x1()  # 选择二选一
     aa = pbcn.two_choose_one_choose(2)  # 选择比赛
     if aa == 2:
         pbcn.confirm_match()  # 点击确认赛事
         pbc.Add_event()  #点击编辑赛事
         sleep(3)
         bb = pbcn.two_choose_one_edit_event(1)  # 选择1场比赛
         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("我已进入竞足单关")
 def test_throw10_case(self):
     '''选择投10倍流程测试'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     sfcn = SingleFootChooseNumber_lelun(self.driver)
     sfcl = SingleFootConfirmLottery_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     l = Login_lelun(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)
Exemplo n.º 6
0
 def test_paintball_rqtwo_choose_one_10_case(self):
     '''选择一天中所有比赛场次流程测试'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  #选择玩法
     pbcn.Play_2x1()  #选择二选一
     pbcn.two_choose_one_choose(10)  #选择比赛
Exemplo n.º 7
0
 def test_paintball_two_choose_one_click_all(self):
     '''点击页面展示所有比赛,测试流程'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_2x1()  # 选择二选一
     pbcn.two_choose_one_click_all()  # 选择比赛
 def test_singlefoot_two_choose_one_click_all(self):
     '''点击页面展示所有比赛,测试流程'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     sfcn = SingleFootChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(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_click_all()  # 选择比赛
     if aa == 0:
         texxt = hp.header_text()  #获取首页顶端文本
         self.assertEqual("乐仑炫彩", texxt)
 def test_singlefoot_two_choose_one_10_case(self):
     '''选择一天中所有比赛场次流程测试'''
     ###点击进入竞彩足球选号页面###
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     sfcn = SingleFootChooseNumber_lelun(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(10)  # 选择比赛
     if aa == 0:
         texxt = hp.header_text()  #获取首页顶端文本
         self.assertEqual("乐仑炫彩", texxt)
Exemplo n.º 10
0
 def test_paintball_rqtwo_choose_one_8_case(self):
     '''选择8场比赛,流程测试'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.paintball_link()  #####点击进入竞彩足球选号页面###
     pbcn.Play_f()  #选择玩法
     pbcn.Play_2x1()  #选择二选一
     aa = pbcn.two_choose_one_choose(8)  #选择比赛
     sleep(3)
     if aa == 2:
         pbcn.confirm_match()  #确认所选场次
         cl.submit_order_to_station_owner_button()  #提交订单给站主
Exemplo n.º 11
0
 def test_throw_sub_btn_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()
     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.Btn_less()  #点击-按钮
         text = cl.throw_time_text()
         self.assertIn('4', text)
Exemplo n.º 12
0
 def test_throw_way_case(self):
     '''改变默认投注过关方式流程测试'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_2x1()  # 选择二选一
     aa = pbcn.two_choose_one_choose(8)  # 选择比赛
     if aa == 2:
         pbcn.confirm_match()  # 点击确认赛事
         pbc.Pf_pass()  #点击过关方式
         mul = pbc.Pf_pass_nu()  ###读取点击的过关方式
         a = pbc.Pf_pass_text()  ###读取展示的过关方式
         self.assertEqual(a, mul)
Exemplo n.º 13
0
 def test_input_throw_times_case(self):
     '''输入投注3倍测试流程'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(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.Times_input(3)  #输入投注3倍
         text = cl.throw_time_text()
         self.assertIn('3', text)
Exemplo n.º 14
0
 def test_paintball_rqtwo_choose_one_9_case(self):
     '''选择九场比赛,获取“最大场次限制8场”提示,测试流程'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  #选择玩法
     pbcn.Play_2x1()  #选择二选一
     aa = pbcn.two_choose_one_choose(9)  # 选择比赛
     if aa == 2:
         try:
             pbcn.know()
         except ElementNotVisibleException:
             print("当前场次小于8场")
         pbcn.confirm_match()  # 确认所选场次
     else:
         print("我返回了")
Exemplo n.º 15
0
 def optimize_award_case(self):
     '''验证奖金优化流程测试'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.paintball_link()  ##点击竞彩足球
     pbcn.Play_f()  ###点击玩法
     pbcn.Play_2x1()  ##点击二选一
     aa = pbcn.two_choose_one_choose(2)  ###随机点击4场比赛
     if aa > 0:
         pbcn.confirm_match()  ###点击确认赛事
         pbc.Pf_bouns()  ##点击奖金优化
         text = pbc.optimize_award()  #获取奖金优化页上方文本
         self.assertIn("平均优化购买", text)
Exemplo n.º 16
0
 def test_choose_num_clear_button_case(self):
     '''选号页面清除所选比赛流程测试'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     l = Login_lelun(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.clear_button()  #点击清除按钮
         sleep(0.1)
         pbcn.two_choose_one_choose(3)  #选择3场比赛
         pbcn.confirm_match()  #确认所选场次
         text = pbc.Pf_pass_text()  #获取过关方式文本
         self.assertIn("3串1", text)
Exemplo n.º 17
0
 def test_paintball_two_choose_one_2_case(self):
     '''选择两场比赛流程测试'''
     ###点击进入竞彩足球选号页面###
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     l = Login_lelun(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()  #确认所选场次
         cl.submit_order_to_station_owner_button()  #提交订单给站主
         l.login_lelun()  #点击登录
         cl.submit_order_to_station_owner_button()  # 提交订单给站主
         cl.confirm_and_pay_button()  #确认支付
Exemplo n.º 18
0
 def test_delete_one_event_case(self):
     """验证单个删除赛事X按钮,流程测试"""
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.paintball_link()  ##点击竞彩足球
     pbcn.Play_f()  ###点击玩法
     pbcn.Play_2x1()  ##点击二选一
     aa = pbcn.two_choose_one_choose(3)  ###随机点击3场比赛
     sleep(3)
     if aa == 2:
         pbcn.confirm_match()  ###点击确认赛事
         a = pbc.NN()  ###读取删除前有多少个X按钮
         pbc.N_del(1)  ##点击删除第一场赛事
         a1 = pbc.NN()  ###读取删除后有多少个X按钮
         self.assertEqual(a - 1, a1)
 def test_singlefoot_two_choose_one_9_case(self):
     '''选择九场比赛,获取“最大场次限制8场”提示,测试流程'''
     ###点击进入竞彩足球选号页面###
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     sfcn = SingleFootChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(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(9)  # 选择比赛
     if aa == 1 or aa == 2:
         try:
             pbcn.know()
             pbcn.confirm_match()  # 确认所选场次
         except ElementNotVisibleException:
             print("当前赛事小于8场")
     if aa == 0:
         texxt = hp.header_text()  #获取首页顶端文本
         self.assertEqual("乐仑炫彩", texxt)
 def test_singlefoot_two_choose_one_8_case(self):
     '''选择8场比赛,流程测试'''
     ###点击进入竞彩足球选号页面###
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     sfcn = SingleFootChooseNumber_lelun(self.driver)
     sfcl = SingleFootConfirmLottery_lelun(self.driver)
     cl = ConfirmLottery_lelun(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(8)  # 选择比赛
     if aa == 2:
         pbcn.confirm_match()  # 确认所选场次
         text1 = sfcl.lottery_times_text()  # 获取投注倍数文本
         self.assertIn("8注5倍 ", text1)
         cl.submit_order_to_station_owner_button()  # 提交订单给站主
     if aa == 0:
         texxt = hp.header_text()  #获取首页顶端文本
         self.assertEqual("乐仑炫彩", texxt)
 def test_singlefoot_two_choose_one_2_case(self):
     '''选择两场比赛进行投注,流程测试'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     sfcn = SingleFootChooseNumber_lelun(self.driver)
     sfcl = SingleFootConfirmLottery_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     l = Login_lelun(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(2)  # 选择两场比赛
     if aa == 2:
         pbcn.confirm_match()  # 确认场次
         text1 = sfcl.lottery_times_text()  # 获取投注倍数文本
         self.assertIn("2注5倍 ", text1)
     if aa == 0:
         texxt = hp.header_text()  #获取首页顶端文本
         self.assertEqual("乐仑炫彩", texxt)
Exemplo n.º 22
0
 def test_delete_all_event_case(self):
     """验证删除选择的全部赛事图标,流程测试"""
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.paintball_link()  ##点击竞彩足球
     pbcn.Play_f()  ###点击玩法
     pbcn.Play_2x1()  ##点击二选一
     aa = pbcn.two_choose_one_choose(2)  ###随机点击2场比赛
     if aa > 0:
         pbcn.confirm_match()  ###点击确认赛事
         pbc.Pf_del_icon()  #点击删除图标
         cl.confirm_delete_button()  #点击确认删除按钮
         pbcn.two_choose_one_choose(4)  #选择4场比赛
         pbcn.confirm_match()  ###点击确认赛事
         text = pbc.Pf_pass_text()  # 获取过关方式文本
         self.assertIn("4串1", text)