def test_after_shortfall_case(self): '''验证差额支付,复式号码流程''' ###点击进入双色球选号页面### ha = HomePage_lelun(self.driver) hl = Login_lelun(self.driver) hb = UnionLottoChooseNumber_lelun(self.driver) hc= ConfirmLottery_lelun(self.driver) hd = PaymetMode_lelun(self.driver) he = BaofooPayment_lelun(self.driver) hf = ChooseBank_lelun(self.driver) hf1 = ConfirmPay_lelun(self.driver) hf2= LessPaySucess_lelun(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.UnionLotto_link()#点击双色球链接 hb.u_red_label6() # 任意选择6个红球 hb.u_bule_label1_too() # 任意选择2个蓝球 hb.Confirm_button() # 点击确认选号按钮 hc.submit_order_to_station_owner_button() # 点击“提交订单给站主”按钮 hl.login_nomoney_lelun()#点击登录 hc.submit_order_to_station_owner_button() # 点击“提交订单给站主”按钮 hc.confirm_and_pay_button() # 点击“确认并支付”按钮 mur=hd.Top_up()##获取充值成功文本 self.assertEqual('充值',mur)
def test_unionlotto_dantuo_continue_case(self): """胆拖选号页面,选择1注号码,在投注确认页面,继续选1注""" ha = HomePage_lelun(self.driver) hl = Login_lelun(self.driver) hb = UnionLottoChooseNumber_lelun(self.driver) hc = ConfirmLottery_lelun(self.driver) hd = PaymetMode_lelun(self.driver) he = BaofooPayment_lelun(self.driver) hf = ChooseBank_lelun(self.driver) hf1 = ConfirmPay_lelun(self.driver) hf2 = LessPaySucess_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.continue_choose_num_button() ##继续选号 hb.u_red_five_two() # 红球选取5个胆码2个拖码 hb.u_bule_one() # 选取一个蓝球 hb.Confirm_button() # 确认选号 hc.submit_order_to_station_owner_button() # 点击“提交订单给站主”按钮 hl.login_nomoney_lelun() # 点击登录 hc.submit_order_to_station_owner_button() # 点击“提交订单给站主”按钮 hc.confirm_and_pay_button() # 点击“确认并支付”按钮 mur = hd.Top_up() ##获取充值成功文本 self.assertEqual('充值', mur)
def test_one_note_five_double_ten_period_shortfall_case(self): '''手选一注,1注单式号码,修改倍数5,修改期数10,差额支付流程''' ###点击进入双色球选号页面### ha = HomePage_lelun(self.driver) hl = Login_lelun(self.driver) hb = UnionLottoChooseNumber_lelun(self.driver) hc= ConfirmLottery_lelun(self.driver) hd = PaymetMode_lelun(self.driver) he = BaofooPayment_lelun(self.driver) hf = ChooseBank_lelun(self.driver) hf1 = ConfirmPay_lelun(self.driver) hf2= LessPaySucess_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.chase_ticket_input("10")#输入追10期 hc.throw_times_input("5")#输入投注倍数为5倍 hc.submit_order_to_station_owner_button() # 点击“提交订单给站主”按钮 hl.login_nomoney_lelun()#点击登录 hc.submit_order_to_station_owner_button() # 点击“提交订单给站主”按钮 hc.confirm_and_pay_button() # 点击“确认并支付”按钮 mur = hd.Top_up() ##获取充值成功文本 self.assertEqual('充值', mur)
def test_recharge_input_case(self): """验证手动输入金额充值流程""" hp = HomePage_lelun(self.driver) hb = MyTicket_lelun(self.driver) hc = PaymetMode_lelun(self.driver) hd = BaofooPayment_lelun(self.driver) he = ChooseBank_lelun(self.driver) hf = ConfirmPay_lelun(self.driver) hl = Login_lelun(self.driver) hp.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 hp.Moveable_float_close() hp.My_lottery_ticket() ##点击我的彩票 hl.login_lelun() ##登录 hb.Recharge() # 点击充值 hb.Recharge_input(888)###输入888 hb.Next() ##点击下一步 mur = hc.Top_up() ##获取充值成功文本 self.assertEqual('充值', mur)
def test_less_payment_shortfall_case(self): '''验证差额支付流程''' ###点击进入双色球选号页面### hp = HomePage_lelun(self.driver) hp.open() l=Login_lelun(self.driver) ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 hp.Moveable_float_close() hp.UnionLotto_link()#点击双色球链接 ulcn = UnionLottoChooseNumber_lelun(self.driver) ulcn.u_red_label6() # 任意选择6个红球 ulcn.u_bule_label1() # 任意选择1个蓝球 ulcn.Confirm_button() # 点击确认选号按钮 cl = ConfirmLottery_lelun(self.driver) cl.submit_order_to_station_owner_button() # 点击“提交订单给站主”按钮 l.login_nomoney_lelun()#点击登录 cl.submit_order_to_station_owner_button() # 点击“提交订单给站主”按钮 cl.confirm_and_pay_button() # 点击“确认并支付”按钮 pm = PaymetMode_lelun(self.driver) mur = pm.Top_up() ##获取充值成功文本 self.assertEqual('充值', mur)