예제 #1
0
 def test_12(self, bzhh: Bazihehun):
     '''调起微信支付是否正常'''
     bzhh.open("/bazihehun/index?channel=online_paytest")
     bzhh.wechat_pay()
     acturl_tips = bzhh.get_title()
     expect_title = "灵机支付 - 微信扫码支付"
     assert acturl_tips == expect_title
예제 #2
0
 def test_20(self, bzhh: Bazihehun):
     '''在历史订单中调起paypal支付是否正常'''
     bzhh.open("/bazihehun/index?channel=online_paytest")
     bzhh.dd_pp_pay()
     acturl_tips = bzhh.get_title()
     expect_title = "登录您的PayPal账户"
     assert acturl_tips == expect_title
예제 #3
0
 def test_19(self, bzhh: Bazihehun):
     '''在历史订单中调起银联支付是否正常'''
     bzhh.open("/bazihehun/index?channel=online_paytest")
     bzhh.dd_yl_pay()
     acturl_tips = bzhh.get_title()
     if acturl_tips == 'Unionpay Online Payment-Comprehensive online trading transfer and liquidation platform!':
         assert True
     else:
         expect_title = "银联在线支付-银行卡综合性网上交易转接清算平台!"
         assert acturl_tips == expect_title
예제 #4
0
 def test_18(self, bzhh: Bazihehun):
     '''在历史订单中调起支付宝支付是否正常'''
     bzhh.open("/bazihehun/index?channel=online_paytest")
     bzhh.dd_zfb_pay()
     acturl_title = bzhh.get_title()
     expect_title1 = "支付宝"
     expect_title2 = "支付宝 - 网上支付 安全快速!"
     if acturl_title == "支付宝":
         assert acturl_title == expect_title1
     else:
         assert acturl_title == expect_title2