Ejemplo n.º 1
0
 def test_function_instruct_case(self):
     '''验证订单详情页【功能说明】,能正常打开和关闭'''
     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)
     sos = SubmitOrderSuccess_leyou(self.driver)
     od = OrderDetails_leyou(self.driver)
     sfcn = SingleFootChooseNumber_leyou(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_leyou()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.single_foot_link()  ##点击竞彩足球
     pbcn.Play_f()  ###点击玩法
     pbcn.Play_spf()  ##点击让球胜平负
     aa = sfcn.jzdg_spf_choose(2)  # 选择2场赛事
     if aa == 2:
         pbcn.confirm_match()  ###点击确认赛事
         cl.submit_order_to_station_owner_button()  # 点击提交订单给站主
         cl.confirm_and_pay_button()  # 点击确认支付
         sos.check_order_details()  # 点击查看详情
         self.driver.execute_script("window.scroll(0,200)")  #鼠标滑动200px
         od.function_instruct()  #点击功能说明
         od.i_know()  #点击【知道了】
Ejemplo n.º 2
0
 def test_lottery_success_page_continue_lottery_case(
         self):  #####################-----------------mj20171215
     '''验证投注成功页【继续投注该彩种】按钮,点击页面跳转至竞彩足球选号页面'''
     hp = HomePage_leyou(self.driver)
     pbcn = PaintBallChooseNumber_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     pbc = PaintBallConfirm_leyou(self.driver)
     sfcn = SingleFootChooseNumber_leyou(self.driver)
     l = Login_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     t = There_D_choosenumber_leyou(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_leyou()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.single_foot_link()  ##点击竞足单关
     pbcn.Play_f()  ###点击玩法
     pbcn.Play_spf()  ##点击让球胜平负
     aa = sfcn.jzdg_spf_choose(2)  #选择2场赛事
     if aa == 2:
         pbcn.confirm_match()  ###点击确认赛事
         cl.submit_order_to_station_owner_button()  #点击提交订单给站主
         cl.confirm_and_pay_button()  #点击确认支付
         sos.Continue_buy()  #点击【继续投注该彩种】
         pbcn.Play_f()  ###点击玩法
         pbcn.Play_spf()  ##点击让球胜平负
         bb = sfcn.jzdg_spf_choose(2)  #选择2场赛事
         if bb == 2:
             pbcn.confirm_match()  #点击确认赛事
             cl.submit_order_to_station_owner_button()  #点击提交订单给站主
             cl.confirm_and_pay_button()  #点击确认支付
             text1 = sos.submit_order_success()  # 获取提交订单成功文本
             self.assertEqual('订单提交成功', text1)
Ejemplo n.º 3
0
 def test_check_order_details_case(self):
     '''验证点击【查看订单详情】页面跳转至订单详情页'''
     hp = HomePage_leyou(self.driver)
     pbcn = PaintBallChooseNumber_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     pbc = PaintBallConfirm_leyou(self.driver)
     sfcn = SingleFootChooseNumber_leyou(self.driver)
     l = Login_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     od = OrderDetails_leyou(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_leyou()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.single_foot_link()  ##点击竞足单关
     pbcn.Play_f()  ###点击玩法
     pbcn.Play_spf()  ##点击胜平负
     aa = sfcn.jzdg_spf_choose(2)  # 选择2场赛事
     if aa == 2:
         pbcn.confirm_match()  ###点击确认赛事
         cl.submit_order_to_station_owner_button()  #点击提交订单给站主
         cl.confirm_and_pay_button()  #点击确认支付
         hp.Moveable_float_close()
         sos.check_order_details()  #点击查看详情
         text1 = od.scheme_details()  #获取订单详情页文本
         self.assertEqual("方案详情", text1, '页面未跳转至订单详情页')
 def test_Play_bqc_Pf_del_icon(self):
     """验证删除选择的全部赛事图标,支付流程"""
     ha = HomePage_leyou(self.driver)
     hb = PaintBallChooseNumber_leyou(self.driver)
     hb1 = SingleFootChooseNumber_leyou(self.driver)
     hc = ConfirmLottery_leyou(self.driver)
     hc1 = PaintBallConfirm_leyou(self.driver)
     hl = Login_leyou(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.single_foot_link()  ###点击竞足单关
     hb.Play_f()  ####点击玩法
     hb.Play_bqc()  ###点击半全场
     aa = hb1.Paintball_single_bqc_nus_X(4) ###随机点击4场比赛
     if aa > 0:
         hb.confirm_match()  ###点击已选N场比赛
         hc1.down_bf()
         hc1.Pf_del_icon()##点击删除图标
         hc.confirm_delete_button()
         hb.top_more()
         hb1.Paintball_single_bqc_nus_X(4)
         mul = hb.Text_confirm_loc()
         self.assertEqual('已选%d场比赛' % aa, mul)
         hb.confirm_match()  ###点击已选N场比赛
         hc.submit_order_to_station_owner_button()  ####点击提交给站主
         # hl.new_user_login_tab()  # 点击新登录
         hl.login_leyou()  # 输入账号,密码
         hc.submit_order_to_station_owner_button()  # 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付
Ejemplo n.º 5
0
 def test_immediately_sorce_lottery_case(self):
     '''在投注选号页面,点击右上角即时比分,打开赛事分析数据,点击页面下方的投注竞彩足球按钮,页面跳转到选号页,选择两场比赛,提交订单'''
     hp = HomePage_leyou(self.driver)
     pbcn = PaintBallChooseNumber_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     pbc = PaintBallConfirm_leyou(self.driver)
     sfcn = SingleFootChooseNumber_leyou(self.driver)
     l = Login_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     t = There_D_choosenumber_leyou(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_leyou()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.single_foot_link()  ##点击竞足单关
     pbcn.three_clock()  # 点击右上角的。。。
     pbcn.immediately()  #点击即时比分
     aa = pbcn.enter_analysis_page()  #点击进入赛事分析
     if aa == 1:
         pbcn.lottery_jczq_button()  #点击【投注竞彩足球】
         pbcn.Play_f()  ###点击玩法
         pbcn.Play_spf()  ##点击让球胜平负
         aa = sfcn.jzdg_spf_choose(2)  ###随机点击2场比赛
         if aa == 2:
             pbcn.confirm_match()  ###点击确认赛事
             cl.submit_order_to_station_owner_button()  #点击提交订单给站主
             cl.confirm_and_pay_button()  #点击确认支付
             hp.Moveable_float_close()
             text1 = sos.submit_order_success()  #获取提交订单成功文本
             self.assertEqual('订单提交成功', text1)
 def test_Play_bqc_emptying(self):
     """验证选号页面清空按钮功能,支付流程"""
     ha = HomePage_leyou(self.driver)
     hb = PaintBallChooseNumber_leyou(self.driver)
     hb1 = SingleFootChooseNumber_leyou(self.driver)
     hc = ConfirmLottery_leyou(self.driver)
     hc1 = PaintBallConfirm_leyou(self.driver)
     hl = Login_leyou(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.single_foot_link()  ###点击竞足单关
     hb.Play_f()  ####点击玩法
     hb.Play_bqc()  ###点击半全场
     aa = hb1.Paintball_single_bqc_nus_X(4)  ###随机点击4场比赛
     if aa > 0:
         hb1.Emptying_pbs()###点击清空按钮
         hb.confirm_match()  ###点击已选N场比赛
         hb1.Paintball_single_bqc_nus_X(4)  ###随机点击4场比赛
         hb.confirm_match()  ###点击已选N场比赛
         hc.submit_order_to_station_owner_button()  ####点击提交给站主
         # hl.new_user_login_tab()  # 点击新登录
         hl.login_leyou()  # 输入账号,密码
         hc.submit_order_to_station_owner_button()  # 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付
Ejemplo n.º 7
0
 def test_Play_mix_Btn_add(self):
     """验证修改倍数 +功能,支付流程"""
     ha = HomePage_leyou(self.driver)
     hb = PaintBallChooseNumber_leyou(self.driver)
     hb1 = SingleFootChooseNumber_leyou(self.driver)
     hc = ConfirmLottery_leyou(self.driver)
     hc1 = PaintBallConfirm_leyou(self.driver)
     hc2 = SingleFootConfirmLottery_leyou(self.driver)
     hl = Login_leyou(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.single_foot_link()  ###点击竞彩足球
     hb.Play_f()  ####点击玩法
     hb.Play_mix()  ###点击混合玩法
     aa = hb1.Paintball_single_mix_nus_X(2)  ###随机点击2场比赛
     if aa > 0:
         hb.confirm_match()  ###点击已选N场比赛
         hc1.Times_input(3)  #####修改倍数为3
         hc1.Btn_add()####点击倍数+
         mul=hc2.Times_display_pbs()###获取倍数
         self.assertIn('4倍',mul)
         hc.submit_order_to_station_owner_button()  ####点击提交给站主
         # hl.new_user_login_tab()  # 点击新登录
         hl.login_leyou()  # 输入账号,密码
         hc.submit_order_to_station_owner_button()  # 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付
Ejemplo n.º 8
0
 def test_edit_event_case(self):
     '''验证投注确认页编辑赛事按钮测试流程'''
     hp = HomePage_leyou(self.driver)
     pbcn = PaintBallChooseNumber_leyou(self.driver)
     sfcn = SingleFootChooseNumber_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     pbc = PaintBallConfirm_leyou(self.driver)
     sfcl = SingleFootConfirmLottery_leyou(self.driver)
     l = Login_leyou(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     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.Add_event()  #点击编辑赛事
         bb = sfcn.jzdg_spf_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)
     if aa == 0:
         text = sfcn.Play_dgp_text()
         self.assertIn("单关配", text)
Ejemplo n.º 9
0
 def test_delete_all_event_case(self):
     """验证删除选择的全部赛事图标,流程测试"""
     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)
     hl = Login_leyou(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.single_foot_link()  ##点击竞彩足球
     pbcn.Play_f()  ###点击玩法
     pbcn.Play_spf()  ##点击胜平负
     aa = sfcn.jzdg_spf_choose(2)  ###随机点击2场比赛
     if aa > 0:
         pbcn.confirm_match()  ###点击确认赛事
         pbc.Pf_del_icon()  #点击删除图标
         cl.confirm_delete_button()  #点击确认删除按钮
         sfcn.jzdg_spf_choose(1)  #选择1场比赛
         pbcn.confirm_match()  ###点击确认赛事
         text1 = sfcl.lottery_times_text()  # 获取投注倍数文本
         self.assertIn("1注5倍 ", text1)
     if aa == 0:
         text = sfcn.Play_dgp_text()
         self.assertIn("单关配", text)
Ejemplo n.º 10
0
 def test_choose_num_clear_button_case(self):
     '''选号页面清除所选比赛流程测试'''
     hp = HomePage_leyou(self.driver)
     pbcn = PaintBallChooseNumber_leyou(self.driver)
     sfcn = SingleFootChooseNumber_leyou(self.driver)
     pbc = PaintBallConfirm_leyou(self.driver)
     sfcl = SingleFootConfirmLottery_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     l = Login_leyou(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.clear_button()  #点击清除按钮
         sfcn.jzdg_spf_choose(1)  #选择1场比赛
         pbcn.confirm_match()  #确认所选场次
         sleep(2)
         text1 = sfcl.lottery_times_text()  #获取投注倍数文本
         self.assertIn("1注5倍 ", text1)
     if aa == 0:
         text = sfcn.Play_dgp_text()
         self.assertIn("单关配", text)
 def test_Play_bqc_Add_event(self):
     """验证添加/编辑赛事按钮,支付流程"""
     ha = HomePage_leyou(self.driver)
     hb = PaintBallChooseNumber_leyou(self.driver)
     hb1 = SingleFootChooseNumber_leyou(self.driver)
     hc = ConfirmLottery_leyou(self.driver)
     hc1 = PaintBallConfirm_leyou(self.driver)
     hl = Login_leyou(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.single_foot_link()  ###点击竞足单关
     hb.Play_f()  ####点击玩法
     hb.Play_bqc()  ###点击半全场
     aa = hb1.Paintball_single_bqc_nus_X(4)  ###随机点击4场比赛
     if aa > 0:
         hb.confirm_match()  ###点击已选N场比赛
         hc1.Add_event_rqspf()  ###点击编辑/添加赛事
         mul = hb.Play_fb()  ###读取文本
         self.assertEqual('玩\n法', mul)
         hb.confirm_match()  ###点击已选N场比赛
         hc.submit_order_to_station_owner_button()  ####点击提交给站主
         # hl.new_user_login_tab()  # 点击新登录
         hl.login_leyou()  # 输入账号,密码
         hc.submit_order_to_station_owner_button()  # 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付
Ejemplo n.º 12
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)
Ejemplo n.º 13
0
 def test_oder_details_page_lottery_paintball_case(self):
     '''验证订单详情页【点击投注竞彩足球】按钮,点击页面跳转至,竞彩足球选号页面'''
     hp = HomePage_leyou(self.driver)
     pbcn = PaintBallChooseNumber_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     pbc = PaintBallConfirm_leyou(self.driver)
     sfcn = SingleFootChooseNumber_leyou(self.driver)
     l = Login_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     od = OrderDetails_leyou(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_leyou()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.single_foot_link()  ##点击竞足单关
     pbcn.Play_f()  ###点击玩法
     pbcn.Play_spf()  ##点击胜平负
     aa = sfcn.jzdg_spf_choose(2)  # 选择2场赛事
     if aa == 2:
         pbcn.confirm_match()  ###点击确认赛事
         cl.submit_order_to_station_owner_button()  # 点击提交订单给站主
         cl.confirm_and_pay_button()  # 点击确认支付
         sos.check_order_details()  # 点击查看详情
         od.continue_buy()  #验证订单详情页【点击投注竞彩足球】按钮
         pbcn.Play_f()  ###点击玩法
         pbcn.Play_spf()  ##点击让球胜平负
         aa = sfcn.jzdg_spf_choose(2)  # 选择2场赛事
         if aa == 2:
             pbcn.confirm_match()  ###点击确认赛事
             cl.submit_order_to_station_owner_button()  # 点击提交订单给站主
             cl.confirm_and_pay_button()  # 点击确认支付
             text1 = sos.submit_order_success()  # 获取提交订单成功文本
             self.assertEqual('订单提交成功', text1)
 def test_Play_bqc_Btn_fifty(self):
     """验证50倍按钮功能,支付流程"""
     ha = HomePage_leyou(self.driver)
     hb = PaintBallChooseNumber_leyou(self.driver)
     hb1 = SingleFootChooseNumber_leyou(self.driver)
     hc = ConfirmLottery_leyou(self.driver)
     hc1 = PaintBallConfirm_leyou(self.driver)
     hc2 = SingleFootConfirmLottery_leyou(self.driver)
     hl = Login_leyou(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.single_foot_link()  ###点击竞足单关
     hb.Play_f()  ####点击玩法
     hb.Play_bqc()  ###点击半全场
     aa = hb1.Paintball_single_bqc_nus_X(2)  ###随机点击2场比赛
     if aa > 0:
         hb.confirm_match()  ###点击已选N场比赛
         hc1.Times_input_click()  #####点击倍数输入框
         hc1.Times_number(50)  ####点击50倍
         mul = hc2.Times_display_pbs()  ###获取倍数
         self.assertIn('50倍', mul)
         hc.submit_order_to_station_owner_button()  ####点击提交给站主
         # hl.new_user_login_tab()  # 点击新登录
         hl.login_leyou()  # 输入账号,密码
         hc.submit_order_to_station_owner_button()  # 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付
Ejemplo n.º 15
0
 def test_singlefoot_spf_input10000times_case(self):  ##mj20171215
     '''选号页面,选择八场对阵,增加倍数为10000倍,提交订单'''
     hp = HomePage_leyou(self.driver)
     pbcn = PaintBallChooseNumber_leyou(self.driver)
     sfcn = SingleFootChooseNumber_leyou(self.driver)
     pbc = PaintBallConfirm_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     l = Login_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_leyou()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.single_foot_link()  ##点击竞足单关
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_spf()  #选择胜平负
     aa = sfcn.jzdg_spf_choose(8)  # 选择比赛
     if aa == 2:
         pbcn.confirm_match()  # 确认所选场次
         pbc.Times_input_click()  # 点击投注倍数
         pbc.Times_input(10000)  #输入投注10000倍
         cl.submit_order_to_station_owner_button()  # 提交订单给站主
         cl.confirm_and_pay_button()  # 点击确认支付
         text1 = sos.submit_order_success()  # 获取提交订单成功文本
         self.assertEqual('订单提交成功', text1)
Ejemplo n.º 16
0
 def test_handover_paly_case(self):
     '''胜平负玩法,在投注确认页面,点击编辑赛事,回到选号选号页面,切换玩法为混合投注,任选两场赛事,提交订单,订单详情显示为混合投注'''
     hp = HomePage_leyou(self.driver)
     pbcn = PaintBallChooseNumber_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     pbc = PaintBallConfirm_leyou(self.driver)
     sfcn = SingleFootChooseNumber_leyou(self.driver)
     l = Login_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     od = OrderDetails_leyou(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_leyou()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.single_foot_link()  ##点击竞足单关
     pbcn.Play_f()  ###点击玩法
     pbcn.Play_spf()  ##点击胜平负
     aa = sfcn.jzdg_spf_choose(2)  # 选择2场赛事
     if aa == 2:
         pbcn.confirm_match()  ###点击确认赛事
         pbc.Add_event()  # 点击编辑赛事
         pbcn.Play_f()  ###点击玩法
         pbcn.Play_mix()  ##点击混合玩法
         sfcn.Paintball_single_mix_nus_a(2)  #选择两场赛事
         pbcn.confirm_match()  ###点击确认赛事
         cl.submit_order_to_station_owner_button()  # 点击提交订单给站主
         cl.confirm_and_pay_button()  # 点击确认支付
         sleep(5)
         text1 = sos.submit_order_success()  # 获取提交订单成功文本
         self.assertEqual('订单提交成功', text1)
Ejemplo n.º 17
0
 def test_singlefoot_two_choose_one_click_all(self):
     '''点击页面展示所有比赛,测试流程'''
     hp = HomePage_leyou(self.driver)
     pbcn = PaintBallChooseNumber_leyou(self.driver)
     sfcn = SingleFootChooseNumber_leyou(self.driver)
     cl = ConfirmLottery_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_click_all()  # 选择比赛
     if aa == 0:
         texxt = hp.header_text()  #获取首页顶端文本
         self.assertEqual("乐优炫彩", texxt)
Ejemplo n.º 18
0
 def test_singlefoot_two_choose_one_10_case(self):
     '''选择一天中所有比赛场次流程测试'''
     ###点击进入竞彩足球选号页面###
     hp = HomePage_leyou(self.driver)
     pbcn = PaintBallChooseNumber_leyou(self.driver)
     sfcn = SingleFootChooseNumber_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(10)  # 选择比赛
     if aa == 0:
         texxt = hp.header_text()  #获取首页顶端文本
         self.assertEqual("乐优炫彩", texxt)
 def test_singlefoot_rqspf_10_case(self):
     '''选择一天中所有比赛场次流程测试'''
     ###点击进入竞彩足球选号页面###
     hp = HomePage_leyou(self.driver)
     pbcn = PaintBallChooseNumber_leyou(self.driver)
     sfcn = SingleFootChooseNumber_leyou(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.single_foot_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_rqspf()  # 选择让球胜平负
     aa = sfcn.jzdg_rqspf_choose(10)  # 选择比赛
     if aa == 0:
         text = sfcn.Play_dgp_text()
         self.assertIn("单关配", text)
 def test_singlefoot_rqspf_click_all(self):
     '''点击页面展示所有比赛,测试流程'''
     hp = HomePage_leyou(self.driver)
     pbcn = PaintBallChooseNumber_leyou(self.driver)
     sfcn = SingleFootChooseNumber_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.single_foot_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_rqspf()  # 选择让球胜平负
     aa = sfcn.jzdg_rqspf_click_all()  # 选择比赛
     if aa == 0:
         text = sfcn.Play_dgp_text()
         self.assertIn("单关配", text)
Ejemplo n.º 21
0
 def test_immediately_reture_homepage(self):
     '''在投注选号页面,点击右上角即时比分,可以打开并返回首页'''
     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)
     sos = SubmitOrderSuccess_leyou(self.driver)
     t = There_D_choosenumber_leyou(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_leyou()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.single_foot_link()  ##点击竞足单关
     pbcn.three_clock()  # 点击右上角的。。。
     pbcn.immediately()  # 点击即时比分
     pbcn.immediately_page_return_homepage()  #点击返回首页
Ejemplo n.º 22
0
 def test_play_instruction_open_close_case(self):  ########mj20171215
     '''在投注选号页面,点击右上角玩法说明,可以打开和关闭'''
     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)
     sfcn = SingleFootChooseNumber_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     t = There_D_choosenumber_leyou(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_leyou()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.single_foot_link()  ##点击竞足单关
     pbcn.three_clock()  #点击右上角的。。。
     sfcn.jzdg_play_instruct()  #点击玩法说明
     t.There_D_know()  #点击我知道了
Ejemplo n.º 23
0
 def test_filter_button_case(self):
     '''在投注选号页面,点击筛选按钮,对所有的筛选项进行点击'''
     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)
     sos = SubmitOrderSuccess_leyou(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_leyou()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.single_foot_link()  ##点击竞足单关
     pbcn.filter_button()  #点击筛选按钮
     pbcn.allccsel()  #点击全选
     pbcn.noallccsel()  #点击反选
     pbcn.fivecc()  #点击五大联赛
     pbcn.findcc()  #点击筛选banner的确定按钮
Ejemplo n.º 24
0
 def test_Play_zjq_choosenumber_nine_case(self):
     """验证选号页面点击9场赛事,支付流程,若运行不成功,查看是否点击重复的场次"""
     ha = HomePage_leyou(self.driver)
     hb = PaintBallChooseNumber_leyou(self.driver)
     hb1 = SingleFootChooseNumber_leyou(self.driver)
     hc = ConfirmLottery_leyou(self.driver)
     hl = Login_leyou(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.single_foot_link()  ###点击竞足单关
     hb.Play_f()  ####点击玩法
     hb.Play_zq()  ###点击总进球
     aa = hb1.Paintball_single_zjq_nus_X(9)  ####随机点击9场赛事
     if aa > 0:
         hb.confirm_match()  ###点击已选N场比赛
         hc.submit_order_to_station_owner_button()  ####点击提交给站主
         #hl.new_user_login_tab()  # 点击新登录
         hl.login_leyou()  # 输入账号,密码
         hc.submit_order_to_station_owner_button()  # 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付
Ejemplo n.º 25
0
 def test_Play_zjq_choosnumber(self):
     """验证总进球玩法赛事结果功能,支付流程"""
     ha = HomePage_leyou(self.driver)
     hb = PaintBallChooseNumber_leyou(self.driver)
     hb1 = SingleFootChooseNumber_leyou(self.driver)
     hc = ConfirmLottery_leyou(self.driver)
     hl = Login_leyou(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.single_foot_link()  ###点击竞足单关
     hb.Play_f()  ####点击玩法
     hb.Play_zq()  ###点击总进球
     aa = hb1.Paintball_single_zjq()  # 点击全部赛事结果
     if aa == 1:
         hb1.Paintball_single_zjq_nus(8)  #随机选择8个赛事结果
         hb.confirm_match()  ###点击已选N场比赛
         hc.submit_order_to_station_owner_button()  ####点击提交给站主
         # hl.new_user_login_tab()  # 点击新登录
         hl.login_leyou()  # 输入账号,密码
         hc.submit_order_to_station_owner_button()  # 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付
 def test_singlefoot_rqspf_9_case(self):
     '''选择九场比赛,获取“最大场次限制8场”提示,测试流程'''
     ###点击进入竞彩足球选号页面###
     hp = HomePage_leyou(self.driver)
     pbcn = PaintBallChooseNumber_leyou(self.driver)
     sfcn = SingleFootChooseNumber_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.single_foot_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_rqspf()  # 选择让球胜平负
     aa = sfcn.jzdg_rqspf_choose(9)  # 选择比赛
     if aa == 1 or aa == 2:
         try:
             pbcn.know()
             pbcn.confirm_match()  # 确认所选场次
         except ElementNotVisibleException:
             print("当前赛事小于8场")
     if aa == 0:
         text = sfcn.Play_dgp_text()
         self.assertIn("单关配", text)
 def test_singlefoot_rqspf_8_case(self):
     '''选择8场比赛,流程测试'''
     ###点击进入竞彩足球选号页面###
     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)
     hp.open()
     hp.Moveable_float_close()
     hp.single_foot_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_rqspf()  # 选择让球胜平负
     aa = sfcn.jzdg_rqspf_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:
         text = sfcn.Play_dgp_text()
         self.assertIn("单关配", text)
 def test_singlefoot_rqspf_2_case(self):
     '''选择两场比赛进行投注,流程测试'''
     hp = HomePage_leyou(self.driver)
     pbcn = PaintBallChooseNumber_leyou(self.driver)
     pbc = PaintBallConfirm_leyou(self.driver)
     sfcn = SingleFootChooseNumber_leyou(self.driver)
     sfcl = SingleFootConfirmLottery_leyou(self.driver)
     cl = ConfirmLottery_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(2)  # 选择两场比赛
     if aa == 2:
         pbcn.confirm_match()  # 确认场次
         text1 = sfcl.lottery_times_text()  # 获取投注倍数文本
         self.assertIn("2注5倍 ", text1)
     if aa == 0:
         text = sfcn.Play_dgp_text()
         self.assertIn("单关配", text)
Ejemplo n.º 29
0
 def test_singlefoot_two_choose_one_9_case(self):
     '''选择九场比赛,获取“最大场次限制8场”提示,测试流程'''
     ###点击进入竞彩足球选号页面###
     hp = HomePage_leyou(self.driver)
     pbcn = PaintBallChooseNumber_leyou(self.driver)
     sfcn = SingleFootChooseNumber_leyou(self.driver)
     cl = ConfirmLottery_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(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)
Ejemplo n.º 30
0
 def test_Play_mix_choosenumber_case(self):
     """验证选号页面点击全部赛事结果,支付流程"""
     ha = HomePage_leyou(self.driver)
     hb = PaintBallChooseNumber_leyou(self.driver)
     hb1=SingleFootChooseNumber_leyou(self.driver)
     hc=ConfirmLottery_leyou(self.driver)
     hl = Login_leyou(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.single_foot_link()###点击竞彩足球
     hb.Play_f()####点击玩法
     hb.Play_mix()###点击混合玩法
     aa=hb1.Paintball_single_mix()##点击混合玩法显示的赛事结果
     if aa == 1:
         hb1.Paintball_single_mixs(4)####随机点击n场赛事
         hb.confirm_match()###点击已选N场比赛
         hc.submit_order_to_station_owner_button()####点击提交给站主
         #hl.new_user_login_tab()  # 点击新登录
         hl.login_leyou()  # 输入账号,密码
         hc.submit_order_to_station_owner_button()# 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付