コード例 #1
0
 def test_jxks_a_note_many_double_Continue_znzh_case(self):
     """1注多倍,继续选号,智能追号"""
     ha = HomePage_leyou(self.driver)
     hb = GXKS_ChooseNumber_leyou(self.driver)
     hb1 = ElevenFiveChooseNumber_leyou(self.driver)
     hc = JXKS_Confirm_leyou(self.driver)
     hc1 = EleChooseFiveConfirmLottery_leyou(self.driver)
     hc2 = ConfirmLottery_leyou(self.driver)
     hl = Login_leyou(self.driver)
     hd = LessPaySucess_leyou(self.driver)
     ssc_cl = CQSSCConfirmLottery_leyou(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_leyou()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc2.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
コード例 #2
0
 def test_intelligently_chase_ravise_chase_add_confirm_revise_case(self):
     '''【修改方案】点击连续追+按钮,点击【确定】,【提交】,提交订单'''
     hp = HomePage_leyou(self.driver)
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcl = EleChooseFiveConfirmLottery_leyou(self.driver)
     ssc_cl = CQSSCConfirmLottery_leyou(self.driver)
     od = OrderDetails_leyou(self.driver)
     l = Login_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_leyou()  # 登录
     hp.homepage_link()  # 点击首页
     hp.Moveable_float_close()
     hp.gd_11_5_link()  # 点击广东11选5链接
     efcn.spread_mode_button()  # 展开玩法
     efcn.mode_choose(23, 1)  # 广东11选5任选二
     efcn.hand_options(2)  # 任选2个号
     efcn.confirm_number_button()  # 点击确认选号
     text1 = efcl.lottery_chase_throw_text()
     self.assertIn("1注1期1倍", text1)
     ssc_cl.intelligently_chase_button()  # 点击智能追号
     text2 = ssc_cl.totalIssue_num()  # 获取追号期数文本
     ssc_cl.revise_button()  #点击修改方案
     ssc_cl.revise_chase_add()  #点击追号的+按钮
     ssc_cl.revise_confirm()  #点击确认修改
     text = ssc_cl.totalIssue_text()
     self.assertIn(str(text2 + 1), text)  # 检查是否修改追号期数
     ssc_cl.submit_button()  # 点击提交按钮
     cl.confirm_and_pay_button()  # 点击确认支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     text = sos.submit_order_success()  # 获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text)
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐优炫彩-粤11选5", trade_name)
コード例 #3
0
 def test_gxks_many_note_many_double_Continue_znzh_case(self):
     """多注多倍,继续选号,智能追号"""
     ha = HomePage_leyou(self.driver)
     hb = GXKS_ChooseNumber_leyou(self.driver)
     hb1 = ElevenFiveChooseNumber_leyou(self.driver)
     hc = JXKS_Confirm_leyou(self.driver)
     hc1 = EleChooseFiveConfirmLottery_leyou(self.driver)
     hc2 = ConfirmLottery_leyou(self.driver)
     hl = Login_leyou(self.driver)
     hd = LessPaySucess_leyou(self.driver)
     ssc_cl = CQSSCConfirmLottery_leyou(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.guangxi_express_three_link()  #点击广西快三
     hb.play_jxks_add()  ##点击和值
     hb.Add_choosenumber(2)  ##点击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('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_leyou()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc2.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
コード例 #4
0
 def test_intelligently_input_periods_case(self):
     '''进入智能追号页面,输入追11期,点击【提交】提交订单'''
     hp = HomePage_leyou(self.driver)
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcl = EleChooseFiveConfirmLottery_leyou(self.driver)
     ssc_cl = CQSSCConfirmLottery_leyou(self.driver)
     od = OrderDetails_leyou(self.driver)
     l = Login_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_leyou()  # 登录
     hp.homepage_link()  # 点击首页
     hp.Moveable_float_close()
     hp.sd_11_5_link()  # 点击山东11选5链接
     efcn.spread_mode_button()  # 展开玩法
     efcn.mode_choose(22, 1)  # 广西11选5任选二
     efcn.hand_options(2)  # 任选2个号
     efcn.confirm_number_button()  # 点击确认选号
     text1 = efcl.lottery_chase_throw_text()
     self.assertIn("1注1期1倍", text1)
     ssc_cl.intelligently_chase_button()  # 点击智能追号
     text2 = ssc_cl.totalIssue_num()  # 获取追号期数文本
     ssc_cl.znzh_issue_num_input(11)  # 输入追11期
     ssc_cl.totalIssue()  # 更新追号期数
     text = ssc_cl.totalIssue_text()
     self.assertIn(str(text2 + 1), text)  # 检查是否修改追号期数
     ssc_cl.submit_button()  # 点击提交按钮
     cl.confirm_and_pay_button()  # 点击确认支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     text = sos.submit_order_success()  # 获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text)
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐优炫彩-山东11选5", trade_name)