1.流量回放
1.1jvm-sandbox-repeate:
- 支持api的录制回放:https://testerhome.com/topics/19841
- 支持get、post(数据库写入时会模拟已写入,mock 掉)
- 结果比对比较简单,只检查返回码和response:
- 主要作用:压测、回归
1.2diffy:
- get接口可适用
- post接口涉及到数据库的写入,不太适合。
- 可进行线上和测试环境的接口结果比对。
或者直接导流再在平台上回放
2.接口巡检
确认线上接口正常(响应码为200和body正确)
- 可以通过爬虫
- 可以自己自定义搭建平台
- 通过现有的工具如,Xenu(貌似只能检测404的死链接):https://blog.csdn.net/baidu_34331290/article/details/84027910