def test_Lottery_Machine_Choose_ten_case(self):
     '''大乐透机选10注,追加10期测试'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()  # 关闭悬浮窗口
     hp.Lottery_link()  # 点击大乐透链接
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ulcn.machine_choose_button()  # 点击机选按钮
     ulcn.machine_choose_ten_button()  # 点击机选5注
     cl = ConfirmLottery_lelun(self.driver)
     blcl = BigLotteryConfirmLottery_lelun(self.driver)
     cl.chase_ticket_button()  # 点击追xx期
     blcl.additional_radio_button()  # 点击追加单选按钮
     cl.chase_ticket_button_ten()  # 点击追加10期单选按钮
     blcl.l_throw_times_button_sub(3)  #输入投注倍数,点击“-”按钮
     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, "提交订单失败")
     # 返回首页
     sos.return_home()
Example #2
0
 def test_Play_sfc_Pf_bouns(self):
     """验证过关功能,支付流程"""
     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.haobc_link()  ##点击竞彩蓝球
     hb.Play_f()  ####点击玩法
     hb.Play_sfc()  # 点击胜分差玩法
     aa = hb.Basketball_sfc_nus_X(4)  ###随机点击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()  # 点击确认支付
 def test_Play_zjq_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_zq()  ###点击总进球
     aa = hb1.Paintball_single_zjq_nus_X(4)  ###随机点击4场比赛
     if aa > 0:
         hb.confirm_match()  ###点击已选N场比赛
         hc1.Pf_del_icon()
         hc.confirm_delete_button()
         hb1.Paintball_single_zjq_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()  # 点击确认支付
 def test_UnionLotto_DanTuo_many_case(self):
     """增加倍数和期数"""
     ha = HomePage_lelun(self.driver)
     hb = UnionLottoChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hd = SubmitOrderSuccess_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.UnionLotto_link()  # 点击双色球链接
     hb.DanTuo_mode()  # 选择胆拖模式
     hb.u_red_five_two()  # 红球选取5个胆码2个拖码
     hb.u_bule_one()  # 选取一个蓝球
     hb.Confirm_button()  # 确认选号
     hc.throw_times_input(13)
     hc.chase_ticket_button()  # 点击追xx期
     hc.chase_ticket_button_twenty()  # 点击追20期
     mur = hc.lottery_number_text()  # 读取注数
     self.assertEqual('2', mur)  ##断言
     nu = hc.throw_time_text()  ###倍数
     self.assertEqual('13', nu)
     chase_time_text = hc.chase_time_text()  # 获取追号期数
     self.assertIn("20", chase_time_text)  # 检查追号期数为20期
     hc.submit_order_to_station_owner_button()
Example #5
0
 def test_Play_sfc_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.haobc_link()  ##点击竞彩蓝球
     hb.Play_f()  ####点击玩法
     hb.Play_sfc()  # 点击胜分差玩法
     aa = hb.Basketball_sfc_nus_X(4)  ###随机点击4场比赛
     if aa > 0:
         hb.confirm_match()  ###点击已选N场比赛
         a = hc1.A_nn()  ###读取删除前有多少个X按钮
         hc1.Del_n(1)  ##点击第1场赛事的X按钮
         a1 = hc1.A_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()  # 点击确认支付
 def test_jxks_many_note_many_double_pause_znxh_case(self):
     """多注多倍号码,机选,智能选号"""
     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_sthdx()  ##点击三同号单选
     hb.sthdx_choosenumber_nu(2)  ##点击2注
     hb1.confirm_number_button()  ###点击确认选号
     hc1.throw_times_input(13)  ##输入倍数13倍
     hc1.machine_choose_one()  ##点击机选
     mur = hc1.lottery_chase_throw_text()  # 读取注数
     self.assertEqual('3注1期13倍共78元', 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)
 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_sthdx()  ##点击三同号单选
     hb.sthdx_choosenumber_nu(1)  ##点击1注
     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)
Example #8
0
 def test_LotteryOderDetails_continue_buy_case(self):
     '''提交订单成功页,点击【继续购买该方案】,页面跳转至投注确认页'''
     ###点击进入大乐透进入大乐透选号页面###
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     l = Login_lelun(self.driver)
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.homepage_link()  # 点击首页
     hp.Moveable_float_close()
     hp.Lottery_link()  # 点击大乐透链接
     blcn = BigLotteryChooseNum_lelun(self.driver)
     blcl = BigLotteryConfirmLottery_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     od = OrderDetails_lelun(self.driver)
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     blcn.l_red_label5()  #选择5个红球
     blcn.l_bule_label2()  #选择2个蓝球
     ulcn.Confirm_button()  # 点击确认选号按钮
     mu1 = cl.Select_number()  #读取投注确认页所选号码
     cl.submit_order_to_station_owner_button()  #提交订单给站主按钮
     cl.confirm_and_pay_button()  #点击确认支付
     hp.Moveable_float_close()
     sos.check_order_details()  #点击查看订单详情
     mu2 = od.Betting_nu()  #读取订单详情页号码
     self.assertEqual(mu1, mu2, '订单详情页显示有误')
     od.Scheme()  #点击继续购买此方案
     mur = cl.confirm_num_page_text()
     self.assertEqual('提交订单给站主', mur)
Example #9
0
 def test_SuccessPage_continue_buy_case(self):
     '''订单详情页,点击【点击投注大乐透】,页面跳转至选号页面,选择一注,提交订单'''
     ###点击进入大乐透进入大乐透选号页面###
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     l = Login_lelun(self.driver)
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.homepage_link()  # 点击首页
     hp.Moveable_float_close()
     hp.Lottery_link()  # 点击大乐透链接
     blcn = BigLotteryChooseNum_lelun(self.driver)
     blcl = BigLotteryConfirmLottery_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     od = OrderDetails_lelun(self.driver)
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     blcn.l_red_label5()  # 选择5个红球
     blcn.l_bule_label2()  # 选择2个蓝球
     ulcn.Confirm_button()  # 点击确认选号按钮
     mu1 = cl.Select_number()  # 读取投注确认页所选号码
     cl.submit_order_to_station_owner_button()  # 提交订单给站主按钮
     cl.confirm_and_pay_button()  # 点击确认支付
     hp.Moveable_float_close()
     sos.Continue_buy()  #点击继续购买此彩种
     blcn.l_red_label5()  # 选择5个红球
     blcn.l_bule_label2()  # 选择2个蓝球
     ulcn.Confirm_button()  # 点击确认选号按钮
Example #10
0
 def test_Lottery_multiphase_machine_choose5_case(self):
     """选号页面,右上方隐藏的多期机选,5期提交订单"""
     ###点击进入大乐透进入大乐透选号页面###
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.Lottery_link()  #点击大乐透链接
     blcn = BigLotteryChooseNum_lelun(self.driver)
     blcl = BigLotteryConfirmLottery_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     od = OrderDetails_lelun(self.driver)
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ulcn.There_clock()  #点击。。。
     ulcn.Many_pause()  #点击多期机选
     ulcn.many_machine_choose(5)  #点击5期
     text1 = ulcn.many_machine_choose_text()
     self.assertIn("1注 5期 1倍", text1, '多期机选有误')
     ulcn.Many_pause_confirm()  #点击多期机选页的【提交订单】
     #####用户登录######
     l = Login_lelun(self.driver)
     l.login_lelun()
     ulcn.There_clock()  # 点击。。。
     ulcn.Many_pause()  # 点击多期机选
     ulcn.many_machine_choose(5)  # 点击5期
     ulcn.Many_pause_confirm()  # 点击多期机选页的【提交订单】
     cl.confirm_and_pay_button()  # 点击“确认并支付”按钮
     '''断言验证提交订单成功'''
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.Moveable_float_close()
     text = sos.submit_order_success()
     self.assertEqual("订单提交成功", text, "提交订单失败")
Example #11
0
 def test_Lottery_multiphase_machine_single_radio_case(self):
     """选号页面,右上方隐藏的多期机选,点击追加单选按钮,提交订单"""
     ###点击进入大乐透进入大乐透选号页面###
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     l = Login_lelun(self.driver)
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.Moveable_float_close()
     hp.Lottery_link()  #点击大乐透链接
     blcn = BigLotteryChooseNum_lelun(self.driver)
     blcl = BigLotteryConfirmLottery_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     od = OrderDetails_lelun(self.driver)
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ulcn.There_clock()  #点击。。。
     ulcn.Many_pause()  #点击多期机选
     ulcn.many_chase_radio()  #点击多期机选的单选按钮
     text1 = ulcn.many_machine_choose_text()
     ulcn.Many_pause_confirm()  #点击多期机选页的【提交订单】
     cl.confirm_and_pay_button()  # 点击“确认并支付”按钮
     '''断言验证提交订单成功'''
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.Moveable_float_close()
     text = sos.submit_order_success()
     self.assertEqual("订单提交成功", text, "提交订单失败")
Example #12
0
 def test_Lottery_re_r18b1_case(self):
     '''大乐透重复选号取消选中测试'''
     ###点击进入大乐透选号页面###
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.Lottery_link()  # 点击大乐透链接
     blcn = BigLotteryChooseNum_lelun(self.driver)
     blcn.l_rechoose_red_label18()  #随机选中18个红球,再取消选中的红球
     blcn.l_red_label18()  #重新选取18个红球
     blcn.l_bule_label2()  #选取2个蓝球
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     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, "提交订单失败")
Example #13
0
 def test_Lottery_Hand_r18b16_case(self):
     '''大乐透选取18个红球,12个蓝球提示“投注金额不能大于100000元”测试'''
     ###点击进入大乐透选号页面###
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.Lottery_link()  # 点击大乐透链接
     blcn = BigLotteryChooseNum_lelun(self.driver)
     blcn.l_red_label18()  # 选取18个红球
     blcn.l_bule_label12()  #选取12个蓝球
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     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()  #点击确认并支付按钮
     text = cl.out_max_pay()  #获取超额提示信息文本
     self.assertIn("投注金额不能大于100000元", text)
     cl.re_selection_num()  #点击重新选号链接
     blcn.l_bule_label12()  #取消选中的12个蓝球
     blcn.l_bule_label2()  #选取2个蓝球
     ulcn.Confirm_button()  #点击确认选号
     sleep(2)  #系统限制,操作订单不能过于频繁
     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, "提交订单失败")
Example #14
0
 def test_Lottery_Hand_r19_case(self):
     '''大乐透选取19个红球,第19个红球提示“红球不能超过18个”测试'''
     ###点击进入大乐透选号页面###
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.Lottery_link()  # 点击大乐透链接
     blcn = BigLotteryChooseNum_lelun(self.driver)
     blcn.l_red_label19()  # 选取19个红球
     text = blcn.out_of_num()  #获取超过18个红球时的toast提示信息
     self.assertIn("红球不能超过18个", text)
     blcn.l_bule_label2()  #选取2个蓝球
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     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_jxks_choose_all_case(self):
     """验证选号页,选号功能"""
     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_sthdx()  ##点击三同号单选
     hb.sthdx_choosenumber_nu(6)  ##点击三同号全部选号
     hb.sthdx_choosenumber_nu(6)  ##取消三同号全部选号
     hb.sthdx_choosenumber_nu(1)  ##点击1注
     hb1.confirm_number_button()  ###点击确认选号
     mur = hc1.lottery_chase_throw_text()  # 读取注数
     self.assertEqual('1注1期1倍共2元', mur)
     hc1.submit_order_button()  # 点击提交给站主
     # hl.new_user_login_tab()  # 点击新登录
     hl.login_lelun()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
Example #16
0
 def test_Lottery_Hand_r5b12_case(self):
     """大乐透手选5个红球12个蓝球购买流程测试"""
     ###点击进入大乐透进入大乐透选号页面###
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.Lottery_link()  # 点击大乐透链接
     blcn = BigLotteryChooseNum_lelun(self.driver)
     blcn.l_red_label5()  # 任意选择5个红球
     blcn.l_bule_label12()  # 任意选择12个蓝球
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     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_jxks_many_note_many_double_znzh_tj_case(self):
     """多注多倍号码,智能追号,提交"""
     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_sthdx()  ##点击三同号单选
     hb.sthdx_choosenumber_nu(2)  ##点击2注
     hb1.confirm_number_button()  ###点击确认选号
     hc1.throw_times_input(13)  ##输入倍数13倍
     mur = hc1.lottery_chase_throw_text()  # 读取注数
     self.assertEqual('2注1期13倍共52元', mur)
     ssc_cl.intelligently_chase_button()  # 点击智能追号
     ssc_cl.submit_button()  # 点击提交按钮
     hl.login_lelun()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
 def test_mix_lottery_case(self):
     '''多注(复式、单式组合)选号,提交订单'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     efcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     l = Login_lelun(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.gd_11_5_link()  # 点击广东11选5链接
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(23, 1)  # 广东11选5任选二
     efcn.hand_options(2)  # 任选两个号
     efcn.confirm_number_button()  # 点击确认选号
     efcl.continue_choose_num()  # 点击继续选号
     efcn.hand_options(3)  # 任选两个号码
     efcn.confirm_number_button()  # 点击确认选号
     efcl.submit_order_button()  # 点击提交订单给站主
     l.login_lelun()  # 点击登录
     efcl.submit_order_button()  # 点击提交订单给站主
     text1=efcl.lottery_chase_throw_text()#获取期数和投注倍数
     self.assertIn("4注1期1倍",text1)
     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("商品名称:乐仑炫彩-粤11选5", trade_name)
 def test_jxks_many_note_X_case(self):
     """多注号码,点击左边X按钮"""
     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_sthdx()  ##点击三同号单选
     hb.sthdx_choosenumber_nu(1)  ##点击1注
     hb1.confirm_number_button()  ###点击确认选号
     hc1.machine_choose_one()  ##点击机选
     mur = hc1.lottery_chase_throw_text()  # 读取注数
     self.assertEqual('2注1期1倍共4元', mur)
     hc.n_event_count()  ##点击第1场赛事的X按钮
     mur = hc1.lottery_chase_throw_text()  # 读取注数
     self.assertEqual('1注1期1倍共2元', 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_recommendation_many_lottery_many_times_case(self):
     '''选号页面,点开历史开奖,使用推荐号码投注(多注多倍),提交订单'''
     hp = HomePage_lelun(self.driver)
     tD = There_D_choosenumber_lelun(self.driver)
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     od = OrderDetails_lelun(self.driver)
     l =Login_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.gd_11_5_link()  # 点击广东11选5链接
     efcn.spread_mode_button()#展开玩法
     efcn.mode_choose(23, 1)  # 广东11选5任选二
     ulcn.There_clock()  # 点击选号页的。。。
     efcn.history_trend()#点击历史走势
     efcn.recommendation_choose_num(4)#选择两个号码
     efcn.use_recommendation()#点击使用推荐号码
     efcn.confirm_number_button()  # 点击确认选号
     num1 = efcl.Ele_five_select_number()#获取投注确认页的选号
     efcl.submit_order_button()  # 点击提交订单给站主
     l.login_lelun()  # 点击登录
     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("商品名称:乐仑炫彩-粤11选5", trade_name)
     sos.check_order_details()#点击查看订单详情
     num2 = od.Ele_five_betting_nu()#获取订单详情页的号码
     self.assertEqual(num1,num2)
 def test_jxks_many_note_many_double_Continue_case(self):
     """多注多倍,继续选号"""
     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)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.guangxi_express_three_link()  # 点击广西快三
     hb.play_jxks_sthdx()  ##点击三同号单选
     hb.sthdx_choosenumber_nu(5)  ##点击5注
     hb1.confirm_number_button()  ###点击确认选号
     hc.Button_add()  # 点击倍数+号
     hc.Cont()  ###点击继续选号
     hb.sthdx_choosenumber_nu(1)  ##点击1注
     hb1.confirm_number_button()  ###点击确认选号
     mur = hc1.lottery_chase_throw_text()  # 读取注数
     self.assertEqual('6注1期2倍共24元', mur)
     hc1.submit_order_button()  # 点击提交给站主
     hl.login_lelun()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc2.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
 def test_Investment_risk_case(self):
     '''投注确认页面,点击购彩风险,能够打开和关闭'''
     hp = HomePage_lelun(self.driver)
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     od = OrderDetails_lelun(self.driver)
     l = Login_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.gd_11_5_link()  # 点击广东11选5链接
     efcn.spread_mode_button()  # 展开玩法
     efcn.mode_choose(23, 1)  # 广东11选5任选二
     efcn.hand_options(2)  # 任选两个号
     sleep(2)
     efcn.confirm_number_button()  # 点击确认选号
     num1 = efcl.Ele_five_select_number()  # 获取投注确认页的选号
     cl.Risk()#点击《风险提示》
     cl.Risk_know()#点击《我知道了》
     efcl.submit_order_button()  # 点击提交订单给站主
     l.login_lelun()  # 点击登录
     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("商品名称:乐仑炫彩-粤11选5", trade_name)
     sos.check_order_details()  # 点击查看订单详情
     num2 = od.Ele_five_betting_nu()  # 获取订单详情页的号码
     self.assertEqual(num1, num2)
Example #23
0
 def test_single_basketball_sf_edit_event_case(self):
     '''验证投注确认页编辑赛事按钮测试流程'''
     hp = HomePage_lelun(self.driver)
     hcn = HaobcChooseNumber_lelun(self.driver)
     sbcn = SingleBasketballChooseNumber_lelun(self.driver)
     hc = HaobcConfirm_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.single_basketball_link()  ##点击竞篮单关
     hcn.Play_f()  # 选择玩法
     hcn.Play_sf()  # 选择胜负
     aa = sbcn.jldg_sf_choose(1)  # 选择比赛
     if aa == 2:
         hcn.confirm_match()  # 点击确认赛事
         hc.edit_event()  #点击编辑赛事
         bb = sbcn.jldg_sf_edit_event(1)  #选择1场比赛
         if bb == 1:
             print("暂无赛事,已返回")
             ###返回首页的检查点
         if bb == 2:
             hcn.confirm_match()  # 点击确认赛事
             #投注页获取注数的检查点,应该为2注1倍
         if bb == 0:  #只有一场的时候
             print("我已进入竞足单关")
 def test_singele_lottery_case(self):
     '''单式多注,进入智能追号页面,默认追期,提交订单'''
     hp = HomePage_lelun(self.driver)
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     ssc_cl = CQSSCConfirmLottery_lelun(self.driver)
     od = OrderDetails_lelun(self.driver)
     l = Login_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 登录
     hp.homepage_link()  # 点击首页
     hp.Moveable_float_close()
     hp.gd_11_5_link()  # 点击广西11选5链接
     efcn.spread_mode_button()  # 展开玩法
     efcn.mode_choose(23, 1)  # 广东11选5任选二
     ulcn.machine_choose_button()#点击机选
     ulcn.machine_choose_five_button()#点击机选5注
     text1 = efcl.lottery_chase_throw_text()
     self.assertIn("5注1期1倍", text1)
     ssc_cl.intelligently_chase_button()  # 点击智能追号
     ssc_cl.submit_button()  # 点击提交订单
Example #25
0
 def test_Play_sfc_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)
     hl = Login_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.haobc_link()  ##点击竞彩蓝球
     hb.Play_f()  ####点击玩法
     hb.Play_sfc()  # 点击胜分差玩法
     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 = hc1.Times_display()  ###获取倍数
         self.assertEqual('100', 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_many_lottery_many_times_case(self):
     '''复式多注,进入智能追号页面,默认追期,提交订单'''
     hp = HomePage_lelun(self.driver)
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     ssc_cl = CQSSCConfirmLottery_lelun(self.driver)
     od = OrderDetails_lelun(self.driver)
     l = Login_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 登录
     hp.homepage_link()  # 点击首页
     hp.Moveable_float_close()
     hp.gd_11_5_link()  # 点击广东11选5链接
     efcn.spread_mode_button()  # 展开玩法
     efcn.mode_choose(23, 1)  # 广东11选5任选二
     efcn.hand_options(4)  # 任选4个号
     efcn.confirm_number_button()  # 点击确认选号
     text1 = efcl.lottery_chase_throw_text()
     self.assertIn("6注1期1倍",text1)
     efcl.continue_choose_num()#点击继续选号
     efcn.hand_options(4)#点击任选4个号码
     efcn.confirm_number_button()  # 点击确认选号
     text2 = efcl.lottery_chase_throw_text()
     self.assertIn("12注1期1倍", text2)
     ssc_cl.intelligently_chase_button()  # 点击智能追号
     ssc_cl.submit_button()  # 点击提交订单
 def test_Play_zjq_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_zq()  ###点击总进球
     aa = hb1.Paintball_single_zjq_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_jxks_many_note_many_double_pause_case(self):
     """多注多倍号码,机选"""
     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_sthdx()  ##点击三同号单选
     hb.sthdx_choosenumber_nu(5)  ##点击5注
     hb1.confirm_number_button()  ###点击确认选号
     hc1.throw_times_input(13)  ##输入倍数13倍
     hc1.machine_choose_one()  ##点击机选
     mur = hc1.lottery_chase_throw_text()  # 读取注数
     self.assertEqual('6注1期13倍共156元', 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_Play_zjq_Times_input(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)
     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_zq()  ###点击总进球
     aa = hb1.Paintball_single_zjq_nus_X(2)  ###随机点击2场比赛
     if aa > 0:
         hb.confirm_match()  ###点击已选N场比赛
         hc1.Times_input(3)  #####修改倍数为3
         mul = hc2.Times_display_pbs()  ###获取倍数
         self.assertIn('3倍', 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_Lottery_Machine_delete_all_num_cancel(self):
     '''测试提交订单页删除所有选号按钮,取消删除'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()  # 关闭悬浮窗口
     hp.Lottery_link()  # 点击大乐透链接
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ulcn.machine_choose_button()  # 点击机选按钮
     ulcn.machine_choose_five_button()  # 点击机选5注
     cl = ConfirmLottery_lelun(self.driver)
     cl.delete_all_num_button()  # 点击删除所有选号按钮
     cl.cancel_delete_button()  # 点击取消删除按钮
     '''断言验证取消删除成功'''
     confirm_catchectic_text = cl.confirm_num_page_text()
     self.assertEqual("提交订单给站主", confirm_catchectic_text)
     print("我已放弃删除,回到了" + confirm_catchectic_text + "页")
     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, "提交订单失败")