示例#1
0
 def test_UnionLotto_history_recommend(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)
     he = OrderDetails_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.UnionLotto_link()  # 点击双色球链接
     hb.There_clock()  ##点击右上角。。。
     hb.History_movements()  ##点击历史走势
     mur = hb.Recommended_nu()  #读取推荐号码
     hb.Recommended_number()  #点击使用推荐号码
     hb.Confirm_button()  # 确认选号
     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()  # 点击确认支付
     hd.check_order_details()  ##点击查看订单详情
     mur1 = he.Betting_number()  ##读取显示的投注号码
     self.assertEqual(mur, mur1)
示例#2
0
 def test_UnionLotto_history_recommend_many(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)
     he = OrderDetails_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.UnionLotto_link()  # 点击双色球链接
     hb.There_clock()  ##点击右上角。。。
     hb.History_movements()  ##点击历史走势
     hb.Recommended_nu()  #读取推荐号码
     hb.Recommended_number()  #点击使用推荐号码
     hb.Select_bule()  ##点击一个蓝球
     hb.Confirm_button()  # 确认选号
     mur2 = hc.Select_number()  ##读取投注号码
     mur = hc.lottery_number_text()  # 读取注数
     self.assertEqual('2', mur)  ##断言
     hc.throw_times_input(13)  ###点击倍数输入功能
     nu = hc.throw_time_text()  ###倍数
     self.assertEqual('13', 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()  # 点击确认支付
     hd.check_order_details()  ##点击查看订单详情
     mur1 = he.Betting_nu()  ##读取显示的投注号码
     self.assertEqual(mur2, mur1)
示例#3
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)