def test_Direct_Multiple_add_case(self): """验证确认投注页面,点击倍数+""" ha = HomePage(self.driver) hb = Arrang_there_choosenumber(self.driver) hb1 = UnionLottoChooseNumber(self.driver) hb2 = ArrangeFiveChooseNumber(self.driver) hc = ConfirmLottery(self.driver) hd = ArrangeFiveConfirmLottery(self.driver) hl = Login(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.rank_three_link() ####点击排列3 hb.Play() ###点击玩法 hb.Play_Direct() ####点击直选 hb.there_bais(1) # 随机选取百位去个数字 hb.there_shis(1) # 随机选取十位1个数字 hb.there_ges(1) # 随机选择个位1个数字 hb2.Confirm_nu() # 点击确认选号 hd.Multiple_add() ##点击倍数 +号 mur = hd.Test_multiple_show() # 读取倍数 self.assertEqual('2', mur) ##断言 hc.submit_order_to_station_owner_button() # 点击提交给站主 hl.new_user_login_tab() # 点击新登录 hl.login() # 输入账号,密码 hc.submit_order_to_station_owner_button() # 点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付
def test_group_there_Group_delet_case(self): """验证选号页面组合显示X 按钮功能""" ha = HomePage(self.driver) hb = There_D_choosenumber(self.driver) hb1 = ArrangeFiveChooseNumber(self.driver) hb2 = Arrang_there_choosenumber(self.driver) hc = ConfirmLottery(self.driver) hd = ArrangeFiveConfirmLottery(self.driver) hl = Login(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.fucai_3D_link() ###点击3D hb.Play_d() ###点击玩法 hb.Play_group_there_d() ####点击组三 hb.Screening_d(4) ###点击筛选中 全 按钮 hb2.Group_delet() hb1.Confirm_nu() # 点击确认选号 mur = hd.Test_note_nu() self.assertEqual('89', mur) ####断言注数 hc.submit_order_to_station_owner_button() ##点击提交给站主 hl.new_user_login_tab() # 点击新登录 hl.login() # 输入账号,密码 hc.submit_order_to_station_owner_button() # 点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付
def test_Direct_alter_nu_case(self): """验证确认投注页面,点击选择号码进行修改""" ha = HomePage(self.driver) hb = Arrang_there_choosenumber(self.driver) hb1 = UnionLottoChooseNumber(self.driver) hb2 = ArrangeFiveChooseNumber(self.driver) hc = ConfirmLottery(self.driver) hd = ArrangeFiveConfirmLottery(self.driver) hl = Login(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.rank_three_link() ####点击排列3 hb.Play() ###点击玩法 hb.Play_Direct() ####点击直选 hb1.machine_choose_button() ###点击机选 hb1.machine_choose_five_button() ##点击机选5注 hd.Note_none(2) mur = hd.Test_note_nu() self.assertEqual('13', mur) ####断言注数 hc.submit_order_to_station_owner_button() # 点击提交给站主 hl.new_user_login_tab() # 点击新登录 hl.login() # 输入账号,密码 hc.submit_order_to_station_owner_button() # 点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付
def test_Direct_iagree_case(self): """验证确认投注页面,'点击我已满18岁单选按钮""" ha = HomePage(self.driver) hb = Arrang_there_choosenumber(self.driver) hb1 = UnionLottoChooseNumber(self.driver) hb2 = ArrangeFiveChooseNumber(self.driver) hc = ConfirmLottery(self.driver) hd = ArrangeFiveConfirmLottery(self.driver) hl = Login(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.rank_three_link() ####点击排列3 hb.Play() ###点击玩法 hb.Play_Direct() ####点击直选 hb.there_bais(1) # 随机选取百位去个数字 hb.there_shis(1) # 随机选取十位1个数字 hb.there_ges(1) # 随机选择个位1个数字 hb2.Confirm_nu() # 点击确认选号 hd.Iagree() # 点击我已满18岁单选按钮 hc.submit_order_to_station_owner_button() # 点击提交给站主 hd.Know() # 点击我知道了 hd.Iagree() # 点击我已满18岁单选按钮 hc.submit_order_to_station_owner_button() # 点击提交给站主 hl.new_user_login_tab() # 点击新登录 hl.login() # 输入账号,密码 hc.submit_order_to_station_owner_button() # 点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付
def test_Direct_Del_all_nu_case(self): """验证确认投注页面,点击删除选号图标功能""" ha = HomePage(self.driver) hb = Arrang_there_choosenumber(self.driver) hb1 = UnionLottoChooseNumber(self.driver) hb2 = ArrangeFiveChooseNumber(self.driver) hc = ConfirmLottery(self.driver) hd = ArrangeFiveConfirmLottery(self.driver) hl = Login(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.rank_three_link() ####点击排列3 hb.Play() ###点击玩法 hb.Play_Direct() ####点击直选 hb1.machine_choose_button() ###点击机选 hb1.machine_choose_ten_button() ##点击机选10注 hc.delete_all_num_button() ###点击清除所有选号 hc.cancel_delete_button() # 点击取消 hc.delete_all_num_button() hc.confirm_delete_button() # 点击确定 hb1.machine_choose_button() ###点击机选 hb1.machine_choose_one_button() ##点击机选一注 hb2.Confirm_nu() # 点击确认选号 mur = hd.Test_note_nu() self.assertEqual('1', mur) ####断言注数 hc.submit_order_to_station_owner_button() ##点击提交给站主 hl.new_user_login_tab() # 点击新登录 hl.login() # 输入账号,密码 hc.submit_order_to_station_owner_button() # 点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付
def test_many_note_many_double_case(self): """多注多倍""" ha = HomePage(self.driver) hb = Arrang_there_choosenumber(self.driver) hb1 = UnionLottoChooseNumber(self.driver) hb2 = ArrangeFiveChooseNumber(self.driver) hc = ConfirmLottery(self.driver) hc1 = ArrangeFiveConfirmLottery(self.driver) hl = Login(self.driver) hd = LessPaySucess(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.rank_three_link() ####点击排列3 hb.Play() ###点击玩法 hb.Play_Direct() ####点击直选 hb.there_bais(2) # 随机选取百位去个数字 hb.there_shis(2) # 随机选取十位1个数字 hb.there_ges(2) # 随机选择个位1个数字 hb2.Confirm_nu() # 点击确认选号 hc1.Multiple_input(5) ###点击倍数输入功能 mur = hc1.Test_multiple_show() ##读取倍数 self.assertEqual('5',mur) mur1 = hc1.Test_note_nu() ##读取注数 self.assertEqual('8', mur1) hc.submit_order_to_station_owner_button() # 点击提交给站主 hl.new_user_login_tab() # 点击新登录 hl.login() # 输入账号,密码 hc.submit_order_to_station_owner_button() # 点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付 mur2 = hd.assect_pay() ##读取支付状态文本 self.assertEqual('订单提交成功', mur2)
def test_group_there_pause_one_case(self): """验证选号页面,点击机选一注功能""" ha = HomePage(self.driver) hb = Arrang_there_choosenumber(self.driver) hb1 = ArrangeFiveChooseNumber(self.driver) hb2 = UnionLottoChooseNumber(self.driver) hc = ConfirmLottery(self.driver) hd = ArrangeFiveConfirmLottery(self.driver) hl = Login(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.rank_three_link() ####点击排列3 hb.Play() ###点击玩法 hb.Play_Group_there() ####点击组三 hb2.machine_choose_button() ###点击机选 hb2.machine_choose_one_button() ##点击机选一注 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() # 输入账号,密码 hc.submit_order_to_station_owner_button() # 点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付
def test_Direct_chase_ticket_fifty_case(self): """"点击追加50期""" ha = HomePage(self.driver) hb = Arrang_there_choosenumber(self.driver) hb1 = UnionLottoChooseNumber(self.driver) hb2 = ArrangeFiveChooseNumber(self.driver) hc = ConfirmLottery(self.driver) hd = ArrangeFiveConfirmLottery(self.driver) hl = Login(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.rank_three_link() ####点击排列3 hb.Play() ###点击玩法 hb.Play_Direct() ####点击直选 hb.there_bais(1) # 随机选取百位去个数字 hb.there_shis(1) # 随机选取十位1个数字 hb.there_ges(1) # 随机选择个位1个数字 hb2.Confirm_nu() # 点击确认选号 hc.chase_ticket_button() ###点击追期 hc.chase_ticket_button_fifty() ##点击 50期 nu=hd.Test_period_show() self.assertEqual('50',nu) hc.submit_order_to_station_owner_button() # 点击提交给站主 hl.new_user_login_tab() # 点击新登录 hl.login() # 输入账号,密码 hc.submit_order_to_station_owner_button() # 点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付
def test_Play_instruction_case(self): """验证玩法说明""" ha = HomePage(self.driver) hb1=Arrang_there_choosenumber(self.driver) hb2 = There_D_choosenumber(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(self.driver) hb = RX9C_choosenumber(self.driver) hb1 = Arrang_there_choosenumber(self.driver) hb2 = There_D_choosenumber(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_arrang_there_history(self): """历史走势""" ha = HomePage(self.driver) hb1=Arrang_there_choosenumber(self.driver) hb = Seven_color_choosenumber(self.driver) hb2 = There_D_choosenumber(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.rank_three_link() ####点击排列3 hb2.Instruct()##点击右上角... hb1.Arrang_there_history()##点击历史走势 hb.Afive_down()###鼠标下拉 mur=hb1.Arrany_there_date()##随机取显示的数据 if mur=='': self.assertEqual('a',mur) else: print("历史走势展示正常")
def test_a_note_del_case(self): """单注号码,点击X按钮""" ha = HomePage(self.driver) hb = Arrang_there_choosenumber(self.driver) hb1 = UnionLottoChooseNumber(self.driver) hb2 = ArrangeFiveChooseNumber(self.driver) hc = ConfirmLottery(self.driver) hc1 = ArrangeFiveConfirmLottery(self.driver) hl = Login(self.driver) hd = LessPaySucess(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() # 点击确认选号 mur1 = hc1.Test_note_nu() ##读取注数 self.assertEqual('1', mur1) hc.submit_order_to_station_owner_button() # 点击提交给站主 #hl.new_user_login_tab() # 点击新登录 hl.login() # 输入账号,密码 hc.submit_order_to_station_owner_button() # 点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付 mur2 = hd.assect_pay() ##读取支付状态文本 self.assertEqual('订单提交成功', mur2)
def test_many_note_many_double_pause_five_case(self): """多注多倍,机选五注""" ha = HomePage(self.driver) hb = Arrang_there_choosenumber(self.driver) hb1 = UnionLottoChooseNumber(self.driver) hb2 = ArrangeFiveChooseNumber(self.driver) hc = ConfirmLottery(self.driver) hc1 = ArrangeFiveConfirmLottery(self.driver) hl = Login(self.driver) hd = LessPaySucess(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.rank_three_link() ####点击排列3 hb.Play() ###点击玩法 hb.Play_Group_six() ####点击组六 hb.group_sixs(4) hb2.Confirm_nu() # 点击确认选号 mur1 = hc1.Test_note_nu() ##读取注数 self.assertEqual('4', 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('9', mur3) hc.submit_order_to_station_owner_button() # 点击提交给站主 #hl.new_user_login_tab() # 点击新登录 hl.login() # 输入账号,密码 hc.submit_order_to_station_owner_button() # 点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付 mur4 = hd.assect_pay() ##读取支付状态文本 self.assertEqual('订单提交成功', mur4)
def test_group_six_Screening_s_da_case(self): """验证选号页面筛选 大 按钮功能""" ha = HomePage(self.driver) hb = Arrang_there_choosenumber(self.driver) hb1 = ArrangeFiveChooseNumber(self.driver) hc = ConfirmLottery(self.driver) hd = ArrangeFiveConfirmLottery(self.driver) hl = Login(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.rank_three_link() ####点击排列3 hb.Play() ###点击玩法 hb.Play_Group_six() ####点击组六 hb.Screening_s(2) ###点击筛选中 大 按钮 hb1.Confirm_nu() # 点击确认选号 mur = hd.Test_note_nu() self.assertEqual('10', mur) ####断言注数 hc.submit_order_to_station_owner_button() ##点击提交给站主 #hl.new_user_login_tab() # 点击新登录 hl.login() # 输入账号,密码 hc.submit_order_to_station_owner_button() # 点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付
def test_seven_color_Del_all_nu_case(self): """验证确认投注页面,点击删除选号图标功能""" ha = HomePage(self.driver) hb = Arrang_there_choosenumber(self.driver) hb1 = There_D_choosenumber(self.driver) hb2 = ArrangeFiveChooseNumber(self.driver) hc = ConfirmLottery(self.driver) hc1 = ArrangeFiveConfirmLottery(self.driver) hl = Login(self.driver) hd = LessPaySucess(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.rank_three_link() ####点击排列3 hb.Play() ###点击玩法 hb.Play_Direct() ####点击直选 hb.there_bais(2) # 随机选取百位去个数字 hb.there_shis(1) # 随机选取十位1个数字 hb.there_ges(1) # 随机选择个位1个数字 hb2.Confirm_nu() # 点击确认选号 hc.delete_all_num_button() ###点击清除所有选号 mur=hb1.Clear() self.assertEqual('清空',mur)
def test_arrany_there_play(self): """切换玩法""" ha = HomePage(self.driver) hb = Arrang_there_choosenumber(self.driver) hb1 = There_D_choosenumber(self.driver) hb2 = ArrangeFiveChooseNumber(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.rank_three_link() ####点击排列3 hb.Play()##点击玩法 hb.Play_Direct()###点击直选 mur1 = hb1.Show_play() self.assertEqual('排列三-直选', mur1) hb.Play() ##点击玩法 hb.Play_Group_there() ###点击组三 mur2 = hb1.Show_play() self.assertEqual('排列三-组三', mur2) hb.Play() ##点击玩法 hb.Play_Group_six() ###点击组六 mur3 = hb1.Show_play() self.assertEqual('排列三-组六', mur3)
def test_seven_color_Del_all_nu_ok_case(self): """验证确认投注页面,点击删除选号,点击确定""" ha = HomePage(self.driver) hb = Arrang_there_choosenumber(self.driver) hb1 = Seven_color_choosenumber(self.driver) hb2 = ArrangeFiveChooseNumber(self.driver) hc = ConfirmLottery(self.driver) hc1 = PaintBallChooseNumber(self.driver) hl = Login(self.driver) hd = LessPaySucess(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() # 点击确认选号 hc.delete_all_num_button() ###点击清除所有选号 hc.confirm_delete_button() # 点击确定 mur = hc1.Play_fb() self.assertEqual('玩\n法', mur)
def test_arrany_there_Continue_switch_play_case(self): """,组三,继续选号,切换玩法为直选""" ha = HomePage(self.driver) hb = Arrang_there_choosenumber(self.driver) hb1 = Seven_color_choosenumber(self.driver) hb2 = ArrangeFiveChooseNumber(self.driver) hc = ConfirmLottery(self.driver) hc1 = ArrangeFiveConfirmLottery(self.driver) hl = Login(self.driver) hd = LessPaySucess(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() # 输入账号,密码 hc.submit_order_to_station_owner_button() # 点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付 mur1 = hd.assect_pay() ##读取支付状态文本 self.assertEqual('订单提交成功', mur1)
def test_Direct_all_choosenumber_case(self): """验证选号页面数字球功能""" ha = HomePage(self.driver) hb=Arrang_there_choosenumber(self.driver) hb1=ArrangeFiveChooseNumber(self.driver) hc = ConfirmLottery(self.driver) hl = Login(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.rank_three_link()####点击排列3 hb.Play()###点击玩法 hb.Play_Direct()####点击直选 hb.there_bai()##点击百位全部数字 hb.there_shi()##点击十位全部数字 hb.there_ge()##点击个位全部数字 hb.there_bai()##取消百位全部数字 hb.there_shi()##取消十位全部数字 hb.there_ge()##取消个位全部数字 hb.there_bais(1)#随机选取百位1个数字 hb.there_shis(1)#随机选取十位1个数字 hb.there_ges(1)#随机选择个位1个数字 hb1.Confirm_nu()#点击确认选号 hc.submit_order_to_station_owner_button()##点击提交给站主 hl.new_user_login_tab() # 点击新登录 hl.login() # 输入账号,密码 hc.submit_order_to_station_owner_button() # 点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付