def test_11(self, bzhh: Bazihehun): '''输入正常的信息,跳转是否正常''' bzhh.open("/bazihehun/index?channel=online_paytest") bzhh.normal_information() current_url = bzhh.get_url() acturl_url = re.findall("https://(.+?)/pay?", current_url)[0] expect_url = "cs.lingbz.com/bazihehun" assert acturl_url == expect_url
def test_16(self, bzhh: Bazihehun): '''跳转到历史订单是否正常''' bzhh.open("/bazihehun/index?channel=online_paytest") bzhh.click_lsdd() current_url = bzhh.get_url() acturl_tips = re.findall("https://(.+?)/index?", current_url)[0] expect_tips = "cs.lingbz.com/orderquery" assert acturl_tips == expect_tips