1234567891011121314151617 |
- from hytest import *
- from lib.linkapi import apilink
- class c1:
- tags = ['验证未登录采购意向页面是否能打开']
- def teststeps(self): # Method should be named 'teststeps'
- INFO("测试步骤")
- STEP(1, "定义检查连接")
- # 定义检查的连接
- url = "https://www.jianyu360.cn/list/stype/CGYX.html"
- result = apilink.obtain_url_title(url)
- # 定义检查点(result)
- CHECK_POINT("pc端采购意向", result == "剑鱼标讯官网-全国采购意向信息")
|