def test_onestar_machine_choose_five_delete_all_case(self):
     '''机选5注,投注确认页,点击【单个删除投注】图标,删除所有注数,跳转至选号页,手选复式(2注),提交订单'''
     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)
     ulcn = UnionLottoChooseNumber_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.one_star()  # 选择一星
     ulcn.machine_choose_button()  # 点击机选
     ulcn.machine_choose_five_button()  # 机选5注
     num=cl.event_count()#获取总共有多少注
     print("删除前共有%d场"%num)
     for i in range(1,(num+1)):
         cl.del_n(i)  # 选择删除第5场投注
         sleep(1)
     ssc_cn.gewei_random(2)
     efcn.confirm_number_button()#确认选号
     bb = efcl.lottery_chase_throw_text()  # 获取注数倍数
     self.assertIn("2注1期1倍", bb)
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     text = sos.submit_order_success()  # 获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text)
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐秀赢球-重庆时时彩", trade_name)
Example #2
0
 def test_Lottery_Hand_history_Recommended_number_case(self):
     """选号页历史开奖,使用推荐号码,提交订单"""
     ###点击进入大乐透进入大乐透选号页面###
     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)
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     od = OrderDetails_lelun(self.driver)
     ulcn.History()  #点击历史开奖
     ulcn.click_history()  #点击展开了的历史开奖
     lottery1 = ulcn.Recommended_nu()  # 读取推荐号码
     ulcn.Recommended_number()  #点击使用推荐号码
     ulcn.Confirm_button()  # 点击确认选号按钮
     num1 = cl.lottery_number_text()  # 获取注数
     chase = cl.chase_time_text()  # 获取追号期数
     times = cl.throw_time_text()  # 获取倍数
     self.assertEqual("111", num1 + chase + times)
     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.check_order_details()  ##点击查看订单详情
     lottery2 = od.Betting_number()  ##读取显示的投注号码
     self.assertEqual(lottery1, lottery2)
 def test_intelligently_input_periods_case(self):
     '''进入智能追号页面,输入追11期,点击【提交】提交订单'''
     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(2)  # 任选2个号
     efcn.confirm_number_button()  # 点击确认选号
     text1 = efcl.lottery_chase_throw_text()
     self.assertIn("1注1期1倍", text1)
     ssc_cl.intelligently_chase_button()  # 点击智能追号
     text2 = ssc_cl.totalIssue_num()  # 获取追号期数文本
     ssc_cl.znzh_issue_num_input(11)#输入追11期
     ssc_cl.totalIssue()  # 更新追号期数
     text = ssc_cl.totalIssue_text()
     self.assertIn(str(text2 + 1), text)  # 检查是否修改追号期数
     ssc_cl.submit_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)
 def test_onestar_machine_choose_five_delete_all_confirm_case(self):
     '''机选5注,投注确认页,点击【删除所有投注】图标,【确认】删除,页面跳转至选号页,机选一注提交订单'''
     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)
     ulcn = UnionLottoChooseNumber_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.one_star()  # 选择一星
     ulcn.machine_choose_button()  # 点击机选
     ulcn.machine_choose_five_button()  # 机选5注
     self.driver.execute_script("window.scroll(0,200)")
     cl.delete_all_num_button()  # 删除所有选号
     cl.confirm_delete_button()  # 确认删除
     cc = efcn.total_buy_text()
     self.assertIn("请至少选择1个号码", cc)
     ssc_cn.gewei_random(4)#手选复式
     efcn.confirm_number_button()  # 点击确认选号
     bb = efcl.lottery_chase_throw_text()  # 获取注数倍数
     self.assertIn("4注1期1倍", bb)
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     text = sos.submit_order_success()  # 获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text)
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐秀赢球-重庆时时彩", trade_name)
 def test_intelligently_chase_ravise_chase_input12_confirm_revise_case(self):
     '''【修改方案】输入连续追号12期,点击【确定】,【提交】提交订单'''
     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(2)  # 任选2个号
     efcn.confirm_number_button()  # 点击确认选号
     text1 = efcl.lottery_chase_throw_text()
     self.assertIn("1注1期1倍", text1)
     ssc_cl.intelligently_chase_button()  # 点击智能追号
     ssc_cl.revise_button()#点击修改方案
     ssc_cl.revise_chase_input(12)#追号的输入框输入12
     ssc_cl.revise_confirm()#点击确认修改
     text = ssc_cl.totalIssue_text()
     self.assertIn('12', text,'追号期数修改失败')  # 检查是否修改追号期数
     ssc_cl.submit_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)
Example #6
0
 def test_Lottery_Hand_choose_single_chase_throws_case(self):
     """手动选号,单式,多注多倍,提交订单"""
     ###点击进入大乐透进入大乐透选号页面###
     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)
     blcn.l_red_label5()  #任意选择5个红球
     blcn.l_bule_label2()  #任意选择2个蓝球
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ulcn.Confirm_button()  #点击确认选号按钮
     cl.chase_ticket_button()  # 点击追xx期
     blcl.additional_radio_button()  # 点击追加单选按钮
     cl.chase_ticket_button_two()  # 点击追加2期单选按钮
     cl.throw_times_input(3)  # 输入投注倍数
     num1 = cl.lottery_number_text()  #获取注数
     chase = cl.chase_time_text()  #获取追号期数
     times = cl.throw_time_text()  #获取倍数
     self.assertEqual("123", num1 + chase + times)
     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, "提交订单失败")
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     '''hp.Moveable_float_close()
 def test_singlefoot_two_choose_one_click_all(self):
     '''点击页面展示所有比赛,测试流程'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     sfcn = SingleFootChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.single_foot_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_2x1()  # 选择2选1
     aa = sfcn.jzdg_two_choose_one_click_all()  # 选择比赛
     if aa == 0:
         texxt = hp.header_text()  #获取首页顶端文本
         self.assertEqual("乐仑炫彩", texxt)
 def test_singlefoot_two_choose_one_10_case(self):
     '''选择一天中所有比赛场次流程测试'''
     ###点击进入竞彩足球选号页面###
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     sfcn = SingleFootChooseNumber_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.single_foot_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_2x1()  # 选择2选1
     aa = sfcn.jzdg_two_choose_one_choose(10)  # 选择比赛
     if aa == 0:
         texxt = hp.header_text()  #获取首页顶端文本
         self.assertEqual("乐仑炫彩", texxt)
 def test_machine_choose_continue_button_case(self):
     '''投注确认页“继续选号”按钮测试流程'''
     hp = HomePage_lelun(self.driver)
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.sd_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()  # 检查倒计时文案
     ecfcl.continue_choose_num()  # 点击“继续选号”按钮
     ulcn.machine_choose_button()  # 点击机选
     ulcn.machine_choose_one_button()  # 机选一注
     efcn.confirm_number_button()  # 确认选号
     check = ecfcl.lottery_chase_throw_text()  # 获取投注注数、追号期数、投注倍数
     self.assertIn("2注1期1倍", check)  ##验证投注注数、投注期号、投注倍数
     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)
     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()  # 检查订单详情页页面元素
Example #10
0
 def test_singlefoot_rqspf_click_all(self):
     '''点击页面展示所有比赛,测试流程'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     sfcn = SingleFootChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.single_foot_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_rqspf()  # 选择让球胜平负
     aa = sfcn.jzdg_rqspf_click_all()  # 选择比赛
     if aa == 0:
         text = sfcn.Play_dgp_text()
         self.assertIn("单关配", text)
Example #11
0
 def test_singlefoot_rqspf_10_case(self):
     '''选择一天中所有比赛场次流程测试'''
     ###点击进入竞彩足球选号页面###
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     sfcn = SingleFootChooseNumber_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.single_foot_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_rqspf()  # 选择让球胜平负
     aa = sfcn.jzdg_rqspf_choose(10)  # 选择比赛
     if aa == 0:
         text = sfcn.Play_dgp_text()
         self.assertIn("单关配", text)
 def test_options10_hand_choose11_11_case(self):
     '''广东11选5,前二直选玩法,前两位各选11个号码流程测试'''
     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期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(23, 9)  # 广东11选5前二直选
     efcn.hand_options(11)#第一位选取11个号码
     efcn.second_num_choose(11)#第二位选取11个号码
     efcn.confirm_number_button()  # 点击确认选号
Example #13
0
 def test_Play_instruction_case(self):
     """验证玩法说明"""
     ha = HomePage_lelun(self.driver)
     hb = RX9C_choosenumber_lelun(self.driver)
     hb1=Arrang_there_choosenumber_lelun(self.driver)
     hb2 = There_D_choosenumber_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.optional_9_link()  # 点击任选9场
     hb2.Instruct()##点击右上角...
     hb1.Arrang_there_instruct()##点击玩法说明
     mur = hb.Rx9c_play()
     self.assertEqual('任选9场', mur)
     hb1.Arrany_there_know()
Example #14
0
 def test_UnionLotto_Machine_choose_five_case(self):
     '''机选五注流程测试'''
     ###点击进入双色球选号页面###
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.UnionLotto_link()  # 点击双色球链接
     ####选择机选一注并确认选号####
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ulcn.machine_choose_button()  # 点击机选
     ulcn.machine_choose_five_button()  # 机选5注
     ######进入提交订单页面######
     cl = ConfirmLottery_lelun(self.driver)
     chase = cl.chase_time_text()  # 获取追号期数
     times = cl.throw_time_text()  # 获取输入的投注倍数
     lottery_num = cl.lottery_number_text()  #获取投注注数
     self.assertEqual("5", lottery_num)  #检查投注的注数为5注
     self.assertEqual("1", chase)  # 检查追号期数是否是所选期数
     self.assertEqual("1", times)  # 检查投注倍数是否是所投注倍数
     cl.submit_order_to_station_owner_button()  # 点击“提交订单给站主”按钮
     #####用户登录######
     l = Login_lelun(self.driver)
     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, "提交订单失败")
     trade_text = sos.trade_name_text()  # 获取商品名称
     self.assertIn("商品名称:乐仑炫彩-双色球", trade_text)  # 检查商品名称正确
     sos.check_order_details()  # 查看订单详情
     od = OrderDetails_lelun(self.driver)
     od.order_details_check()  # 检查订单详情页
 def test_paintball_spf_8_case(self):
     '''选择8场比赛,流程测试'''
     ###点击进入竞彩足球选号页面###
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  #选择玩法
     pbcn.Play_spf()  #选择胜平负
     aa = pbcn.spf_choose(8)  #选择比赛
     if aa == 2:
         pbcn.confirm_match()  #确认所选场次
         cl.submit_order_to_station_owner_button()  #提交订单给站主
 def test_there_D_history(self):
     """验证历史走势"""
     ha = HomePage_lelun(self.driver)
     hb = There_D_choosenumber_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.fucai_3D_link()  ###点击3D
     hb.Instruct()  ##点击右上角...
     hb.History()###点击历史投注
     mur=hb.Charts()
     if mur=='':
         self.assertEqual('a',mur)
     else:
         print("历史走势展示正常")
Example #17
0
 def test_machine_choose_five_delete_all_cancel_case(self):
     '''机选5注,投注确认页点击删除选号按钮并取消删除流程测试'''
     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_five_button()  #机选5注
     ecfcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     ecfcl.countdown_text()  # 检查倒计时文案
     check = ecfcl.lottery_chase_throw_text()
     self.assertIn("5注1期1倍", check)
     cl.delete_all_num_button()  #点击删除所有选号
     cl.cancel_delete_button()  #点击取消删除选号
     recheck = ecfcl.lottery_chase_throw_text()
     self.assertIn("5注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()  # 检查订单详情页页面元素
Example #18
0
 def test_haobc_rqsf_8_case(self):
     '''选择8场比赛,流程测试'''
     ###点击进入双色球选号页面###
     hp = HomePage_lelun(self.driver)
     hcn = HaobcChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.haobc_link()  ##点击竞篮
     hcn.Play_f()  #选择玩法
     hcn.Play_sf()  #选择胜负
     aa = hcn.sf_choose(8)  #选择比赛
     if aa == 2:
         hcn.confirm_match()  #确认所选场次
         cl.submit_order_to_station_owner_button()  #提交订单给站主
Example #19
0
 def test_option14_choose_out_case(self):
     '''广西11选5普通玩法,乐选四玩法,选取5个号码,提示“只支持单式投注”流程测试'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.gx_11_5_link()  # 点击广西11选5链接
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(24, 14)  # 选择广西11选5普通模式乐选四玩法
     efcn.hand_options(5)  # 选取5个号码
     toast = ulcn.out_of_num()  # 获取toast提示信息
     self.assertEqual("只支持单注投注", toast)
Example #20
0
 def test_dantuo_option4_choose_out_case(self):
     '''广西11选5胆拖玩法,任选四玩法,4个胆码,提示“胆码个数超过限制”流程测试'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.gx_11_5_link()  # 点击广西11选5链接
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(24, 18)  # 选择广西11选5胆拖模式任选四玩法
     efcn.hand_options(4)  # 选取4个胆码
     toast = ulcn.out_of_num()  # 获取toast提示信息
     self.assertEqual("胆码个数超过限制!", toast)
 def test_UnionLotto_Hand_re_r18b1_case(self):
     '''重复选号取消选中测试'''
     ###点击进入双色球选号页面###
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.UnionLotto_link()  # 点击双色球链接
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ulcn.u_rechoose_red_label18()  #随机选中18个红球,再取消选中的红球
     ulcn.u_red_label18()  #重新选取18个红球
     ulcn.u_bule_label1()  #选取1个蓝球
     ulcn.Confirm_button()  #点击确认选号按钮
     cl = ConfirmLottery_lelun(self.driver)
     cl.submit_order_to_station_owner_button()  # 提交订单给站主
     l = Login_lelun(self.driver)  #####用户登录######
     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 #22
0
 def test_Lottery_DanTuo_4_18_1_11_case(self):
     '''胆拖模式前区选择4个胆码,18个拖码,后区选择1个胆码,11个拖码测试流程'''
     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_four_eighteen()  # 红球选取4个胆码18个拖码
     blcn.l_bule_one_eleven()  # 后区选择1个胆码11个拖码
     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 #23
0
 def test_dantuo_option3_choose_2_2_case(self):
     '''广西11选5胆拖玩法,任选三玩法,2个胆码,2个拖码流程测试'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.gx_11_5_link()  # 点击广西11选5链接
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(24, 17)  # 选择广西11选5胆拖模式任选三玩法
     efcn.dantuo_choose_num(2, 2)  # 选取2个胆码2个拖码
     total = efcn.total_buy_text()  # 获取注数文本
     self.assertIn("2", total)  # 检查2注
     efcn.confirm_number_button()  # 点击确认选号
Example #24
0
 def test_option12_hand_choose1_1_1_case(self):
     '''山东11选5,前三直选玩法,前三位各选一个号码测试流程'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.sd_11_5_link()  # 点击山东11选5链接
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(22, 11)  # 广西11选5前三直选
     efcn.hand_options(1)  # 第一位选取1个号码
     efcn.second_num_choose(1)  # 第二位选取1个号码
     efcn.third_num_choose(1)#第三位选取1个号码
     efcn.confirm_number_button()  # 点击确认选号
Example #25
0
 def test_single_basketball_sf_8_case(self):
     '''选择8场比赛,流程测试'''
     ###点击进入双色球选号页面###
     hp = HomePage_lelun(self.driver)
     hcn = HaobcChooseNumber_lelun(self.driver)
     sbcn = SingleBasketballChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.single_basketball_link()  ##点击竞篮单关单关
     hcn.Play_f()  #选择玩法
     hcn.Play_sf()  #选择胜负
     aa = sbcn.jldg_sf_choose(8)  #选择比赛
     if aa > 0:
         hcn.confirm_match()  #确认所选场次
         cl.submit_order_to_station_owner_button()  #提交订单给站主
 def test_dantuo_option4_choose_1_4_case(self):
     '''广东11选5胆拖玩法,任选四玩法,1个胆码,4个拖码流程测试'''
     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期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(23, 18)  # 选择广东11选5胆拖模式任选四玩法
     efcn.dantuo_choose_num(1, 4)  # 选取1个胆码4个拖码
     total = efcn.total_buy_text()  # 获取注数文本
     self.assertIn("4", total)  # 检查4注
     efcn.confirm_number_button()  # 点击确认选号
 def test_many_note_many_double_Continue_entry_case(self):
     """多注多倍,继续选号,复式"""
     ha = HomePage_lelun(self.driver)
     hb = Seven_color_choosenumber_lelun(self.driver)
     hb2 = There_D_choosenumber_lelun(self.driver)
     hb1 = 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.colorful_star_link()  ###点击七星彩
     hb.Seven_nuos(1)  # 在一位随机点击1个数字
     hb.Seven_nuts(2)  # 在二位随机点击2个数字
     hb.Seven_nuths(1)  # 在三位随机点击1个数字
     hb.Seven_nufs(1)  ##在四位随机点击1个数字
     hb.Seven_nufis(1)  # 在五位随机点击1个数字
     hb.Seven_nuss(1)  # 在六位随机点击1个数字
     hb.Seven_nuses(1)  # 在七位随机点击1个数字
     hb1.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.Coun_nu()  ###点击继续选号
     hb.Seven_nuos(2)  # 在一位随机点击1个数字
     hb.Seven_nuts(1)  # 在二位随机点击1个数字
     hb.Seven_nuths(2)  # 在三位随机点击1个数字
     hb.Seven_nufs(1)  ##在四位随机点击1个数字
     hb.Seven_nufis(1)  # 在五位随机点击1个数字
     hb.Seven_nuss(1)  # 在六位随机点击1个数字
     hb.Seven_nuses(1)  # 在七位随机点击1个数字
     hb1.Confirm_nu()  # 点击确认选号按钮
     mur = hc1.Test_multiple_show()  ##读取倍数
     self.assertEqual('5', mur)
     mur1 = hc1.Test_note_nu()  ##读取注数
     self.assertEqual('6', mur1)
     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)
 def test_play_instruction_open_close_case(self):
     '''在投注选号页面,点击右上角玩法说明,可以打开和关闭'''
     ha = HomePage_lelun(self.driver)
     hb = HaobcChooseNumber_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     l = Login_lelun(self.driver)
     t = There_D_choosenumber_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     ha.homepage_link()  # 点击首页
     ha.haobc_link()  #点击竞彩蓝球
     t.Instruct()  #点击右上角的。。。
     hb.Play_instruction()  #点击玩法说明
     t.There_D_know()  #点击我知道了
Example #29
0
 def test_seven_color_Del_all_nu_ok_case(self):
     """验证确认投注页面,点击删除选号,点击确定"""
     ha = HomePage_lelun(self.driver)
     hb = RX9C_choosenumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = PaintBallConfirm_lelun(self.driver)
     hc2 = PaintBallChooseNumber_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.Pf_del_icon()  ###点击清除所有选号
         mur = hc2.Play_fb()
         self.assertEqual('期\n号', mur)
 def test_UnionLotto_unitary_del_X(self):
     """左边X按钮,能够删除所选号码"""
     ha = HomePage_lelun(self.driver)
     hb = UnionLottoChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = PaintBallChooseNumber_lelun(self.driver)
     hd = PaintBallConfirm_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.UnionLotto_link()  # 点击双色球链接
     hb.u_red_label6()  # 任意选择6个红球
     hb.u_bule_label1()  # 任意选择1个蓝球
     hb.Confirm_button()  # 点击确认选号按钮
     hc.Del_x()  ##点击左侧X按钮
     mur1 = hc1.Play_fb()
     self.assertEqual('玩\n法', mur1)