当前位置:网站首页>技术分享 | 接口测试价值与体系
技术分享 | 接口测试价值与体系
2022-07-28 05:28:00 【叶赫那拉 赫敏】
如果把测试简单分为两类,那么就是客户端测试和服务端测试。移动端的测试包括 UI 测试,兼容性测试等,服务端测试包括接口测试。接口测试检查数据的交换、传递和控制管理过程。它绕过了客户端,直接对服务端进行测试。

接口测试的价值
服务端非常复杂,就像下图的阿里核心链路图,包含大约 150 个组件,组件与组件之间进行交互,形成了密集的后端网络。UI 测试无法覆盖这么复杂的组件交互网络,所以要绕过客户端,直接使用接口测试对服务端进行测试。

接口测试的体系
对行业的各种测试进行分层,越往上,发现 bug 的时间越晚,成本越高。接口测试(Service)相比 UI 测试,可以更早发现问题,更快的质量反馈;同理,单元测试(Unit)相比接口测试,可以更早发现问题,更快的质量反馈,花费的成本更低。
分层测试:

客户端测试与服务端测试的关系
虽然接口测试覆盖面广,但是也不能使用接口测试替代客户端测试。UI 测试涉及到了用户体验的问题,这部分是无法用接口测试进行替代的。
边栏推荐
- [C language] custom structure type
- Pyppeter drop-down selenium drop-down
- SSAO By Computer Shader(一)
- 浅谈Cookie和Session
- redis缓存设计与性能优化
- 进程和线程的区别
- Redis implementation of distributed lock and analysis of the main process of redismission distributed lock
- Mysql-8.0.17-winx64 (additional Navicat) manual configuration version installation
- Graphic pipeline foundation (part outside)
- OJ 1089 春运
猜你喜欢
随机推荐
SSAO by computer shader (III)
水瓶效果制作
[queue, simple application of stack ---- packaging machine]
Question brushing record -- binary tree
Development of Quantitative Trading Robot System
OJ 1018 counting game
NFT data storage blind box + mode system development
从普通查询商品到高并发查询商品的优化思路
NIO示例
Initializingbean interface and examples
feignclient @RequestMapping参数设置及请求头简易方式设置
HDU-1159-CommonSubsequence(LCS最长公共子序列)
准备开始写博客了
Battle plague Cup -- strange shape
战疫杯--我的账本
Development of clip arbitrage / brick carrying arbitrage system
遍历 二叉树
Fermat's theorem
RayMarching realizes volume light rendering
AQS之ReentrantLock源码解析
![[dynamic planning -- the best period for buying and selling stocks series 3]](/img/9f/f6c07264f5ffaa0fdfcc724c713e83.png)





![[hash table basics]](/img/8f/54a4780a02f81e5de3d92c25248e1e.png)

