当前位置:网站首页>技术分享 | 接口测试价值与体系
技术分享 | 接口测试价值与体系
2022-07-04 17:09:00 【Hogwarts_测试】
本文节选自霍格沃兹测试开发学社内部教材
如果把测试简单分为两类,那么就是客户端测试和服务端测试。移动端的测试包括 UI 测试,兼容性测试等,服务端测试包括接口测试。接口测试检查数据的交换、传递和控制管理过程。它绕过了客户端,直接对服务端进行测试。
接口测试的价值
服务端非常复杂,就像下图的阿里核心链路图,包含大约 150 个组件,组件与组件之间进行交互,形成了密集的后端网络。UI 测试无法覆盖这么复杂的组件交互网络,所以要绕过客户端,直接使用接口测试对服务端进行测试。
接口测试的体系
对行业的各种测试进行分层,越往上,发现 bug 的时间越晚,成本越高。接口测试(Service)相比 UI 测试,可以更早发现问题,更快的质量反馈;同理,单元测试(Unit)相比接口测试,可以更早发现问题,更快的质量反馈,花费的成本更低。
分层测试:
客户端测试与服务端测试的关系
虽然接口测试覆盖面广,但是也不能使用接口测试替代客户端测试。UI 测试涉及到了用户体验的问题,这部分是无法用接口测试进行替代的。
边栏推荐
- SIGMOD’22 HiEngine论文解读
- VMware Tools和open-vm-tools的安装与使用:解决虚拟机不全屏和无法传输文件的问题
- 【2022年江西省研究生数学建模】水汽过饱和的核化除霾 思路分析及代码实现
- fopen、fread、fwrite、fseek 的文件处理示例
- TCP waves twice, have you seen it? What about four handshakes?
- 李迟2022年6月工作生活总结
- 爬虫(6) - 网页数据解析(2) | BeautifulSoup4在爬虫中的使用
- 怎么开户才是安全的,
- 输入的查询SQL语句,是如何执行的?
- Scala基础教程--20--Akka
猜你喜欢
. Net ORM framework hisql practice - Chapter 2 - using hisql to realize menu management (add, delete, modify and check)
Scala basic tutorial -- 18 -- set (2)
Crawler (6) - Web page data parsing (2) | the use of beautifulsoup4 in Crawlers
一种将Tree-LSTM的强化学习用于连接顺序选择的方法
Principle and application of ThreadLocal
[mathematical modeling of graduate students in Jiangxi Province in 2022] analysis and code implementation of haze removal by nucleation of water vapor supersaturation
一直以为做报表只能用EXCEL和PPT,直到我看到了这套模板(附模板)
Deleting nodes in binary search tree
vbs或vbe如何修改图标
提升复杂场景三维重建精度 | 基于PaddleSeg分割无人机遥感影像
随机推荐
Lua emmylua annotation details
Improve the accuracy of 3D reconstruction of complex scenes | segmentation of UAV Remote Sensing Images Based on paddleseg
[209] go language learning ideas
ITSS运维能力成熟度分级详解|一文搞清ITSS证书
Digital "new" operation and maintenance of energy industry
Nature Microbiology | 可感染阿斯加德古菌的六种深海沉积物中的病毒基因组
Microservice architecture debate between radical technologists vs Project conservatives
Imitation of numpy 2
Once the "king of color TV", he sold pork before delisting
[2022 Jiangxi graduate mathematical modeling] curling movement idea analysis and code implementation
Tutorial on the use of Huawei cloud modelarts (with detailed illustrations)
Li Kou brush question diary /day2/2022.6.24
Wireshark抓包TLS协议栏显示版本不一致问题
Scala basic tutorial -- 18 -- set (2)
Scala基础教程--19--Actor
How to download files using WGet and curl
【209】go语言的学习思想
1、 Introduction to C language
【2022年江西省研究生数学建模】水汽过饱和的核化除霾 思路分析及代码实现
大厂面试总结大全二