Exemple #1
0
 def test_jxks_Continue_case(self):
     """继续选号"""
     ha = HomePage_lexiu(self.driver)
     hb = GXKS_ChooseNumber_lexiu(self.driver)
     hb1 = ElevenFiveChooseNumber_lexiu(self.driver)
     hc = JXKS_Confirm_lexiu(self.driver)
     hc1 = EleChooseFiveConfirmLottery_lexiu(self.driver)
     hc2 = ConfirmLottery_lexiu(self.driver)
     hl = Login_lexiu(self.driver)
     hd = LessPaySucess_lexiu(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.guangxi_express_three_link()  # 点击广西快三
     hb.play_jxks_ethdx()  ##点击二同号单选
     hb.Ethdx(3)  ##点击3注
     hb1.confirm_number_button()  ###点击确认选号
     hc.Cont()  ###点击继续选号
     hb.Ethdx(1)  ##点击1注
     hb1.confirm_number_button()  ###点击确认选号
     mur = hc1.lottery_chase_throw_text()  #读取注数
     self.assertEqual('10注1期1倍共20元', mur)
     hc1.submit_order_button()  # 点击提交给站主
     hl.login_lexiu()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc2.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
Exemple #2
0
 def test_jxks_many_note_many_double_Continue_znzh_tj_case(self):
     """多注多倍,继续选号,智能追号,提交"""
     ha = HomePage_lexiu(self.driver)
     hb = GXKS_ChooseNumber_lexiu(self.driver)
     hb1 = ElevenFiveChooseNumber_lexiu(self.driver)
     hc = JXKS_Confirm_lexiu(self.driver)
     hc1 = EleChooseFiveConfirmLottery_lexiu(self.driver)
     hc2 = ConfirmLottery_lexiu(self.driver)
     hl = Login_lexiu(self.driver)
     hd = LessPaySucess_lexiu(self.driver)
     ssc_cl = CQSSCConfirmLottery_lexiu(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.guangxi_express_three_link()  # 点击广西快三
     hb.play_jxks_ethdx()  ##点击二同号单选
     hb.Ethdx(3)  ##点击3注
     hb1.confirm_number_button()  ###点击确认选号
     hc.Button_add()  #点击倍数+号
     hc.Cont()  ###点击继续选号
     hb.Ethdx(1)  ##点击1注
     hb1.confirm_number_button()  ###点击确认选号
     mur = hc1.lottery_chase_throw_text()  #读取注数
     self.assertEqual('10注1期2倍共40元', mur)
     ssc_cl.intelligently_chase_button()  # 点击智能追号
     ssc_cl.submit_button()  # 点击提交按钮
     hl.login_lexiu()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc2.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
 def test_jxks_a_note_many_double_Continue_case(self):
     """1注多倍,继续选号"""
     ha = HomePage_lexiu(self.driver)
     hb = GXKS_ChooseNumber_lexiu(self.driver)
     hb1 = ElevenFiveChooseNumber_lexiu(self.driver)
     hc = JXKS_Confirm_lexiu(self.driver)
     hc1 = EleChooseFiveConfirmLottery_lexiu(self.driver)
     hc2 = ConfirmLottery_lexiu(self.driver)
     hl = Login_lexiu(self.driver)
     hd = LessPaySucess_lexiu(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.guangxi_express_three_link()  # 点击广西快三
     hb.play_jxks_slhtx()  ##点击三连号通选
     hb.Slhtx_th()  ##点击选号
     hb1.confirm_number_button()###点击确认选号
     hc1.throw_times_input(13)  ##输入倍数13倍
     hc.Button_less()###点击倍数-号
     hc.Cont()###点击继续选号
     hb.Slhtx_th()  ##点击选号
     hb1.confirm_number_button()###点击确认选号
     mur=hc1.lottery_chase_throw_text()#读取注数
     self.assertEqual('2注1期12倍共48元',mur)
     hc1.submit_order_button()  # 点击提交给站主
     hl.login_lexiu()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc2.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
 def test_gxks_many_note_many_double_Continue_case(self):
     """多注多倍,继续选号"""
     ha = HomePage_lexiu(self.driver)
     hb = GXKS_ChooseNumber_lexiu(self.driver)
     hb1 = ElevenFiveChooseNumber_lexiu(self.driver)
     hc = JXKS_Confirm_lexiu(self.driver)
     hc1 = EleChooseFiveConfirmLottery_lexiu(self.driver)
     hc2 = ConfirmLottery_lexiu(self.driver)
     hl = Login_lexiu(self.driver)
     hd = LessPaySucess_lexiu(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.guangxi_express_three_link()  #点击广西快三
     hb.play_jxks_add()  ##点击和值
     hb.Add_choosenumber(5)  ##点击1注
     hb1.confirm_number_button()  ###点击确认选号
     hc.Button_add()  #点击倍数+号
     hc.Cont()  ###点击继续选号
     hb.Add_choosenumber(1)  ##点击1注
     hb1.confirm_number_button()  ###点击确认选号
     mur = hc1.lottery_chase_throw_text()  #读取注数
     self.assertEqual('6注1期2倍共24元', mur)
     hc1.submit_order_button()  # 点击提交给站主
     hl.login_lexiu()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc2.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
 def test_jxks_a_note_many_double_Continue_znzh_case(self):
     """1注多倍,继续选号,智能追号"""
     ha = HomePage_lexiu(self.driver)
     hb = GXKS_ChooseNumber_lexiu(self.driver)
     hb1 = ElevenFiveChooseNumber_lexiu(self.driver)
     hc = JXKS_Confirm_lexiu(self.driver)
     hc1 = EleChooseFiveConfirmLottery_lexiu(self.driver)
     hc2 = ConfirmLottery_lexiu(self.driver)
     hl = Login_lexiu(self.driver)
     hd = LessPaySucess_lexiu(self.driver)
     ssc_cl = CQSSCConfirmLottery_lexiu(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.guangxi_express_three_link()  # 点击广西快三
     hb.play_jxks_slhtx()  ##点击三连号通选
     hb.Slhtx_th()  ##点击选号
     hb1.confirm_number_button()###点击确认选号
     hc1.throw_times_input(13)  ##输入倍数13倍
     hc.Button_less()###点击倍数-号
     hc.Cont()###点击继续选号
     hb.Slhtx_th()  ##点击选号
     hb1.confirm_number_button()###点击确认选号
     mur=hc1.lottery_chase_throw_text()#读取注数
     self.assertEqual('2注1期12倍共48元',mur)
     ssc_cl.intelligently_chase_button()  # 点击智能追号
     text2 = ssc_cl.totalIssue_num()  # 获取追号期数文本
     ssc_cl.revise_button()  # 点击修改方案
     ssc_cl.revise_chase_input(12)  # 追号的输入框输入12
     ssc_cl.revise_cancel()  # 点击取消修改
     text = ssc_cl.totalIssue_text()
     self.assertIn(str(text2), text)  # 检查是否修改追号期数
     ssc_cl.submit_button()  # 点击提交按钮
     hl.login_lexiu()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc2.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
 def test_jxks_many_note_many_double_Continue_znzh_case(self):
     """多注多倍,继续选号,智能追号"""
     ha = HomePage_lexiu(self.driver)
     hb = GXKS_ChooseNumber_lexiu(self.driver)
     hb1 = ElevenFiveChooseNumber_lexiu(self.driver)
     hc = JXKS_Confirm_lexiu(self.driver)
     hc1 = EleChooseFiveConfirmLottery_lexiu(self.driver)
     hc2 = ConfirmLottery_lexiu(self.driver)
     hl = Login_lexiu(self.driver)
     hd = LessPaySucess_lexiu(self.driver)
     ssc_cl = CQSSCConfirmLottery_lexiu(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.guangxi_express_three_link()  # 点击广西快三
     hb.play_jxks_ethfx()  ##点击二同号复选
     hb.Ethfx(2)  ##点击2注
     hb1.confirm_number_button()###点击确认选号
     hc.Button_add()  #点击倍数+号
     hc.Cont()###点击继续选号
     hb.Ethfx(1)##点击1注
     hb1.confirm_number_button()###点击确认选号
     mur=hc1.lottery_chase_throw_text()#读取注数
     self.assertEqual('3注1期2倍共12元',mur)
     ssc_cl.intelligently_chase_button()  # 点击智能追号
     text = ssc_cl.totalIssue_text()
     ssc_cl.revise_button()  # 点击修改方案
     ssc_cl.revise_times_add()  # 点击起始倍数的+
     ssc_cl.revise_confirm()  # 点击确认修改
     text1 = ssc_cl.totalIssue_text()
     self.assertNotEqual(text1, text, '倍数没有被修改')  # 检查是否修改追号期数
     ssc_cl.submit_button()  # 点击提交按钮
     hl.login_lexiu()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc2.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)