def test_Play_zjq_Btn_add(self): """验证修改倍数 +功能,支付流程""" ha = HomePage_leyou(self.driver) hb = PaintBallChooseNumber_leyou(self.driver) hb1 = SingleFootChooseNumber_leyou(self.driver) hc = ConfirmLottery_leyou(self.driver) hc1 = PaintBallConfirm_leyou(self.driver) hc2 = SingleFootConfirmLottery_leyou(self.driver) hl = Login_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.single_foot_link() ###点击竞彩足球 hb.Play_f() ####点击玩法 hb.Play_zq() #####点击总进球 aa = hb1.Paintball_single_zjq_nus_X(2) ###随机点击2场比赛 if aa > 0: hb.confirm_match() ###点击已选N场比赛 hc1.Times_input(3) #####修改倍数为3 hc1.Btn_add() ####点击倍数+ mul = hc2.Times_display_pbs() ###获取倍数 self.assertIn('4倍', mul) hc.submit_order_to_station_owner_button() ####点击提交给站主 # hl.new_user_login_tab() # 点击新登录 hl.login_leyou() # 输入账号,密码 hc.submit_order_to_station_owner_button() # 点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付
def test_Play_dgp_Btn_add(self): """验证修改倍数 +功能,支付流程""" ha = HomePage_leyou(self.driver) hb = PaintBallChooseNumber_leyou(self.driver) hb1 = SingleFootChooseNumber_leyou(self.driver) hc = ConfirmLottery_leyou(self.driver) hc1 = SingleFootConfirmLottery_leyou(self.driver) hc2 = PaintBallConfirm_leyou(self.driver) hl = Login_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.single_foot_link() ###点击竞足单关 hb.Play_f() ####点击玩法 hb1.Play_dgp() ###点击单关配 sleep(1) hb1.Dgp_tan() ##点击弹框 aa = hb1.Paintball_single_dgp_nus_X(1) ###随机点击2场比赛 if aa > 0: hb.confirm_match() ###点击已选N场比赛 #hc2.Times_input(32) #####修改倍数为3 hc2.Btn_add() ####点击倍数+ mul = hc1.Lottery_dgp() ###获取倍数 self.assertEqual('共132元', mul) hc.submit_order_to_station_owner_button() ####点击提交给站主 # hl.new_user_login_tab() # 点击新登录 hl.login_leyou() # 输入账号,密码 hc2.Times_input(10) #####修改倍数为3 hc.submit_order_to_station_owner_button() # 点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付
def test_Play_sfc_Btn_add(self): """验证修改倍数 +功能,支付流程""" ha = HomePage_leyou(self.driver) hb = HaobcChooseNumber_leyou(self.driver) hb1 = PaintBallChooseNumber_leyou(self.driver) hc = ConfirmLottery_leyou(self.driver) hc1 = PaintBallConfirm_leyou(self.driver) hl = Login_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.haobc_link() ##点击竞彩蓝球 hb.Play_f() ####点击玩法 hb.Play_sfc() # 点击胜分差玩法 aa = hb.Basketball_sfc_nus_X(4) ###随机点击4场比赛 if aa > 0: hb.confirm_match() ###点击已选N场比赛 hc1.Times_input(3) #####修改倍数为3 hc1.Btn_add() ####点击倍数+ mul = hc1.Times_display() ###获取倍数 self.assertEqual('4', mul) hc.submit_order_to_station_owner_button() ####点击提交给站主 # hl.new_user_login_tab() # 点击新登录 hl.login_leyou() # 输入账号,密码 hc.submit_order_to_station_owner_button() # 点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付
def test_throw_add_btn_case(self): '''点击投注倍数的+按钮流程测试''' hp = HomePage_leyou(self.driver) pbcn = PaintBallChooseNumber_leyou(self.driver) cl = ConfirmLottery_leyou(self.driver) pbc = PaintBallConfirm_leyou(self.driver) l = Login_leyou(self.driver) hp.open() hp.paintball_link() ##点击竞足 pbcn.Play_f() # 选择玩法 pbcn.Play_rqspf() # 选择让球胜平负 aa = pbcn.rqspf_choose(2) # 选择比赛 if aa == 2: pbcn.confirm_match() # 点击确认赛事 pbc.Btn_add() #点击+按钮 text = cl.throw_time_text() self.assertIn('6', text)
def test_haobc_rfsf_throw_add_btn_case(self): '''点击投注倍数的+按钮流程测试''' hp = HomePage_leyou(self.driver) hcn = HaobcChooseNumber_leyou(self.driver) cl = ConfirmLottery_leyou(self.driver) pbc = PaintBallConfirm_leyou(self.driver) l = Login_leyou(self.driver) hp.open() hp.Moveable_float_close() hp.haobc_link() ##点击竞篮 hcn.Play_f() # 选择玩法 hcn.Play_rfsf() # 选择让分胜负 aa = hcn.sf_choose(2) # 选择比赛 if aa == 2: hcn.confirm_match() # 点击确认赛事 pbc.Btn_add() #点击+按钮 text = cl.throw_time_text() self.assertIn('6', text)
def test_single_basketball_dxf_throw_add_btn_case(self): '''点击投注倍数的+按钮流程测试''' hp = HomePage_leyou(self.driver) hcn = HaobcChooseNumber_leyou(self.driver) sbcn = SingleBasketballChooseNumber_leyou(self.driver) cl = ConfirmLottery_leyou(self.driver) pbc = PaintBallConfirm_leyou(self.driver) l = Login_leyou(self.driver) hp.open() hp.Moveable_float_close() hp.single_basketball_link() ##点击竞篮单关 hcn.Play_f() # 选择玩法 hcn.Play_dxf() # 选择大小分 aa = sbcn.jldg_sf_choose(2) # 选择比赛 if aa == 2: hcn.confirm_match() # 点击确认赛事 pbc.Btn_add() #点击+按钮 text = cl.throw_time_text() self.assertIn('6', text)
def test_throw_add_btn_case(self): '''点击投注倍数的+按钮流程测试''' hp = HomePage_leyou(self.driver) pbcn = PaintBallChooseNumber_leyou(self.driver) sfcn = SingleFootChooseNumber_leyou(self.driver) sfcl = SingleFootConfirmLottery_leyou(self.driver) cl = ConfirmLottery_leyou(self.driver) pbc = PaintBallConfirm_leyou(self.driver) l = Login_leyou(self.driver) hp.open() hp.Moveable_float_close() hp.single_foot_link() ##点击竞足 pbcn.Play_f() # 选择玩法 pbcn.Play_rqspf() # 选择让球胜平负 aa = sfcn.jzdg_rqspf_choose(1) # 选择比赛 if aa > 0: pbcn.confirm_match() # 点击确认赛事 pbc.Btn_add() # 点击+按钮 text = sfcl.lottery_times_text() # 获取投注倍数文本 self.assertIn('1注6倍', text) if aa == 0: text = sfcn.Play_dgp_text() self.assertIn("单关配", text)