def test_threestar_choose_all_case(self):
     '''二星直选玩法,个十百三位各选所有号码'''
     hp = HomePage_lexiu(self.driver)
     hp.open()
     l = Login_lexiu(self.driver)
     efcn = ElevenFiveChooseNumber_lexiu(self.driver)
     efcl = EleChooseFiveConfirmLottery_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     sos = SubmitOrderSuccess_lexiu(self.driver)
     hp.Moveable_float_close()  #点击关闭浮窗
     hp.My_lottery_ticket()  #点击我的彩票
     l.login_lexiu()  #点击登录
     hp.homepage_link()  #点击首页
     hp.cqssc_link()  #点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_lexiu(self.driver)
     ssc_cn.play_mode()  #选择模式
     ssc_cn.three_star()  #选择三星
     ssc_cn.baiwei_all()
     ssc_cn.shiwei_all()
     ssc_cn.gewei_all()
     aa = efcn.total_buy_text()
     self.assertIn("1000注 ", aa)
     efcn.confirm_number_button()  # 点击确认选号
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     text = sos.submit_order_success()  # 获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text)
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐秀赢球-重庆时时彩", trade_name)
Ejemplo n.º 2
0
 def test_threestar_machine_choose_ten_case(self):
     '''三星玩法,机选10注,确认选号提交订单'''
     hp = HomePage_lexiu(self.driver)
     hp.open()
     l = Login_lexiu(self.driver)
     efcn = ElevenFiveChooseNumber_lexiu(self.driver)
     efcl = EleChooseFiveConfirmLottery_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     sos = SubmitOrderSuccess_lexiu(self.driver)
     ulcn = UnionLottoChooseNumber_lexiu(self.driver)
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lexiu()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.cqssc_link()  # 点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_lexiu(self.driver)
     ssc_cn.play_mode()  # 选择模式
     ssc_cn.three_star()  # 选择三星
     ulcn.machine_choose_button()  # 点击机选
     ulcn.machine_choose_ten_button()  # 机选10注
     bb = efcl.lottery_chase_throw_text()  # 获取注数倍数
     self.assertIn("10注1期1倍", bb)
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     text = sos.submit_order_success()  # 获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text)
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐秀赢球-重庆时时彩", trade_name)
 def test_threestar_choose_one_continue_buy_caizhong_case(self):
     '''验证购买成功页【点击继续投注该彩种】,页面跳转至选号页面'''
     hp = HomePage_lexiu(self.driver)
     hp.open()
     l = Login_lexiu(self.driver)
     efcn = ElevenFiveChooseNumber_lexiu(self.driver)
     efcl = EleChooseFiveConfirmLottery_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     sos = SubmitOrderSuccess_lexiu(self.driver)
     od = OrderDetails_lexiu(self.driver)
     hp.Moveable_float_close()  #点击关闭浮窗
     hp.My_lottery_ticket()  #点击我的彩票
     l.login_lexiu()  #点击登录
     hp.homepage_link()  #点击首页
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.cqssc_link()  #点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_lexiu(self.driver)
     ssc_cn.play_mode()  #选择模式
     ssc_cn.three_star()  #选择三星
     num1 = ssc_cn.three_star_select(1, 1, 1)
     efcn.confirm_number_button()  # 点击确认选号
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     sos.Continue_buy()  #点击继续投注该彩种
     cc = efcn.total_buy_text()
     self.assertIn("请每位至少选择1个号码", cc, '页面未跳转至选号页面')
 def test_threestar_choose_one_case(self):
     '''三星直选玩法,个位十位百位各选一个号码并提交订单流程测试'''
     hp = HomePage_lexiu(self.driver)
     hp.open()
     l = Login_lexiu(self.driver)
     efcn = ElevenFiveChooseNumber_lexiu(self.driver)
     efcl = EleChooseFiveConfirmLottery_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     sos = SubmitOrderSuccess_lexiu(self.driver)
     od = OrderDetails_lexiu(self.driver)
     hp.Moveable_float_close()  #点击关闭浮窗
     hp.My_lottery_ticket()  #点击我的彩票
     l.login_lexiu()  #点击登录
     hp.homepage_link()  #点击首页
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.cqssc_link()  #点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_lexiu(self.driver)
     ssc_cn.play_mode()  #选择模式
     ssc_cn.three_star()  #选择三星
     num1 = ssc_cn.three_star_select(1, 1, 1)  #百十个位各选一个数字
     aa = efcn.total_buy_text()
     self.assertIn("1注 ", aa)
     efcn.confirm_number_button()  # 点击确认选号
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     text = sos.submit_order_success()  # 获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text)
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐秀赢球-重庆时时彩", trade_name)
     sos.check_order_details()  #点击查看订单详情
     num2 = od.bet_number()  #获取页面投注号码
     self.assertIn(num1, num2)
 def test_threestar_choose_one_continue_buy_case(self):
     '''验证订单详情页【继续购买该方案】页面跳转至投注确认页,流程'''
     hp = HomePage_lexiu(self.driver)
     hp.open()
     l = Login_lexiu(self.driver)
     efcn = ElevenFiveChooseNumber_lexiu(self.driver)
     efcl = EleChooseFiveConfirmLottery_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     sos = SubmitOrderSuccess_lexiu(self.driver)
     od = OrderDetails_lexiu(self.driver)
     hp.Moveable_float_close()  #点击关闭浮窗
     hp.My_lottery_ticket()  #点击我的彩票
     l.login_lexiu()  #点击登录
     hp.homepage_link()  #点击首页
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.cqssc_link()  #点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_lexiu(self.driver)
     ssc_cn.play_mode()  #选择模式
     ssc_cn.three_star()  #选择三星
     ssc_cn.baiwei_random(1)
     ssc_cn.shiwei_random(1)
     ssc_cn.gewei_random(1)
     efcn.confirm_number_button()  # 点击确认选号
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     sos.check_order_details()  # 点击查看订单详情
     od.Scheme()  #点击继续购买该方案
     text = cl.lottery_confirm_num_page_text()
     self.assertEqual("投注确认", text, '页面未跳转至投注确认页')
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     text = sos.submit_order_success()  # 获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text)
 def test_threestar_choose_one_clear_num(self):
     '''选择一个号码,点击【清除所有选号】,重新选择一个号码,提交订单'''
     hp = HomePage_lexiu(self.driver)
     hp.open()
     l = Login_lexiu(self.driver)
     efcn = ElevenFiveChooseNumber_lexiu(self.driver)
     ulcn = UnionLottoChooseNumber_lexiu(self.driver)
     efcl = EleChooseFiveConfirmLottery_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     sos = SubmitOrderSuccess_lexiu(self.driver)
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lexiu()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.cqssc_link()  # 点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_lexiu(self.driver)
     ssc_cn.play_mode()  # 选择模式
     ssc_cn.three_star()  # 选择三星
     ssc_cn.baiwei_random(1)
     ssc_cn.shiwei_random(1)
     ssc_cn.gewei_random(1)
     aa = efcn.total_buy_text()
     self.assertIn("1注 ", aa)
     ulcn.clear_number()  #清除所有选号
     cc = efcn.total_buy_text()
     self.assertIn("请每位至少选择1个号码", cc)
     ssc_cn.baiwei_random(2)
     ssc_cn.shiwei_random(2)
     ssc_cn.gewei_random(2)
     bb = efcn.total_buy_text()
     self.assertIn("8注 ", bb)
     efcn.confirm_number_button()  # 点击确认选号
     bb = efcl.lottery_chase_throw_text()  # 获取注数倍数
     self.assertIn("8注1期1倍", bb)
     efcl.submit_order_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("商品名称:乐秀赢球-重庆时时彩", trade_name)
 def test_threestar_choose_all_cancel_case(self):
     '''三星直选玩法,选择所有选号,再次点击取消流程'''
     hp = HomePage_lexiu(self.driver)
     hp.open()
     l = Login_lexiu(self.driver)
     efcn = ElevenFiveChooseNumber_lexiu(self.driver)
     hp.Moveable_float_close()  #点击关闭浮窗
     hp.My_lottery_ticket()  #点击我的彩票
     l.login_lexiu()  #点击登录
     hp.homepage_link()  #点击首页
     hp.cqssc_link()  #点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_lexiu(self.driver)
     ssc_cn.play_mode()  #选择模式
     ssc_cn.three_star()  #选择三星
     ssc_cn.baiwei_all()
     ssc_cn.shiwei_all()
     ssc_cn.gewei_all()
     aa = efcn.total_buy_text()
     self.assertIn("1000注 ", aa)
     ssc_cn.baiwei_all()
     ssc_cn.shiwei_all()
     ssc_cn.gewei_all()
     aa = efcn.total_buy_text()
     self.assertIn("请每位至少选择1个号码", aa)