def test_there_D_history_recommend(self): """验证历史走势,使用推荐号码""" ha = HomePage_leyou(self.driver) hb = There_D_choosenumber_leyou(self.driver) hb1 = ArrangeFiveChooseNumber_leyou(self.driver) hb2 = UnionLottoChooseNumber_leyou(self.driver) hc = ConfirmLottery_leyou(self.driver) hd = ArrangeFiveConfirmLottery_leyou(self.driver) hl = Login_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.fucai_3D_link() ###点击3D hb.Instruct() ##点击右上角... hb.History() ###点击历史投注 mur = hb.Recommend() hb.Use_recommend() ###点击使用推荐号码 hb1.Confirm_nu() # 点击确认选号 mur1 = hb.Number() self.assertIn(mur, mur1) 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_immediately_sorce_lottery_case(self): '''在投注选号页面,点击右上角即时比分,打开赛事分析数据,点击页面下方的投注竞彩足球按钮,页面跳转到选号页,选择两场比赛,提交订单''' hp = HomePage_leyou(self.driver) pbcn = PaintBallChooseNumber_leyou(self.driver) l = Login_leyou(self.driver) sos = SubmitOrderSuccess_leyou(self.driver) t = There_D_choosenumber_leyou(self.driver) hb = HaobcChooseNumber_leyou(self.driver) hc = ConfirmLottery_leyou(self.driver) hc1 = PaintBallConfirm_leyou(self.driver) hl = Login_leyou(self.driver) hp.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 hp.Moveable_float_close() hp.My_lottery_ticket() # 点击我的彩票 l.login_leyou() # 点击登录 hp.homepage_link() # 点击首页 hp.haobc_link() #点击竞彩蓝球 t.Instruct() # 点击右上角的。。。 pbcn.immediately() #点击即时比分 aa = pbcn.enter_analysis_page() #点击进入赛事分析 if aa == 1: hb.Race_basketball() #点击【投注竞彩蓝球】 aa = hb.Basketball_mix_nus_X(2) ###随机点击8场比赛 if aa > 0: hb.confirm_match() ###点击已选N场比赛 hc.submit_order_to_station_owner_button() ####点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付 text1 = sos.submit_order_success() #获取提交订单成功文本 self.assertEqual('订单提交成功', text1)
def test_immediately_sorce_lottery_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) sos = SubmitOrderSuccess_leyou(self.driver) t = There_D_choosenumber_leyou(self.driver) hp.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 hp.Moveable_float_close() hp.My_lottery_ticket() # 点击我的彩票 l.login_leyou() # 点击登录 hp.homepage_link() # 点击首页 hp.paintball_link() ##点击竞彩足球 t.Instruct() # 点击右上角的。。。 pbcn.immediately() #点击即时比分 aa = pbcn.enter_analysis_page() #点击进入赛事分析 if aa == 1: pbcn.lottery_jczq_button() #点击【投注竞彩足球】 pbcn.Play_f() ###点击玩法 pbcn.Play_rqspf() ##点击让球胜平负 aa = pbcn.rqspf_choose(2) ###随机点击2场比赛 if aa == 2: pbcn.confirm_match() ###点击确认赛事 cl.submit_order_to_station_owner_button() #点击提交订单给站主 cl.confirm_and_pay_button() #点击确认支付 text1 = sos.submit_order_success() #获取提交订单成功文本 self.assertEqual('订单提交成功', text1)
def test_there_D_play_instruction(self): """验证玩法说明""" ha = HomePage_leyou(self.driver) hb = There_D_choosenumber_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.fucai_3D_link() ###点击3D hb.Instruct() ##点击右上角... hb.Play_instruction() ##点击玩法说明 mur = hb.Group_there_add_play_instruction() self.assertEqual('组三和值', mur) hb.There_D_know()
def test_Play_instruction_case(self): """验证玩法说明""" ha = HomePage_leyou(self.driver) hb1 = Arrang_there_choosenumber_leyou(self.driver) hb2 = There_D_choosenumber_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.rank_three_link() ####点击排列3 hb2.Instruct() ##点击右上角... hb1.Arrang_there_instruct() ##点击玩法说明 mur = hb1.Arrany_there_play() self.assertEqual('排列3玩法', mur) hb1.Arrany_there_know()
def test_Play_instruction_case(self): """验证玩法说明""" ha = HomePage_leyou(self.driver) hb = Seven_color_choosenumber_leyou(self.driver) hb2 = There_D_choosenumber_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.rank_five_link() ###点击排列5 hb2.Instruct()##点击右上角... hb.Seven_color_instruct()##点击玩法说明 mur = hb.Seven_color_play() self.assertEqual('排列5玩法', mur) hb.Seven_color_know()
def test_there_D_history(self): """验证历史走势""" ha = HomePage_leyou(self.driver) hb = There_D_choosenumber_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.fucai_3D_link() ###点击3D hb.Instruct() ##点击右上角... hb.History() ###点击历史投注 mur = hb.Charts() if mur == '': self.assertEqual('a', mur) else: print("历史走势展示正常")
def test_Play_instruction_case(self): """验证玩法说明""" ha = HomePage_leyou(self.driver) hb = RX9C_choosenumber_leyou(self.driver) hb1 = Arrang_there_choosenumber_leyou(self.driver) hb2 = There_D_choosenumber_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.victory_defeat_14_link() # 点击胜负14场 hb2.Instruct() ##点击右上角... hb1.Arrang_there_instruct() ##点击玩法说明 mur = hb.Rx9c_play() self.assertEqual('任选14场', mur) hb1.Arrany_there_know()
def test_play_instruction_open_close_case(self): '''在投注选号页面,点击右上角玩法说明,可以打开和关闭''' ha = HomePage_leyou(self.driver) hb = HaobcChooseNumber_leyou(self.driver) pbcn = PaintBallChooseNumber_leyou(self.driver) l = Login_leyou(self.driver) t = There_D_choosenumber_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.My_lottery_ticket() # 点击我的彩票 l.login_leyou() # 点击登录 ha.homepage_link() # 点击首页 ha.haobc_link() #点击竞彩蓝球 t.Instruct() #点击右上角的。。。 hb.Play_instruction() #点击玩法说明 t.There_D_know() #点击我知道了
def test_seven_color_history(self): """历史走势""" ha = HomePage_leyou(self.driver) hb = Seven_color_choosenumber_leyou(self.driver) hb2 = There_D_choosenumber_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.colorful_star_link() ###点击七星彩 hb2.Instruct() ##点击右上角... hb.Seven_color_history() ##点击历史走势 hb.Afive_down() ###鼠标下拉 mur = hb.History_date() ##随机取显示的数据 if mur == '': self.assertEqual('a', mur) else: print("历史走势展示正常")
def test_immediately_reture_homepage(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) t = There_D_choosenumber_leyou(self.driver) hp.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 hp.Moveable_float_close() hp.My_lottery_ticket() # 点击我的彩票 l.login_leyou() # 点击登录 hp.homepage_link() # 点击首页 hp.haobc_link() #点击竞彩蓝球 t.Instruct() # 点击右上角的。。。 pbcn.immediately() # 点击即时比分 pbcn.immediately_page_return_homepage() #点击返回首页
def test_play_instruction_open_close_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) sos = SubmitOrderSuccess_leyou(self.driver) t = There_D_choosenumber_leyou(self.driver) hp.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 hp.Moveable_float_close() hp.My_lottery_ticket() # 点击我的彩票 l.login_leyou() # 点击登录 hp.homepage_link() # 点击首页 hp.paintball_link() ##点击竞彩足球 t.Instruct() #点击右上角的。。。 pbcn.paintball_play_instruct() #点击玩法说明 t.There_D_know() #点击我知道了