def test_Play_sfc_Btn_add(self): """验证修改倍数 +功能,支付流程""" ha = HomePage_lexiu(self.driver) hb = HaobcChooseNumber_lexiu(self.driver) hb1 = PaintBallChooseNumber_lexiu(self.driver) hc = ConfirmLottery_lexiu(self.driver) hc1 = PaintBallConfirm_lexiu(self.driver) hc2 = SingleFootConfirmLottery_lexiu(self.driver) hl = Login_lexiu(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.single_basketball_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 = hc2.Lottery_dgp() ###获取倍数 self.assertEqual('共384元', mul) 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_Play_bf_Btn_add(self): """验证修改倍数 +功能,支付流程""" ha = HomePage_lexiu(self.driver) hb = PaintBallChooseNumber_lexiu(self.driver) hb1 = SingleFootChooseNumber_lexiu(self.driver) hc = ConfirmLottery_lexiu(self.driver) hc1 = PaintBallConfirm_lexiu(self.driver) hc2 = SingleFootConfirmLottery_lexiu(self.driver) hl = Login_lexiu(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.single_foot_link() ###点击竞足单关 hb.Play_f() ####点击玩法 hb.Play_bf() ###点击比分玩法 aa = hb1.Paintball_single_bf_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_lexiu() # 输入账号,密码 hc.submit_order_to_station_owner_button() # 点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付
def test_throw_add_btn_case(self): '''点击投注倍数的+按钮流程测试''' hp = HomePage_lexiu(self.driver) pbcn = PaintBallChooseNumber_lexiu(self.driver) cl = ConfirmLottery_lexiu(self.driver) pbc = PaintBallConfirm_lexiu(self.driver) l = Login_lexiu(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_dxf_throw_add_btn_case(self): '''点击投注倍数的+按钮流程测试''' hp = HomePage_lexiu(self.driver) hcn = HaobcChooseNumber_lexiu(self.driver) cl = ConfirmLottery_lexiu(self.driver) pbc = PaintBallConfirm_lexiu(self.driver) l = Login_lexiu(self.driver) hp.open() hp.Moveable_float_close() hp.haobc_link() ##点击竞篮 hcn.Play_f() # 选择玩法 hcn.Play_dxf() # 选择大小分 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_sf_throw_add_btn_case(self): '''点击投注倍数的+按钮流程测试''' hp = HomePage_lexiu(self.driver) hcn = HaobcChooseNumber_lexiu(self.driver) sbcn = SingleBasketballChooseNumber_lexiu(self.driver) cl = ConfirmLottery_lexiu(self.driver) pbc = PaintBallConfirm_lexiu(self.driver) l = Login_lexiu(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 == 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_lexiu(self.driver) pbcn = PaintBallChooseNumber_lexiu(self.driver) sfcn = SingleFootChooseNumber_lexiu(self.driver) sfcl = SingleFootConfirmLottery_lexiu(self.driver) cl = ConfirmLottery_lexiu(self.driver) pbc = PaintBallConfirm_lexiu(self.driver) l = Login_lexiu(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)