当前位置:网站首页>技术分享 | 接口测试价值与体系
技术分享 | 接口测试价值与体系
2022-07-05 18:23:00 【hogwarts_beibei】
如果把测试简单分为两类,那么就是客户端测试和服务端测试。移动端的测试包括 UI 测试,兼容性测试等,服务端测试包括接口测试。接口测试检查数据的交换、传递和控制管理过程。它绕过了客户端,直接对服务端进行测试。
接口测试的价值
服务端非常复杂,就像下图的阿里核心链路图,包含大约 150 个组件,组件与组件之间进行交互,形成了密集的后端网络。UI 测试无法覆盖这么复杂的组件交互网络,所以要绕过客户端,直接使用接口测试对服务端进行测试。
接口测试的体系
对行业的各种测试进行分层,越往上,发现 bug 的时间越晚,成本越高。接口测试(Service)相比 UI 测试,可以更早发现问题,更快的质量反馈;同理,单元测试(Unit)相比接口测试,可以更早发现问题,更快的质量反馈,花费的成本更低。
分层测试:
客户端测试与服务端测试的关系
虽然接口测试覆盖面广,但是也不能使用接口测试替代客户端测试。UI 测试涉及到了用户体验的问题,这部分是无法用接口测试进行替代的。
边栏推荐
- 【HCIA-cloud】【1】云计算的定义、什么是云计算、云计算的架构与技术说明、华为云计算产品、华为内存DDR配置工具说明
- U-Net: Convolutional Networks for Biomedical Images Segmentation
- IDEA配置npm启动
- How to automatically install pythn third-party libraries
- 怎么自动安装pythn三方库
- The 11th China cloud computing standards and Applications Conference | cloud computing national standards and white paper series release, and Huayun data fully participated in the preparation
- Introduction to the development function of Hanlin Youshang system of Hansheng Youpin app
- Matlab built-in function how different colors, matlab subsection function different colors drawing
- New words new words new words new words [2]
- 音视频包的pts,dts,duration的由来.
猜你喜欢
Sophon CE Community Edition is online, and free get is a lightweight, easy-to-use, efficient and intelligent data analysis tool
Insufficient picture data? I made a free image enhancement software
LeetCode 6109. 知道秘密的人数
如何写出好代码 - 防御式编程
案例分享|金融业数据运营运维一体化建设
如何获取飞机穿过雷达两端的坐标
buuctf-pwn write-ups (9)
Copy the linked list with random pointer in the "Li Kou brush question plan"
vulnhub之darkhole_2
【HCIA-cloud】【1】云计算的定义、什么是云计算、云计算的架构与技术说明、华为云计算产品、华为内存DDR配置工具说明
随机推荐
【在优麒麟上使用Electron开发桌面应】
Memory management chapter of Kobayashi coding
node_ Exporter memory usage is not displayed
The origin of PTS, DTS and duration of audio and video packages
About Estimation with Cross-Validation
Electron installation problems
写作写作写作写作
常见时间复杂度
解决 contents have differences only in line separators
开户注册股票炒股安全吗?有没有风险的?靠谱吗?
瞅一瞅JUC提供的限流工具Semaphore
小林coding的内存管理章节
关于服装ERP,你想知道的都在这里了
Writing writing writing
Problems encountered in the project u-parse component rendering problems
[QNX Hypervisor 2.2用户手册]6.3.2 配置VM
[utiliser Electron pour développer le Bureau sur youkirin devrait]
Reptile 01 basic principles of reptile
Use of print function in MATLAB
苹果手机炒股安全吗?打新债是骗局吗?