def test_Play_zjq_choosenumber_too_case(self):
     """验证选号页面点击2场赛事,支付流程,若运行不成功,查看是否点击重复的场次"""
     ha = HomePage_lelun(self.driver)
     hb = PaintBallChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.paintball_link()  ###点击竞彩足球
     hb.Play_f()  ####点击玩法
     hb.Play_zq()  ##点击总进球
     aa = hb.Football_zjq_nus_X(2)  ####随机点击2场赛事
     if aa >1:
         mul = hb.Text_confirm_loc()
         self.assertEqual('已选2场比赛', 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()  # 点击确认支付
Esempio n. 2
0
 def test_singlefoot_rqspf_2_case(self):
     '''选择两场比赛进行投注,流程测试'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     sfcn = SingleFootChooseNumber_lelun(self.driver)
     sfcl = SingleFootConfirmLottery_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     l = Login_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.single_foot_link()  ###点击进入竞足单关选号页面###
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_rqspf()  # 选择让球胜平负模式
     aa = sfcn.jzdg_rqspf_choose(2)  # 选择两场比赛
     if aa == 2:
         pbcn.confirm_match()  # 确认场次
         text1 = sfcl.lottery_times_text()  # 获取投注倍数文本
         self.assertIn("2注5倍 ", text1)
     if aa == 0:
         text = sfcn.Play_dgp_text()
         self.assertIn("单关配", text)
 def test_Confirm_nu_case(self):
     '''验证点击2次确认选号按钮,支付流程'''
     ha = HomePage_lelun(self.driver)
     hb = Seven_color_choosenumber_lelun(self.driver)
     hb2 = ArrangeFiveChooseNumber_lelun(self.driver)
     hb1 = UnionLottoChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = ArrangeFiveConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.colorful_star_link()  ###点击七星彩
     hb2.Confirm_nu()
     hb2.Confirm_nu()  ######点击2次确认选号
     mur = hc1.Test_note_nu()
     self.assertEqual('1', 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()  # 点击确认支付
 def test_many_note_many_double_pause_five_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.Pause_five()  ###点击机选五注
     mur = hc1.Test_multiple_show()  ##读取倍数
     self.assertEqual('5', mur)
     mur1 = hc1.Test_note_nu()  ##读取注数
     self.assertEqual('7', 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)
Esempio n. 5
0
 def test_UnionLotto_Machine_choose_ten__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_ten_button()  # 机选10注
     ######进入提交订单页面######
     cl = ConfirmLottery_lelun(self.driver)
     chase = cl.chase_time_text()  # 获取追号期数
     times = cl.throw_time_text()  # 获取输入的投注倍数
     lottery_num = cl.lottery_number_text()  # 获取投注注数
     self.assertEqual("10", lottery_num)  # 检查投注的注数为10注
     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)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     text = sos.submit_order_success()
     self.assertEqual("订单提交成功", text, "提交订单失败")
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     trade_text = sos.trade_name_text()  # 获取商品名称
     self.assertIn("商品名称:乐仑炫彩-双色球", trade_text)  # 检查商品名称正确
     sos.check_order_details()  # 查看订单详情
     od = OrderDetails_lelun(self.driver)
     od.order_details_checks()  # 检查订单详情页
Esempio n. 6
0
 def test_UnionLotto_Machine_input_three_times_add_case(self):
     '''输入投3倍,再点击+流程测试'''
     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_one_button()  # 机选1注
     ulcn.Confirm_button()  # 确认选号
     cl = ConfirmLottery_lelun(self.driver)
     cl.throw_times_input("3")  #输入投注倍数为3倍
     lottery_number_text = cl.lottery_number_text()  # 获取投注注数文本
     self.assertIn("1", lottery_number_text)  # 检查投注注数为1注
     throw_times = cl.throw_time_text()  #获取投注倍数定位
     self.assertIn("3", throw_times)  #检查投注倍数为3倍
     cl.u_throw_times_button_add()  #点击+
     lottery_number_text = cl.lottery_number_text()  # 获取投注注数文本
     self.assertIn("1", lottery_number_text)  # 检查投注注数为1注
     throw_times = cl.throw_time_text()  # 获取投注倍数定位
     self.assertIn("4", throw_times)  # 检查投注倍数为4倍
     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_Direct_add_click_too_confirm_case(self):
     """验证选号页面,点击2次确认选号按钮功能"""
     ha = HomePage_lelun(self.driver)
     hb = There_D_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.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_group_direct_add_d()  ##点击直选和值
     hb1.Confirm_nu()  # 点击确认选号
     hb1.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()  # 点击确认支付
Esempio n. 8
0
 def test_singlefoot_rqspf_9_case(self):
     '''选择九场比赛,获取“最大场次限制8场”提示,测试流程'''
     ###点击进入竞彩足球选号页面###
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     sfcn = SingleFootChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.single_foot_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_rqspf()  # 选择让球胜平负
     aa = sfcn.jzdg_rqspf_choose(9)  # 选择比赛
     if aa == 1 or aa == 2:
         try:
             pbcn.know()
             pbcn.confirm_match()  # 确认所选场次
         except ElementNotVisibleException:
             print("当前赛事小于8场")
     if aa == 0:
         text = sfcn.Play_dgp_text()
         self.assertIn("单关配", text)
 def test_machine_choose_one_delete_all_case(self):
     '''机选一注,投注确认页点击删除所有选号并确认按钮流程测试'''
     hp = HomePage_lelun(self.driver)
     cl = ConfirmLottery_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期截止:”文案是否存在
     ulcn.machine_choose_button()  # 点击机选
     ulcn.machine_choose_one_button()  # 机选一注
     efcn.confirm_number_button()  # 确认选号
     ecfcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     ecfcl.countdown_text()  # 检查倒计时文案
     check = ecfcl.lottery_chase_throw_text()
     self.assertIn("1注1期1倍", check)
     cl.delete_all_num_button()  # 点击删除所有选号
     cl.confirm_delete_button()  # 点击确认删除所有选号
     ulcn.machine_choose_button()  # 点击机选
     ulcn.machine_choose_one_button()  # 机选一注
     efcn.confirm_number_button()  # 确认选号
     recheck = ecfcl.lottery_chase_throw_text()
     self.assertIn("1注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)
     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_Direct_add_a_note_Del_none_case(self):
     """验证确认投注页面,点击X图标功能"""
     ha = HomePage_lelun(self.driver)
     hb = There_D_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.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_group_direct_add_d()  ##点击直选和值
     hb.Direct_addA()
     hb1.Confirm_nu()  # 点击确认选号
     hb.Del_x()  ######删除1注
     mur1 = hb.Direct_addA()
     hb1.Confirm_nu()  # 点击确认选号
     mur = hd.Test_note_nu()
     self.assertEqual(mur1, mur)  ####断言注数
 def test_Play_zjq_choosnumber(self):
     """验证总进球玩法赛事结果功能,支付流程"""
     ha = HomePage_lelun(self.driver)
     hb = PaintBallChooseNumber_lelun(self.driver)
     hb1 = SingleFootChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_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()  # 点击全部赛事结果
     if aa == 1:
         hb1.Paintball_single_zjq_nus(8)  #随机选择8个赛事结果
         hb.confirm_match()  ###点击已选N场比赛
         hc.submit_order_to_station_owner_button()  ####点击提交给站主
         # hl.new_user_login_tab()  # 点击新登录
         hl.login_lelun()  # 输入账号,密码
         hc.submit_order_to_station_owner_button()  # 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付
Esempio n. 12
0
 def test_single_basketball_sf_2_case(self):
     '''选择两场比赛流程测试'''
     ###点击进入竞篮单关选号页面###
     hp = HomePage_lelun(self.driver)
     hcn = HaobcChooseNumber_lelun(self.driver)
     sbcn = SingleBasketballChooseNumber_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     hc = HaobcConfirm_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     l = Login_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.single_basketball_link()  ##点击竞篮单关
     hcn.Play_f()  #选择玩法
     hcn.Play_sf()  #选择胜负
     aa = sbcn.jldg_sf_choose(2)  #选择比赛
     if aa > 0:
         hcn.confirm_match()  #确认所选场次
         cl.submit_order_to_station_owner_button()  #提交订单给站主
         l.login_lelun()  #点击登录
         cl.submit_order_to_station_owner_button()  # 提交订单给站主
         cl.confirm_and_pay_button()  #确认支付
Esempio n. 13
0
 def test_Play_sfc_choosnumber(self):
     """验证让分胜负玩法赛事结果功能,支付流程"""
     ha = HomePage_lelun(self.driver)
     hb = HaobcChooseNumber_lelun(self.driver)
     hb1 = PaintBallChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_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_ba()
     if aa == 1:
         hb.Basketball_sfc_bas(6)
         hb1.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_singlefoot_two_choose_one_8_case(self):
     '''选择8场比赛,流程测试'''
     ###点击进入竞彩足球选号页面###
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     sfcn = SingleFootChooseNumber_lelun(self.driver)
     sfcl = SingleFootConfirmLottery_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.single_foot_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_2x1()  # 选择2选1
     aa = sfcn.jzdg_two_choose_one_choose(8)  # 选择比赛
     if aa == 2:
         pbcn.confirm_match()  # 确认所选场次
         text1 = sfcl.lottery_times_text()  # 获取投注倍数文本
         self.assertIn("8注5倍 ", text1)
         cl.submit_order_to_station_owner_button()  # 提交订单给站主
     if aa == 0:
         texxt = hp.header_text()  #获取首页顶端文本
         self.assertEqual("乐仑炫彩", texxt)
Esempio n. 15
0
 def test_single_basketball_sf_delete_one_event_case(self):
     """验证单个删除赛事X按钮,流程测试"""
     hp = HomePage_lelun(self.driver)
     hcn = HaobcChooseNumber_lelun(self.driver)
     sbcn = SingleBasketballChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.single_basketball_link()  ##点击竞彩足球
     hcn.Play_f()  ###点击玩法
     hcn.Play_sf()  ##点击胜负
     aa = sbcn.jldg_sf_choose(3)  ###随机点击3场比赛
     sleep(3)
     if aa == 2:
         hcn.confirm_match()  ###点击确认赛事
         a = pbc.NN()  ###读取删除前有多少个X按钮
         pbc.N_del(1)  ##点击删除第一场赛事
         a1 = pbc.NN()  ###读取删除后有多少个X按钮
         self.assertEqual(a - 1, a1)
Esempio n. 16
0
 def test_twostar_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.two_star()  #选择两星
     ssc_cn.shiwei_all()
     ssc_cn.gewei_all()
     aa = efcn.total_buy_text()
     self.assertIn("100注 ", aa)
     ssc_cn.shiwei_all()
     ssc_cn.gewei_all()
     aa = efcn.total_buy_text()
     self.assertIn("请每位至少选择1个号码", aa)
 def test_singlefoot_two_choose_one_9_case(self):
     '''选择九场比赛,获取“最大场次限制8场”提示,测试流程'''
     ###点击进入竞彩足球选号页面###
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     sfcn = SingleFootChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.single_foot_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_2x1()  # 选择2选1
     aa = sfcn.jzdg_two_choose_one_choose(9)  # 选择比赛
     if aa == 1 or aa == 2:
         try:
             pbcn.know()
             pbcn.confirm_match()  # 确认所选场次
         except ElementNotVisibleException:
             print("当前赛事小于8场")
     if aa == 0:
         texxt = hp.header_text()  #获取首页顶端文本
         self.assertEqual("乐仑炫彩", texxt)
 def test_Direct_add_Del_all_nu_ok_case(self):
     """验证确认投注页面,点击删除选号图标功能"""
     hc1 = PaintBallChooseNumber_lelun(self.driver)
     ha = HomePage_lelun(self.driver)
     hb = There_D_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.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_group_direct_add_d()  ##点击直选和值
     hb2.machine_choose_button()  ###点击机选
     hb1.Confirm_nu()  # 点击确认选号
     hc.delete_all_num_button()  ###点击清除所有选号
     hc.confirm_delete_button()  # 点击确定
     mur = hc1.Play_fb()
     self.assertEqual('玩\n法', mur)
 def test_singlefoot_two_choose_one_2_case(self):
     '''选择两场比赛进行投注,流程测试'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     sfcn = SingleFootChooseNumber_lelun(self.driver)
     sfcl = SingleFootConfirmLottery_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     l = Login_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.single_foot_link()  ###点击进入竞足单关选号页面###
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_2x1()  # 选择2选1模式
     aa = sfcn.jzdg_two_choose_one_choose(2)  # 选择两场比赛
     if aa == 2:
         pbcn.confirm_match()  # 确认场次
         text1 = sfcl.lottery_times_text()  # 获取投注倍数文本
         self.assertIn("2注5倍 ", text1)
     if aa == 0:
         texxt = hp.header_text()  #获取首页顶端文本
         self.assertEqual("乐仑炫彩", texxt)
Esempio n. 20
0
 def test_seven_color_Del_all_nu_ok_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 = PaintBallChooseNumber_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()  # 点击确认选号
     hc.delete_all_num_button()  ###点击清除所有选号
     hc.confirm_delete_button()  # 点击确定
     mur = hc1.Play_fb()
     self.assertEqual('玩\n法', mur)
 def test_intelligently_chase_ravise_times_input12_confirm_revise_case(
         self):
     '''【修改方案】起始倍数,输入3倍,点击【确定】,【提交】提交订单'''
     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.gx_11_5_link()  # 点击广西11选5链接
     efcn.spread_mode_button()  # 展开玩法
     efcn.mode_choose(24, 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()  # 点击智能追号
     text = ssc_cl.totalIssue_text()
     ssc_cl.revise_button()  # 点击修改方案
     ssc_cl.revise_times_input(3)  # 起始倍数的输入框输入3
     ssc_cl.revise_confirm()  # 点击确认修改
     text1 = ssc_cl.totalIssue_text()
     self.assertNotEqual(text1, text, '倍数没有被修改')  # 检查是否修改追号期数
     ssc_cl.submit_button()  # 点击提交按钮
     cl.confirm_and_pay_button()  # 点击确认支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     text2 = sos.submit_order_success()  # 获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text2)
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐米彩票-广西11选5", trade_name)
Esempio n. 22
0
 def test_twostar_choose_one_clear_num(self):
     '''选择一个号码,点击【清除所有选号】,重新选择一个号码,提交订单'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     l = Login_lelun(self.driver)
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     ulcn = UnionLottoChooseNumber_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.two_star()  # 选择两星
     ssc_cn.shiwei_random(1)
     ssc_cn.gewei_random(1)
     aa = efcn.total_buy_text()
     self.assertIn("1注 ", aa)
     ulcn.clear_number()  # 清除所有选号
     cc = efcn.total_buy_text()
     self.assertIn("请每位至少选择1个号码", cc)
     ssc_cn.shiwei_random(2)
     ssc_cn.gewei_random(2)
     bb = efcn.total_buy_text()
     self.assertIn("4注 ", bb)
     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)
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐秀赢球-重庆时时彩", trade_name)
Esempio n. 23
0
 def test_delete_all_event_case(self):
     """验证删除选择的全部赛事图标,流程测试"""
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.paintball_link()  ##点击竞彩足球
     pbcn.Play_f()  ###点击玩法
     pbcn.Play_rqspf()  ##点击让球胜平负
     aa = pbcn.rqspf_choose(2)  ###随机点击2场比赛
     if aa > 0:
         pbcn.confirm_match()  ###点击确认赛事
         pbc.Pf_del_icon()  #点击删除图标
         cl.confirm_delete_button()  #点击确认删除按钮
         pbcn.rqspf_choose(4)  #选择4场比赛
         pbcn.confirm_match()  ###点击确认赛事
         text = pbc.Pf_pass_text()  # 获取过关方式文本
         self.assertIn("4串1", text)
 def test_Play_bqc_choosnumber(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()  # 点击展开投注
     if aa == 1:
         hb.Football_bqcs(8)
         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_success_page_continue_buy_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.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)  # 任选两个号
     efcn.confirm_number_button()  # 点击确认选号
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  ##点击确认并支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     sos.Continue_buy()#点击机选购买此彩种
     efcn.hand_options(3)  # 任选3个号
     efcn.confirm_number_button()  # 点击确认选号
     num1 = efcl.Ele_five_select_number()  # 获取投注确认页的选号
     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_many_note_many_double_pause_five_period_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()  ###点击机选五注
     hc.chase_ticket_input(3)  ##输入追期
     nu = hc1.Test_period_show()
     self.assertEqual('3', nu)
     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)
Esempio n. 27
0
 def test_Lottery_Hand_choose_18_2_case(
         self):  ###################mj20171207
     """手选一注(复式),多注多倍,提交订单"""
     ###点击进入大乐透进入大乐透选号页面###
     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)
     blcn.l_red_label18()  # 任意选择5个红球
     blcn.l_bule_label2()  # 任意选择2个蓝球
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ulcn.Confirm_button()  # 点击确认选号按钮
     cl = ConfirmLottery_lelun(self.driver)
     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("856823", 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()
Esempio n. 28
0
 def test_one_lottery_ckick_x_case(self):
     '''在投注确认页面,单注号码,点击左边X按钮,页面能跳转到选号页'''
     ###点击进入大乐透进入大乐透选号页面###
     hp = HomePage_lelun(self.driver)
     hd = ArrangeFiveConfirmLottery_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)
     ulcn.machine_choose_button()  #点击机选按钮
     ulcn.machine_choose_one_button()  #点击机选1注
     ulcn.Confirm_button()  # 确认选号
     mur = cl.lottery_number_text()
     self.assertEqual('1', mur)
     cl.Del_x()  #点击单个删除x
     ulcn.machine_choose_button()  # 点击机选按钮
     ulcn.machine_choose_five_button()  # 点击机选5注
     num1 = cl.lottery_number_text()  # 获取注数
     self.assertIn("5", num1)
     cl.submit_order_to_station_owner_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)
Esempio n. 29
0
 def test_jxks_a_note_many_double_Continue_znzh_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_ebth()  ##点击二不同号
     hb.Ebth(2)  ##点击2个选号
     hb1.confirm_number_button()  ###点击确认选号
     hc1.throw_times_input(13)  ##输入倍数13倍
     hc.Button_less()  ###点击倍数-号
     hc.Cont()  ###点击继续选号
     hb.Ebth(2)  ##点击2个选号
     hb1.confirm_number_button()  ###点击确认选号
     mur = hc1.lottery_chase_throw_text()  #读取注数
     self.assertEqual('2注1期12倍共48元', mur)
     ssc_cl.intelligently_chase_button()  # 点击智能追号
     text2 = ssc_cl.totalIssue_num()  # 获取追号期数文本
     ssc_cl.revise_button()  # 点击修改方案
     ssc_cl.revise_chase_input(12)  # 追号的输入框输入12
     ssc_cl.revise_cancel()  # 点击取消修改
     text = ssc_cl.totalIssue_text()
     self.assertIn(str(text2), text)  # 检查是否修改追号期数
     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_onestar_machine_choose_one_confirm_delete_all_case(self):
     '''机选1注,投注确认页,点击【删除所有投注】图标【确认】删除,页面跳转至选号页,机选一注提交订单'''
     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_one_button()#机选一注
     efcn.confirm_number_button()  # 点击确认选号
     cl.delete_all_num_button()#删除所有选号
     cl.confirm_delete_button()#确认删除
     cc = efcn.total_buy_text()
     self.assertIn("请至少选择1个号码", cc)
     ulcn.machine_choose_button()  # 点击机选
     ulcn.machine_choose_one_button()  # 机选一注
     efcn.confirm_number_button()  # 点击确认选号
     bb = efcl.lottery_chase_throw_text()  # 获取注数倍数
     self.assertIn("1注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)