def test_many_note_many_double_pause_five_case(self): """多注多倍,机选五注""" ha = HomePage_lelun(self.driver) hb = Arrang_there_choosenumber_lelun(self.driver) hb1 = UnionLottoChooseNumber_lelun(self.driver) hb2 = ArrangeFiveChooseNumber_lelun(self.driver) hc = ConfirmLottery_lelun(self.driver) hc1 = ArrangeFiveConfirmLottery_lelun(self.driver) hl = Login_lelun(self.driver) hd = LessPaySucess_lelun(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.rank_three_link() ####点击排列3 hb.Play() ###点击玩法 hb.Play_Group_there() ####点击组三 hb.group_theres(2) hb2.Confirm_nu() # 点击确认选号 mur1 = hc1.Test_note_nu() ##读取注数 self.assertEqual('2', mur1) hc1.Multiple_input(5) ###点击倍数输入功能 mur = hc1.Test_multiple_show() ##读取倍数 self.assertEqual('5', mur) hc1.Pause_five() ###点击机选五注 mur2 = hc1.Test_multiple_show() ##读取倍数 self.assertEqual('5', mur2) mur3 = hc1.Test_note_nu() ##读取注数 self.assertEqual('7', mur3) hc.submit_order_to_station_owner_button() # 点击提交给站主 #hl.new_user_login_tab() # 点击新登录 hl.login_lelun() # 输入账号,密码 hc.submit_order_to_station_owner_button() # 点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付 mur4 = hd.assect_pay() ##读取支付状态文本 self.assertEqual('订单提交成功', mur4)
def test_arrany_there_Continue_switch_play_case(self): """,组三,继续选号,切换玩法为直选""" ha = HomePage_lelun(self.driver) hb = Arrang_there_choosenumber_lelun(self.driver) hb1 = Seven_color_choosenumber_lelun(self.driver) hb2 = ArrangeFiveChooseNumber_lelun(self.driver) hc = ConfirmLottery_lelun(self.driver) hc1 = ArrangeFiveConfirmLottery_lelun(self.driver) hl = Login_lelun(self.driver) hd = LessPaySucess_lelun(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.rank_three_link() ####点击排列3 hb.Play() ###点击玩法 hb.Play_Group_six() ####点击组六 hb.group_sixs(3) hb2.Confirm_nu() # 点击确认选号 hc1.Coun_nu() ###点击继续选号 hb.Play() ###点击玩法 hb.Play_Group_there() ####点击组三 hb.Switch_play_ok() ##点击确定 hb.group_theres(4) ###组三,选择4个号码 hb2.Confirm_nu() # 点击确认选号 hc.submit_order_to_station_owner_button() # 点击提交给站主 #hl.new_user_login_tab() # 点击新登录 hl.login_lelun() # 输入账号,密码 hc.submit_order_to_station_owner_button() # 点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付 mur1 = hd.assect_pay() ##读取支付状态文本 self.assertEqual('订单提交成功', mur1)
def test_group_there_clear_number_case(self): """验证选号页面,点击清除选号按钮功能""" ha = HomePage_lelun(self.driver) hb = Arrang_there_choosenumber_lelun(self.driver) hb1 = ArrangeFiveChooseNumber_lelun(self.driver) hb2 = UnionLottoChooseNumber_lelun(self.driver) hc = ConfirmLottery_lelun(self.driver) hd = ArrangeFiveConfirmLottery_lelun(self.driver) hl = Login_lelun(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.rank_three_link() ####点击排列3 hb.Play() ###点击玩法 hb.Play_Group_there() ####点击组三 hb.group_theres(4) hb2.clear_number() # 点击清除选号页面 hb1.Confirm_nu() # 点击确认选号 hb1.Confirm_nu() # 点击确认选号 mur = hd.Test_note_nu() self.assertEqual('2', mur) ####断言注数 hc.submit_order_to_station_owner_button() ##点击提交给站主 #hl.new_user_login_tab() # 点击新登录 hl.login_lelun() # 输入账号,密码 hc.submit_order_to_station_owner_button() # 点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付