def test_Play_bqc_Pf_bouns(self):
     """验证过关功能,支付流程"""
     ha = HomePage_lelun(self.driver)
     hb = PaintBallChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = PaintBallConfirm_lelun(self.driver)
     hl = Login_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.paintball_link()  ##点击竞彩足球
     hb.Play_f()  ###点击玩法
     hb.Play_bqc()  ##点击比分
     aa = hb.Football_bqc_X(8)  ###随机点击8场比赛
     if aa > 0:
         hb.confirm_match()  ###点击已选N场比赛
         hc1.Pf_pass()
         mul = hc1.Pf_pass_nu()  ###读取点击的过关方式
         a = hc1.Pf_pass_text()  ###读取展示的过关方式
         self.assertEqual(a, mul)
         hc.submit_order_to_station_owner_button()  ####点击提交给站主
         # hl.new_user_login_tab()  # 点击新登录
         hl.login_lelun()  # 输入账号,密码
         hc.submit_order_to_station_owner_button()  # 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付
Exemplo n.º 2
0
 def test_fivestar_choose_all_cancel_case(self):
     '''五星直选玩法,选择所有选号,再次点击取消流程'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     l = Login_lelun(self.driver)
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.cqssc_link()  # 点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_lelun(self.driver)
     ssc_cn.play_mode()  # 选择模式
     ssc_cn.five_star()  # 选择五星
     ssc_cn.wanwei_all()
     ssc_cn.qianwei_all()
     ssc_cn.baiwei_all()
     self.driver.execute_script("window.scroll(0,300)")
     ssc_cn.shiwei_all()
     ssc_cn.gewei_all()
     aa = efcn.total_buy_text()
     self.assertIn("100000注 ", aa)
     self.driver.execute_script("window.scroll(0,0)")
     ssc_cn.wanwei_all()
     ssc_cn.qianwei_all()
     ssc_cn.baiwei_all()
     self.driver.execute_script("window.scroll(0,300)")
     ssc_cn.shiwei_all()
     ssc_cn.gewei_all()
     aa = efcn.total_buy_text()
     self.assertIn("请每位至少选择1个号码", aa)
Exemplo n.º 3
0
 def test_fivestar_choose_all_case(self):
     '''五星直选玩法,每位各选所有号码'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     l = Login_lelun(self.driver)
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.cqssc_link()  # 点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_lelun(self.driver)
     ssc_cn.play_mode()  # 选择模式
     ssc_cn.five_star()  # 选择五星
     ssc_cn.wanwei_all()
     ssc_cn.qianwei_all()
     ssc_cn.baiwei_all()
     self.driver.execute_script("window.scroll(0,300)")
     ssc_cn.shiwei_all()
     ssc_cn.gewei_all()
     aa = efcn.total_buy_text()
     self.assertIn("100000注 ", aa)
     efcn.confirm_number_button()  # 点击确认选号
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     toast=cl.out_max_pay()
     self.assertEqual("投注金额不能大于100000元",toast)
Exemplo n.º 4
0
 def test_Play_bqc_Pf_del_icon(self):
     """验证删除选择的全部赛事图标,支付流程"""
     ha = HomePage_lelun(self.driver)
     hb = PaintBallChooseNumber_lelun(self.driver)
     hb1 = SingleFootChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = PaintBallConfirm_lelun(self.driver)
     hl = Login_lelun(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_lelun()  # 输入账号,密码
         hc.submit_order_to_station_owner_button()  # 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付
Exemplo n.º 5
0
 def test_Play_bqc_emptying(self):
     """验证选号页面清空按钮功能,支付流程"""
     ha = HomePage_lelun(self.driver)
     hb = PaintBallChooseNumber_lelun(self.driver)
     hb1 = SingleFootChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = PaintBallConfirm_lelun(self.driver)
     hl = Login_lelun(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_lelun()  # 输入账号,密码
         hc.submit_order_to_station_owner_button()  # 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付
Exemplo n.º 6
0
 def test_Lottery_Dantuo_1_5_1_2_chase_throws_case(self):
     '''胆拖投注,在投注确认页面增加倍数和期数,提交订单'''
     ###点击进入大乐透选号页面###
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.Lottery_link()  # 点击大乐透链接
     blcn = BigLotteryChooseNum_lelun(self.driver)
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     blcl = BigLotteryConfirmLottery_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     ulcn.DanTuo_mode()  # 选择胆拖模式
     blcn.l_red_one_five()  # 红球选取1个胆码5个拖码
     blcn.l_bule_one_two()  # 后区选择1个胆码2个拖码
     ulcn.Confirm_button()  # 点击确认选号
     cl.chase_ticket_button()  #点击追xx期
     blcl.additional_radio_button()  # 点击追加单选按钮
     cl.chase_ticket_button_two()  # 点击追加2期单选按钮
     cl.throw_times_input(2)  # 输入投注倍数
     cl.submit_order_to_station_owner_button()  #点击提交订单给站主
     l = Login_lelun(self.driver)
     #l.new_user_login_tab()  # 切换到新用户登录
     l.login_lelun()  # 点击登录
     cl.submit_order_to_station_owner_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.Moveable_float_close()
     text = sos.submit_order_success()
     self.assertEqual("订单提交成功", text, "提交订单失败")
Exemplo n.º 7
0
 def test_machine_choose_one_throw_add_case(self):
     '''机选一注输入投3倍,点击投注倍数的+按钮流程测试'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.gd_11_5_link()  # 点击广东11选5链接
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     ulcn.machine_choose_button()  #点击机选
     ulcn.machine_choose_one_button()  #机选一注
     efcn.confirm_number_button()  #确认选号
     ecfcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     ecfcl.countdown_text()  # 检查倒计时文案
     cl = ConfirmLottery_lelun(self.driver)
     ecfcl.throw_times_input("3")  #输入投3倍
     ecfcl.throw_times_add_button()  #点击投注倍数的+按钮
     check = ecfcl.lottery_chase_throw_text()  #获取投注注数、追号期数、投注倍数文本
     self.assertIn("1注1期4倍", check)
     ecfcl.submit_order_button()  # 提交订单给站主
     l = Login_lelun(self.driver)
     l.login_lelun()  # 登录
     ecfcl.submit_order_button()  # 提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     text = sos.submit_order_success()  # 获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text)
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐仑炫彩-粤11选5", trade_name)
     sos.check_order_details()  # 点击查看详情
     od = OrderDetails_lelun(self.driver)
     od.order_details_check()  # 检查订单详情页页面元素
 def test_many_note_many_double_pause_five_case(self):
     """多注多倍,机选五注"""
     ha = HomePage_lelun(self.driver)
     hb = Arrang_there_choosenumber_lelun(self.driver)
     hb1 = UnionLottoChooseNumber_lelun(self.driver)
     hb2 = ArrangeFiveChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = ArrangeFiveConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hd = LessPaySucess_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.rank_three_link()  ####点击排列3
     hb.Play()  ###点击玩法
     hb.Play_Group_there()  ####点击组三
     hb.group_theres(2)
     hb2.Confirm_nu()  # 点击确认选号
     mur1 = hc1.Test_note_nu()  ##读取注数
     self.assertEqual('2', mur1)
     hc1.Multiple_input(5)  ###点击倍数输入功能
     mur = hc1.Test_multiple_show()  ##读取倍数
     self.assertEqual('5', mur)
     hc1.Pause_five()  ###点击机选五注
     mur2 = hc1.Test_multiple_show()  ##读取倍数
     self.assertEqual('5', mur2)
     mur3 = hc1.Test_note_nu()  ##读取注数
     self.assertEqual('7', mur3)
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     #hl.new_user_login_tab()  # 点击新登录
     hl.login_lelun()  # 输入账号,密码
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
     mur4 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur4)
 def test_arrany_there_Continue_switch_play_case(self):
     """,组三,继续选号,切换玩法为直选"""
     ha = HomePage_lelun(self.driver)
     hb = Arrang_there_choosenumber_lelun(self.driver)
     hb1 = Seven_color_choosenumber_lelun(self.driver)
     hb2 = ArrangeFiveChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = ArrangeFiveConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hd = LessPaySucess_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.rank_three_link()  ####点击排列3
     hb.Play()  ###点击玩法
     hb.Play_Group_six()  ####点击组六
     hb.group_sixs(3)
     hb2.Confirm_nu()  # 点击确认选号
     hc1.Coun_nu()  ###点击继续选号
     hb.Play()  ###点击玩法
     hb.Play_Group_there()  ####点击组三
     hb.Switch_play_ok()  ##点击确定
     hb.group_theres(4)  ###组三,选择4个号码
     hb2.Confirm_nu()  # 点击确认选号
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     #hl.new_user_login_tab()  # 点击新登录
     hl.login_lelun()  # 输入账号,密码
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
Exemplo n.º 10
0
 def test_jxks_a_note_many_double_pause_case(self):
     """1注多倍号码,机选"""
     ha = HomePage_lelun(self.driver)
     hb = GXKS_ChooseNumber_lelun(self.driver)
     hb1 = ElevenFiveChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = EleChooseFiveConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hd = LessPaySucess_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.guangxi_express_three_link()  # 点击广西快三
     hb.play_jxks_sthtx()  ##点击三同号通选
     hb.sthtx_choosenumber()  ##点击选号
     hb1.confirm_number_button()###点击确认选号
     hc1.throw_times_input(13)  ##输入倍数13倍
     hc1.machine_choose_one()##点击机选
     mur=hc1.lottery_chase_throw_text()#读取注数
     self.assertEqual('2注1期13倍共52元',mur)
     hc1.submit_order_button()  # 点击提交给站主
     hl.login_lelun()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
 def test_group_there_clear_number_case(self):
     """验证选号页面,点击清除选号按钮功能"""
     ha = HomePage_lelun(self.driver)
     hb = Arrang_there_choosenumber_lelun(self.driver)
     hb1 = ArrangeFiveChooseNumber_lelun(self.driver)
     hb2 = UnionLottoChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hd = ArrangeFiveConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.rank_three_link()  ####点击排列3
     hb.Play()  ###点击玩法
     hb.Play_Group_there()  ####点击组三
     hb.group_theres(4)
     hb2.clear_number()  # 点击清除选号页面
     hb1.Confirm_nu()  # 点击确认选号
     hb1.Confirm_nu()  # 点击确认选号
     mur = hd.Test_note_nu()
     self.assertEqual('2', mur)  ####断言注数
     hc.submit_order_to_station_owner_button()  ##点击提交给站主
     #hl.new_user_login_tab()  # 点击新登录
     hl.login_lelun()  # 输入账号,密码
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
Exemplo n.º 12
0
 def test_jxks_less_term_case(self):
     """1注号码,点击-按钮,添加期数"""
     ha = HomePage_lelun(self.driver)
     hb = GXKS_ChooseNumber_lelun(self.driver)
     hb1 = ElevenFiveChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = EleChooseFiveConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hd = LessPaySucess_lelun(self.driver)
     ssc_cl = CQSSCConfirmLottery_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.guangxi_express_three_link()  # 点击广西快三
     hb.play_jxks_sthtx()  ##点击三同号通选
     hb.sthtx_choosenumber()  ##点击选号
     hb1.confirm_number_button()  ###点击确认选号
     hc1.chase_ticket_button()  ###展开期数按钮
     hc.chase_ticket_button_twenty()  ##点击20期
     hc1.chase_sub_button()  ###点击-按钮,期数
     mur = hc1.lottery_chase_throw_text()  # 读取注数
     self.assertEqual('1注19期1倍共38元', mur)
     hc1.submit_order_button()  # 点击提交给站主
     hl.login_lelun()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
Exemplo n.º 13
0
 def test_jxks_a_note_many_double_pause_znxh_case(self):
     """1注多倍号码,机选,智能选号"""
     ha = HomePage_lelun(self.driver)
     hb = GXKS_ChooseNumber_lelun(self.driver)
     hb1 = ElevenFiveChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = EleChooseFiveConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hd = LessPaySucess_lelun(self.driver)
     ssc_cl = CQSSCConfirmLottery_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.guangxi_express_three_link()  # 点击广西快三
     hb.play_jxks_sthtx()  ##点击三同号通选
     hb.sthtx_choosenumber()  ##点击选号
     hb1.confirm_number_button()###点击确认选号
     hc1.throw_times_input(13)  ##输入倍数13倍
     hc1.machine_choose_one()##点击机选
     mur=hc1.lottery_chase_throw_text()#读取注数
     self.assertEqual('2注1期13倍共52元',mur)
     ssc_cl.intelligently_chase_button()  # 点击智能追号
     ssc_cl.revise_button()  # 点击修改方案
     ssc_cl.revise_chase_input(84)  # 追号的输入框输入12
     ssc_cl.revise_confirm()  # 点击确认修改
     text = ssc_cl.totalIssue_text()
     self.assertNotIn('10期', text, '追号期数修改失败')  # 检查是否修改追号期数
     ssc_cl.submit_button()  # 点击提交按钮
     hl.login_lelun()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
Exemplo n.º 14
0
 def test_jxks_a_note_many_double_Continue_znzh_tj_case(self):
     """1注多倍,继续选号,智能追号,提交"""
     ha = HomePage_lelun(self.driver)
     hb = GXKS_ChooseNumber_lelun(self.driver)
     hb1 = ElevenFiveChooseNumber_lelun(self.driver)
     hc = JXKS_Confirm_lelun(self.driver)
     hc1 = EleChooseFiveConfirmLottery_lelun(self.driver)
     hc2 = ConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hd = LessPaySucess_lelun(self.driver)
     ssc_cl = CQSSCConfirmLottery_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.guangxi_express_three_link()  # 点击广西快三
     hb.play_jxks_sthtx()  ##点击三同号通选
     hb.sthtx_choosenumber()  ##点击选号
     hb1.confirm_number_button()###点击确认选号
     hc1.throw_times_input(13)  ##输入倍数13倍
     hc.Button_less()###点击倍数-号
     hc.Cont()###点击继续选号
     hb.sthtx_choosenumber()##点击1注
     hb1.confirm_number_button()###点击确认选号
     mur=hc1.lottery_chase_throw_text()#读取注数
     self.assertEqual('2注1期12倍共48元',mur)
     ssc_cl.intelligently_chase_button()  # 点击智能追号
     ssc_cl.submit_button()  # 点击提交按钮
     hl.login_lelun()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc2.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
 def test_continue_toggle_play_case(self):
     """胜负玩法,点击编辑赛事,回到选号选号页面,切换玩法为混合投注"""
     ha = HomePage_lelun(self.driver)
     hb = PaintBallChooseNumber_lelun(self.driver)
     hb1 = HaobcChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = PaintBallConfirm_lelun(self.driver)
     hc2 = HaobcConfirm_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hd = SubmitOrderSuccess_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.My_lottery_ticket()  # 点击我的彩票
     hl.login_lelun()  # 点击登录
     ha.homepage_link()  # 点击首页
     ha.single_basketball_link()  ##点击竞篮单关
     hb.Play_f()  # 选择玩法
     hb1.Play_sf()  # 选择胜负
     aa = hb1.sf_choose(2)  # 选择比赛
     if aa == 2:
         hb.confirm_match()  ###点击已选N场比赛
         hc2.edit_event()  ###点击编辑/添加赛事
         hb.Play_f()  # 选择玩法
         hb.Play_mix()  ###点击混合投注
         aa = hb1.Basketball_sfc_nus_X(2)  ###随机点击4场比赛
         if aa == 2:
             hb.confirm_match()  ###点击已选N场比赛
             hc.submit_order_to_station_owner_button()  # 提交订单给站主
             hc.confirm_and_pay_button()  # 点击确认支付
             text1 = hd.submit_order_success()  # 获取提交订单成功文本
             self.assertEqual('订单提交成功', text1)
Exemplo n.º 16
0
 def test_Lottery_information_buy_case(self):
     """进入开奖公告,点击投注双色球,进入双色球投注页面,选1注号码"""
     ha = HomePage_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hb = UnionLottoChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hd = PaymetMode_lelun(self.driver)
     he = BaofooPayment_lelun(self.driver)
     hf = ChooseBank_lelun(self.driver)
     hf1 = SubmitOrderSuccess_lelun(self.driver)
     hf2 = LessPaySucess_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.Lottery_information()##点击开奖信息
     hb.Lottery_information_unionlotto()##点击开奖信息中的双色球
     hc.Unionlotto_History_buy()###点击双色球最近的开奖信息
     hc.Buy_unionlotto()##点击投注双色球
     hb.u_red_label6()  # 任意选择6个红球
     hb.u_bule_label1()  # 任意选择1个蓝球
     hb.Confirm_button()  # 点击确认选号按钮
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     hl.login_lelun()  # 输入账号,密码
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
     text1 = hf1.submit_order_success()  # 获取提交订单成功文本
     self.assertEqual('订单提交成功', text1)
Exemplo n.º 17
0
 def test_Lottery_Dantuo_1_5_1_2_case(self):
     '''胆拖模式前区选择1个胆码,5个拖码,后区选择1个胆码,2个拖码测试流程'''
     ###点击进入大乐透选号页面###
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.Lottery_link()  # 点击大乐透链接
     blcn = BigLotteryChooseNum_lelun(self.driver)
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ulcn.DanTuo_mode()  # 选择胆拖模式
     blcn.l_red_one_five()  # 红球选取1个胆码5个拖码
     blcn.l_bule_one_two()  # 后区选择1个胆码2个拖码
     ulcn.Confirm_button()  # 点击确认选号
     cl = ConfirmLottery_lelun(self.driver)
     cl.submit_order_to_station_owner_button()  # 点击提交订单给站主
     l = Login_lelun(self.driver)
     #l.new_user_login_tab()  # 切换到新用户登录
     l.login_lelun()  # 点击登录
     cl.submit_order_to_station_owner_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.Moveable_float_close()
     text = sos.submit_order_success()
     self.assertEqual("订单提交成功", text, "提交订单失败")
 def test_Play_mix_N_del(self):
     """验证删除赛事X按钮,支付流程"""
     ha = HomePage_lelun(self.driver)
     hb = HaobcChooseNumber_lelun(self.driver)
     hb1 = PaintBallChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = PaintBallConfirm_lelun(self.driver)
     hl = Login_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.single_basketball_link()  ##点击竞篮单关
     hb.Play_f()  ####点击玩法
     hb.Play_mix()  # 点击胜分差玩法
     aa = hb.Basketball_sfc_nus_X(4)  ###随机点击4场比赛
     if aa > 0:
         hb.confirm_match()  ###点击已选N场比赛
         a = hc1.NN()  ###读取删除前有多少个X按钮
         hc1.Del_n(1)  ##点击第1场赛事的X按钮
         a1 = hc1.NN()  ###读取删除后有多少个X按钮
         self.assertEqual(a - 1, a1)
         hc.submit_order_to_station_owner_button()  ####点击提交给站主
         # hl.new_user_login_tab()  # 点击新登录
         hl.login_lelun()  # 输入账号,密码
         hc.submit_order_to_station_owner_button()  # 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付
Exemplo n.º 19
0
 def test_use_recommand_num_case(self):
     '''使用推荐号码测试'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.gd_11_5_link()  #点击广东11选5链接
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     efcn.current_period()  #点击“正在开奖中”
     efcn.spread_historical_trend()  #点击进入历史趋势页
     ht = HistoricalTrend_lelun(self.driver)
     ht.use_recommend_num_button()  #点击使用推荐号码
     efcn.confirm_number_button()  #确认选号
     ecfcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     ecfcl.countdown_text()  #检查倒计时文案
     ecfcl.submit_order_button()  #提交订单给站主
     l = Login_lelun(self.driver)
     l.login_lelun()  #登录
     ecfcl.submit_order_button()  # 提交订单给站主
     cl = ConfirmLottery_lelun(self.driver)
     cl.confirm_and_pay_button()  #点击确认并支付
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     text = sos.submit_order_success()  #获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text)
     hp.Moveable_float_close()  #如果出现浮层弹框,关闭
     trade_name = sos.trade_name_text()  #获取页面商品名称文本
     self.assertIn("商品名称:乐仑炫彩-粤11选5", trade_name)
     sos.check_order_details()  #点击查看详情
     od = OrderDetails_lelun(self.driver)
     od.order_details_check()  #检查订单详情页页面元素
 def test_Play_mix_Btn_hundred(self):
     """验证100倍按钮功能,支付流程"""
     ha = HomePage_lelun(self.driver)
     hb = HaobcChooseNumber_lelun(self.driver)
     hb1 = PaintBallChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = PaintBallConfirm_lelun(self.driver)
     hc2 = SingleFootConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.single_basketball_link()  ##点击竞篮单关
     hb.Play_f()  ####点击玩法
     hb.Play_mix()  # 点击胜分差玩法
     aa = hb.Basketball_sfc_nus_X(4)  ###随机点击4场比赛
     if aa > 0:
         hb.confirm_match()  ###点击已选N场比赛
         hc1.Times_input_click()  #####点击倍数输入框
         hc1.Times_number(100)  ####点击100倍
         mul = hc2.Lottery_dgp()  ###获取倍数
         self.assertEqual('共9600元', mul)
         hc.submit_order_to_station_owner_button()  ####点击提交给站主
         # hl.new_user_login_tab()  # 点击新登录
         hl.login_lelun()  # 输入账号,密码
         hc.submit_order_to_station_owner_button()  # 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付
Exemplo n.º 21
0
 def test_machine_choose_ten_delete_one_case(self):
     '''机选10注,投注确认页点击单个删除选号按钮流程测试'''
     hp = HomePage_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.gd_11_5_link()  # 点击广东11选5链接
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     ulcn.machine_choose_button()  #点击机选
     ulcn.machine_choose_ten_button()  #机选10注
     ecfcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     ecfcl.countdown_text()  # 检查倒计时文案
     check = ecfcl.lottery_chase_throw_text()
     self.assertIn("10注1期1倍", check)
     ecfcl.delete_one_button()  #点击删除单个选号
     recheck = ecfcl.lottery_chase_throw_text()
     self.assertIn("9注1期1倍", recheck)
     ecfcl.submit_order_button()  # 提交订单给站主
     l = Login_lelun(self.driver)
     l.login_lelun()  # 登录
     ecfcl.submit_order_button()  # 提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     text = sos.submit_order_success()  # 获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text)
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐仑炫彩-粤11选5", trade_name)
     sos.check_order_details()  # 点击查看详情
     od = OrderDetails_lelun(self.driver)
     od.order_details_check()  # 检查订单详情页页面元素
 def test_immediately_sorce_lottery_case(self):
     '''在投注选号页面,点击右上角即时比分,打开赛事分析数据,点击页面下方的投注竞彩足球按钮,页面跳转到选号页,选择两场比赛,提交订单'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     l = Login_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     t = There_D_choosenumber_lelun(self.driver)
     hb = HaobcChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = PaintBallConfirm_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.single_basketball_link()  ##点击竞篮单关
     t.Instruct()  # 点击右上角的。。。
     pbcn.immediately()  #点击即时比分
     aa = pbcn.enter_analysis_page()  #点击进入赛事分析
     if aa == 1:
         hb.Race_basketball()  #点击【投注竞彩蓝球】
         aa = hb.Basketball_mix_nus_X(2)  ###随机点击8场比赛
         if aa > 0:
             hb.confirm_match()  ###点击已选N场比赛
             hc.submit_order_to_station_owner_button()  ####点击提交给站主
             hc.confirm_and_pay_button()  # 点击确认支付
             text1 = sos.submit_order_success()  #获取提交订单成功文本
             self.assertEqual('订单提交成功', text1)
Exemplo n.º 23
0
 def test_Play_bqc_Btn_fifty(self):
     """验证50倍按钮功能,支付流程"""
     ha = HomePage_lelun(self.driver)
     hb = PaintBallChooseNumber_lelun(self.driver)
     hb1 = SingleFootChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = PaintBallConfirm_lelun(self.driver)
     hc2 = SingleFootConfirmLottery_lelun(self.driver)
     hl = Login_lelun(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_lelun()  # 输入账号,密码
         hc.submit_order_to_station_owner_button()  # 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付
 def test_Event_analysis_data_case(self):
     """竞蓝选号页,点击对阵左边下拉三角,展开赛事分析数据,点击页面下方的投注竞彩篮球按钮,页面跳转到选号页"""
     ha = HomePage_lelun(self.driver)
     hb = PaintBallChooseNumber_lelun(self.driver)
     hb1 = HaobcChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = PaintBallConfirm_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hd = SubmitOrderSuccess_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.My_lottery_ticket()  # 点击我的彩票
     hl.login_lelun()  # 点击登录
     ha.homepage_link()  # 点击首页
     ha.single_basketball_link()  ##点击竞篮单关
     a = hb1.Event_analysis_data()  ##点击赛事向下箭头
     if a == 1:
         hb1.Event_analysis_data_click()  ###点击数据分析
         hb1.Race_basketball()  # 点击【投注竞彩蓝球】
         hb1.Basketball_mix_nus_X(2)  ###随机点击8场比赛
         hb.confirm_match()  ###点击已选N场比赛
         hc.submit_order_to_station_owner_button()  ####点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付
         text1 = hd.submit_order_success()  # 获取提交订单成功文本
         self.assertEqual('订单提交成功', text1)
Exemplo n.º 25
0
 def test_Play_bqc_Add_event(self):
     """验证添加/编辑赛事按钮,支付流程"""
     ha = HomePage_lelun(self.driver)
     hb = PaintBallChooseNumber_lelun(self.driver)
     hb1 = SingleFootChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = PaintBallConfirm_lelun(self.driver)
     hl = Login_lelun(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()  ###点击编辑/添加赛事
         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_lelun()  # 输入账号,密码
         hc.submit_order_to_station_owner_button()  # 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付
 def test_eight_note_Times_input(self):
     """任选8场比赛,在投注确认页面,修改倍数为10000倍"""
     ha = HomePage_lelun(self.driver)
     hb = HaobcChooseNumber_lelun(self.driver)
     hc2 = SingleFootConfirmLottery_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = PaintBallConfirm_lelun(self.driver)
     hl = Login_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.single_basketball_link()  ##点击竞篮单关
     hb.Play_f()  ####点击玩法
     hb.Play_mix()  # 点击胜分差玩法
     aa = hb.Basketball_sfc_nus_X(8)  ###随机点击4场比赛
     if aa > 0:
         hb.confirm_match()  ###点击已选N场比赛
         hc1.Times_input(10000)  #####修改倍数为3
         mul = hc2.Lottery_dgp()  ###获取倍数
         a = 24 * aa * 10000
         self.assertEqual('共%d元' % a, mul)
         hc.submit_order_to_station_owner_button()  ####点击提交给站主
         # hl.new_user_login_tab()  # 点击新登录
         hl.login_lelun()  # 输入账号,密码
         hc.submit_order_to_station_owner_button()  # 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付
Exemplo n.º 27
0
 def test_fivestar_choose_double_case(self):
     '''五星直选玩法,每位各选多个号码并提交订单流程测试'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     l = Login_lelun(self.driver)
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.cqssc_link()  # 点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_lelun(self.driver)
     ssc_cn.play_mode()  # 选择模式
     ssc_cn.five_star()  # 选择五星
     ssc_cn.wanwei_random(2)
     ssc_cn.qianwei_random(2)
     ssc_cn.baiwei_random(2)
     self.driver.execute_script("window.scroll(0,300)")
     ssc_cn.shiwei_random(2)
     ssc_cn.gewei_random(2)
     aa = efcn.total_buy_text()
     self.assertIn("32注 ", aa)
     efcn.confirm_number_button()  # 点击确认选号
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     text = sos.submit_order_success()  # 获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text)
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐秀赢球-重庆时时彩", trade_name)
 def test_delete_one_event_case(self):  ###BUG修复中
     """验证单个删除赛事X按钮,流程测试"""
     ha = HomePage_lelun(self.driver)
     hb = PaintBallChooseNumber_lelun(self.driver)
     hb1 = HaobcChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = PaintBallConfirm_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hd = SubmitOrderSuccess_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.My_lottery_ticket()  # 点击我的彩票
     hl.login_lelun()  # 点击登录
     ha.homepage_link()  # 点击首页
     ha.single_basketball_link()  ##点击竞篮单关
     hb.Play_f()  # 选择玩法
     hb.Play_mix()  ###点击混合投注
     aa = hb1.Basketball_sfc_nus_X(3)  ###随机点击4场比赛
     if aa == 3:
         hb.confirm_match()  ###点击已选N场比赛
         a = hc1.NN()  ###读取删除前有多少个X按钮
         hc1.Del_n(1)  ##点击删除第一场赛事
         a1 = hc1.NN()  ###读取删除后有多少个X按钮
         self.assertEqual(a - 1, a1)
         hc.submit_order_to_station_owner_button()  # 提交订单给站主
         hc.confirm_and_pay_button()  # 点击确认支付
         text1 = hd.submit_order_success()  # 获取提交订单成功文本
         self.assertEqual('订单提交成功', text1)
Exemplo n.º 29
0
 def test_99_times_case(self):
     """选择9场,倍数99倍"""
     ha = HomePage_lelun(self.driver)
     hb = RX9C_choosenumber_lelun(self.driver)
     hc = RX9C_ConfirmLottery_lelun(self.driver)
     hc1 = ConfirmLottery_lelun(self.driver)
     hc2 = ArrangeFiveConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hd = LessPaySucess_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.victory_defeat_14_link()  # 点击胜负14场
     a = hb.Games_nus(14, 1)  ###点击9展示的赛事结果
     if a == 1:
         hb.Confirm_pick()  ###点击确认选号
         hc1.throw_times_input(99)  ##输入倍数99
         mur = hc1.throw_time_text()  ##读取倍数
         self.assertEqual('99', mur)
         mur2 = hc1.lottery_number_text()  ##读取注数
         self.assertEqual('1', mur2)
         hc.Submit_station()  ####点击提交给站主
         hl.login_lelun()  # 输入账号,密码
         hc.Submit_station()  # 点击提交给站主
         hc1.confirm_and_pay_button()  # 点击确认支付()
         mur1 = hd.assect_pay()  ##读取支付状态文本
         self.assertEqual('订单提交成功', mur1)
 def test_Play_bqc_Btn_ten(self):
     """验证10倍按钮功能,支付流程"""
     ha = HomePage_lelun(self.driver)
     hb = PaintBallChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = PaintBallConfirm_lelun(self.driver)
     hl = Login_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.paintball_link()  ##点击竞彩足球
     hb.Play_f()  ###点击玩法
     hb.Play_bqc()  ##点击比分
     aa = hb.Football_bqc_X(2)  ###随机点击2场比赛
     if aa > 0:
         hb.confirm_match()  ###点击已选N场比赛
         hc1.Times_input_click()  #####点击倍数输入框
         hc1.Times_number(10)  ####点击10倍
         mul = hc1.Times_display()  ###获取倍数
         self.assertEqual('10', mul)
         hc.submit_order_to_station_owner_button()  ####点击提交给站主
         # hl.new_user_login_tab()  # 点击新登录
         hl.login_lelun()  # 输入账号,密码
         hc.submit_order_to_station_owner_button()  # 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付