def test_there_D_play_case(self): """验证3D投注选号页面,切换玩法""" 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.Play_d() ###点击玩法 hb.Play_direct_d() ##点击直选 mur = hb.Show_play() self.assertEqual('直选', mur) hb.Play_d() ###点击玩法 hb.Play_group_there_d() #####点击组三 mur = hb.Show_play() self.assertEqual('组三', mur) hb.Play_d() ###点击玩法 hb.Play_group_six_d() ####点击组六 mur = hb.Show_play() self.assertEqual('组六', mur) hb.Play_d() ###点击玩法 hb.Play_group_direct_add_d() ###点击直选和值 mur = hb.Show_play() self.assertEqual('直选和值', mur) hb.Play_d() ###点击玩法 hb.Play_group_there_add_d() #####点击组三和值 mur = hb.Show_play() self.assertEqual('组三和值', mur) hb.Play_d() ###点击玩法 hb.Play_group_six_add_d() ##点击组六和值 mur = hb.Show_play() self.assertEqual('组六和值', mur)
def test_Direct_add_many_note_many_double_Pause_one_case(self): """验证多注多倍号码,点击机选1注按钮功能""" 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.Play_d() ###点击玩法 hb.Play_group_direct_add_d() ##点击直选和值 mur1 = hb.Direct_addA() hb1.Confirm_nu() # 点击确认选号 hd.Multiple_input(10) ###点击倍数输入功能 mur2 = hb.Pause_d() # 点击机选 mur = hd.Test_note_nu() mur3 = str(int(mur1) + int(mur2)) self.assertEqual(mur3, mur) ####断言注数 mur = hd.Test_multiple_show() # 读取倍数 self.assertEqual('10', mur) ##断言 hc.submit_order_to_station_owner_button() ##点击提交给站主
def test_Direct_add_all_choosenumber(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.Play_d() ###点击玩法 hb.Play_group_direct_add_d() ##点击直选和值 hb.Direct_add(28) ###点击27个数字球 hb.Direct_add(28) ###取消27个数字球 nu = hb.Direct_addA() ###点击1个数字球 hb1.Confirm_nu() # 点击确认选号 mur = hd.Test_note_nu() self.assertEqual(nu, mur) ####断言注数 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_Direct_add_click_too_confirm_case(self): """验证选号页面,点击2次确认选号按钮功能""" 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.Play_d() ###点击玩法 hb.Play_group_direct_add_d() ##点击直选和值 hb1.Confirm_nu() # 点击确认选号 hb1.Confirm_nu() # 点击确认选号 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_Direct_add_Del_all_nu_ok_case(self): """验证确认投注页面,点击删除选号图标功能""" hc1 = PaintBallChooseNumber_leyou(self.driver) 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.Play_d() ###点击玩法 hb.Play_group_direct_add_d() ##点击直选和值 hb2.machine_choose_button() ###点击机选 hb1.Confirm_nu() # 点击确认选号 hc.delete_all_num_button() ###点击清除所有选号 hc.confirm_delete_button() # 点击确定 mur = hc1.Play_fb() self.assertEqual('玩\n法', mur)
def test_Direct_add_a_note_Del_none_case(self): """验证确认投注页面,点击X图标功能""" 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.Play_d() ###点击玩法 hb.Play_group_direct_add_d() ##点击直选和值 hb.Direct_addA() hb1.Confirm_nu() # 点击确认选号 hb.Del_x() ######删除1注 mur1 = hb.Direct_addA() hb1.Confirm_nu() # 点击确认选号 mur = hd.Test_note_nu() self.assertEqual(mur1, mur) ####断言注数