check_pc_purchase_intention.py 552 B

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