def test_chase_ticket_twenty_case(self):
     """"点击追加20期"""
     ha = HomePage_lexiu(self.driver)
     hb = Seven_color_choosenumber_lexiu(self.driver)
     hb2 = ArrangeFiveChooseNumber_lexiu(self.driver)
     hb1 = UnionLottoChooseNumber_lexiu(self.driver)
     hc = ConfirmLottery_lexiu(self.driver)
     hc1 = ArrangeFiveConfirmLottery_lexiu(self.driver)
     hl = Login_lexiu(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.colorful_star_link()  ###点击七星彩
     hb.Seven_nuos(1)  # 在一位随机点击1个数字
     hb.Seven_nuts(1)  # 在二位随机点击1个数字
     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个数字
     hb2.Confirm_nu()  # 点击确认选号按钮
     hc.chase_ticket_button()  ###点击追期
     hc.chase_ticket_button_twenty()  ##点击 20期
     nu = hc1.Test_period_show()
     self.assertEqual('20', nu)
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     #hl.new_user_login_tab()  # 点击新登录
     hl.login_lexiu()  # 输入账号,密码
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
示例#2
0
 def test_jxks_less_term_case(self):
     """1注号码,点击-按钮,添加期数"""
     ha = HomePage_lexiu(self.driver)
     hb = GXKS_ChooseNumber_lexiu(self.driver)
     hb1 = ElevenFiveChooseNumber_lexiu(self.driver)
     hc = ConfirmLottery_lexiu(self.driver)
     hc1 = EleChooseFiveConfirmLottery_lexiu(self.driver)
     hl = Login_lexiu(self.driver)
     hd = LessPaySucess_lexiu(self.driver)
     ssc_cl = CQSSCConfirmLottery_lexiu(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.guangxi_express_three_link()  # 点击广西快三
     hb.play_jxks_ethdx()  ##点击二同号单选
     hb.Ethdx(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_lexiu()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
 def test_UnionLotto_DanTuo_many_case(self):
     """增加倍数和期数"""
     ha = HomePage_lexiu(self.driver)
     hb = UnionLottoChooseNumber_lexiu(self.driver)
     hc = ConfirmLottery_lexiu(self.driver)
     hl = Login_lexiu(self.driver)
     hd = SubmitOrderSuccess_lexiu(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()
示例#4
0
 def test_Direct_chase_ticket_twenty_case(self):
     """"点击追加20期"""
     ha = HomePage_lexiu(self.driver)
     hb = There_D_choosenumber_lexiu(self.driver)
     hb1 = ArrangeFiveChooseNumber_lexiu(self.driver)
     hb2 = UnionLottoChooseNumber_lexiu(self.driver)
     hc = ConfirmLottery_lexiu(self.driver)
     hd = ArrangeFiveConfirmLottery_lexiu(self.driver)
     hl = Login_lexiu(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_direct_d()  ###点击直选
     hb.there_D_bais(1, 0)  # 随机选取百位去个数字
     hb.there_D_shis(0, 1)  # 随机选取十位1个数字
     hb.there_D_ges(0, 1)  # 随机选择个位1个数字
     hb1.Confirm_nu()  # 点击确认选号
     hc.chase_ticket_button()  ###点击追期
     hc.chase_ticket_button_twenty()  ##点击 20期
     nu=hd.Test_period_show()
     self.assertEqual('20',nu)
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     #hl.new_user_login_tab()  # 点击新登录
     hl.login_lexiu()  # 输入账号,密码
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
 def test_twostar_chase20_case(self):
     '''投注确认页,点击追20期,提交订单'''
     hp = HomePage_lexiu(self.driver)
     hp.open()
     l = Login_lexiu(self.driver)
     efcn = ElevenFiveChooseNumber_lexiu(self.driver)
     ulcn = UnionLottoChooseNumber_lexiu(self.driver)
     efcl = EleChooseFiveConfirmLottery_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     sos = SubmitOrderSuccess_lexiu(self.driver)
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lexiu()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.cqssc_link()  # 点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_lexiu(self.driver)
     ssc_cn.play_mode()  # 选择模式
     ssc_cn.two_star()  # 选择两星
     ssc_cn.shiwei_random(1)
     ssc_cn.gewei_random(1)
     efcn.confirm_number_button()  # 点击确认选号
     efcl.chase_ticket_button()  #点击追号期数
     cl.chase_ticket_button_twenty()  #点击追20期
     bb = efcl.lottery_chase_throw_text()  # 获取注数倍数
     self.assertIn("1注20期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)
    def test_Lottery_Machine_Choose_chase20_case(self):
        '''机选一注追加20期测试'''

        hp = HomePage_lexiu(self.driver)
        hp.open()
        hp.Moveable_float_close()  # 关闭悬浮窗口
        hp.Lottery_link()  # 点击大乐透链接
        ulcn = UnionLottoChooseNumber_lexiu(self.driver)
        ulcn.machine_choose_button()  # 点击机选按钮
        ulcn.machine_choose_one_button()  # 点击机选一注
        ulcn.Confirm_button()  # 点击确认选号按钮
        cl = ConfirmLottery_lexiu(self.driver)
        blcl = BigLotteryConfirmLottery_lexiu(self.driver)
        cl.chase_ticket_button()  # 点击追xx期
        blcl.additional_radio_button()  # 点击追加单选按钮
        cl.chase_ticket_button_twenty()  # 点击追加20期单选按钮
        cl.throw_times_input(2)  # 输入投注倍数
        cl.submit_order_to_station_owner_button()  # 点击提交订单给站主
        l = Login_lexiu(self.driver)
        #l.new_user_login_tab()  # 切换到新用户登录
        l.login_lexiu()
        cl.submit_order_to_station_owner_button()  # 点击“提交订单给站主”按钮
        cl.confirm_and_pay_button()  # 点击“确认并支付”按钮
        '''断言验证提交订单成功'''
        sos = SubmitOrderSuccess_lexiu(self.driver)
        hp.Moveable_float_close()  # 关闭悬浮窗口
        text = sos.submit_order_success()
        self.assertEqual("订单提交成功", text, "提交订单失败")
        hp.Moveable_float_close()  # 关闭悬浮窗口
        # 返回首页
        sos.return_home()
 def test_machine_choose_one_chase20_case(self):
     '''机选一注追20期流程测试'''
     hp = HomePage_lexiu(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_lexiu(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.gd_11_5_link()  # 点击广东11选5链接
     efcn = ElevenFiveChooseNumber_lexiu(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     ulcn.machine_choose_button()  #点击机选
     ulcn.machine_choose_one_button()  #机选一注
     efcn.confirm_number_button()  #确认选号
     ecfcl = EleChooseFiveConfirmLottery_lexiu(self.driver)
     ecfcl.countdown_text()  # 检查倒计时文案
     cl = ConfirmLottery_lexiu(self.driver)
     ecfcl.chase_ticket_button()  #点击追xxx期
     cl.chase_ticket_button_twenty()  #点击追20期
     check = ecfcl.lottery_chase_throw_text()  #获取投注注数、追号期数、投注倍数文本
     self.assertIn("1注20期1倍", check)
     ecfcl.submit_order_button()  # 提交订单给站主
     l = Login_lexiu(self.driver)
     l.login_lexiu()  # 登录
     ecfcl.submit_order_button()  # 提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     sos = SubmitOrderSuccess_lexiu(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_lexiu(self.driver)
     od.chase_order_details_check()  # 检查订单详情页页面元素
示例#8
0
 def test_UnionLotto_Machine_chase_twenty_case(self):
     '''追20期流程测试'''
     hp = HomePage_lexiu(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.UnionLotto_link()  # 点击双色球链接
     ####选择机选一注并确认选号####
     ulcn = UnionLottoChooseNumber_lexiu(self.driver)
     ulcn.machine_choose_button()  # 点击机选
     ulcn.machine_choose_one_button()  # 机选1注
     ulcn.Confirm_button()  # 确认选号
     cl = ConfirmLottery_lexiu(self.driver)
     cl.chase_ticket_button()  # 点击追xx期
     cl.chase_ticket_button_twenty()  # 点击追20期
     lottery_number_text = cl.lottery_number_text()  # 获取投注注数文本
     self.assertIn("1", lottery_number_text)  # 检查投注注数为1注
     chase_time_text = cl.chase_time_text()  # 获取追号期数
     self.assertIn("20", chase_time_text)  # 检查追号期数为20期
     cl.submit_order_to_station_owner_button()  # 点击“提交订单给站主”按钮
     #####用户登录######
     l = Login_lexiu(self.driver)
     l.login_lexiu()
     cl.submit_order_to_station_owner_button()  # 点击“提交订单给站主”按钮
     cl.confirm_and_pay_button()  # 确认支付
     '''断言验证提交订单成功'''
     sos = SubmitOrderSuccess_lexiu(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_lexiu(self.driver)
     od.chase_order_details_check()  # 检查订单详情页
示例#9
0
 def test_chase_ticket_twenty_case(self):
     """"点击追加20期"""
     ha = HomePage_lexiu(self.driver)
     hb = ArrangeFiveChooseNumber_lexiu(self.driver)
     hb1 = UnionLottoChooseNumber_lexiu(self.driver)
     hd = ArrangeFiveConfirmLottery_lexiu(self.driver)
     hc = ConfirmLottery_lexiu(self.driver)
     hc1 = ArrangeFiveConfirmLottery_lexiu(self.driver)
     hl = Login_lexiu(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.rank_five_link()  ###点击排列5
     hb.Afive_nuws(1)  # 随机选择1个万位号码
     hb.Afive_nuqs(1)  # 随机选择1个千位号码
     hb.Afive_nubs(1)  # 随机选择1个百位号码
     hb.Afive_down()  # 鼠标向下
     hb.Afive_nuss(1)  # 随机选择1个十位号码
     hb.Afive_nugs(1)  # 随机选择1个个位号码
     hb.Confirm_nu()  # 点击确认选号按钮
     hc.chase_ticket_button()###点击追期
     hc.chase_ticket_button_twenty()##点击 20期
     nu=hc1.Test_period_show()
     self.assertEqual('20',nu)
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     #hl.new_user_login_tab()  # 点击新登录
     hl.login_lexiu()  # 输入账号,密码
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付