当前位置:网站首页>技术分享 | 接口测试价值与体系
技术分享 | 接口测试价值与体系
2022-07-04 17:09:00 【Hogwarts_测试】
本文节选自霍格沃兹测试开发学社内部教材
如果把测试简单分为两类,那么就是客户端测试和服务端测试。移动端的测试包括 UI 测试,兼容性测试等,服务端测试包括接口测试。接口测试检查数据的交换、传递和控制管理过程。它绕过了客户端,直接对服务端进行测试。
接口测试的价值
服务端非常复杂,就像下图的阿里核心链路图,包含大约 150 个组件,组件与组件之间进行交互,形成了密集的后端网络。UI 测试无法覆盖这么复杂的组件交互网络,所以要绕过客户端,直接使用接口测试对服务端进行测试。
接口测试的体系
对行业的各种测试进行分层,越往上,发现 bug 的时间越晚,成本越高。接口测试(Service)相比 UI 测试,可以更早发现问题,更快的质量反馈;同理,单元测试(Unit)相比接口测试,可以更早发现问题,更快的质量反馈,花费的成本更低。
分层测试:
客户端测试与服务端测试的关系
虽然接口测试覆盖面广,但是也不能使用接口测试替代客户端测试。UI 测试涉及到了用户体验的问题,这部分是无法用接口测试进行替代的。
边栏推荐
- LD_ LIBRARY_ Path environment variable setting
- Wireshark packet capturing TLS protocol bar displays version inconsistency
- 2022年DCMM认证全国各地补贴政策汇总
- 力扣刷題日記/day6/6.28
- Scala基础教程--15--递归
- [mathematical modeling of graduate students in Jiangxi Province in 2022] analysis and code implementation of haze removal by nucleation of water vapor supersaturation
- File processing examples of fopen, FREAD, fwrite, fseek
- ITSS运维能力成熟度分级详解|一文搞清ITSS证书
- LD_LIBRARY_PATH 环境变量设置
- Lua EmmyLua 注解详解
猜你喜欢
How is the entered query SQL statement executed?
[go ~ 0 to 1] read, write and create files on the sixth day
Scala基础教程--16--泛型
.NET ORM框架HiSql实战-第二章-使用Hisql实现菜单管理(增删改查)
An example of multi module collaboration based on NCF
Blue bridge: sympodial plant
VMware Tools和open-vm-tools的安装与使用:解决虚拟机不全屏和无法传输文件的问题
Li Kou brush question diary /day7/6.30
Stars open stores, return, return, return
基于NCF的多模块协同实例
随机推荐
[211] go handles the detailed documents of Excel library
Li Kou brush question diary /day7/6.30
Scala基础教程--12--读写数据
Li Kou brush question diary /day5/2022.6.27
Halcon template matching
Android uses sqliteopenhelper to flash back
Lua emmylua annotation details
Nature microbiology | viral genomes in six deep-sea sediments that can infect Archaea asgardii
What types of Thawte wildcard SSL certificates provide
Interview summary of large factory Daquan II
File processing examples of fopen, FREAD, fwrite, fseek
With the stock price plummeting and the market value shrinking, Naixue launched a virtual stock, which was deeply in dispute
[system disk back to U disk] record the operation of system disk back to U disk
Detailed explanation of the maturity classification of ITSS operation and maintenance capability | one article clarifies the ITSS certificate
线上MySQL的自增id用尽怎么办?
[go language question brushing chapter] go conclusion chapter | introduction to functions, structures, interfaces, and errors
Grain Mall (I)
未来几年中,软件测试的几大趋势是什么?
How to download files using WGet and curl
.NET ORM框架HiSql实战-第二章-使用Hisql实现菜单管理(增删改查)