wwqcoder / iInterface

接口测试用例Sample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iInterface

接口测试用例Sample

  1. 测试城市天气状况接口,
  2. 请求天气接口 例如: 北京 http://www.weather.com.cn/data/cityinfo/101010100.html
  3. 解析返回JSON值, 实际值 期望值比对
  4. 输出测试报告

Mock演示方法

  1. mock server 代码在 py/weather.py, 使用python3运行
  2. 将iInterface.properties复制/粘贴到 {user.home} 目录下, 配置 server_addr 参数

About

接口测试用例Sample


Languages

Language:Java 52.7%Language:Python 24.7%Language:Shell 22.5%