当前位置:网站首页>技术分享 | 接口测试价值与体系
技术分享 | 接口测试价值与体系
2022-07-05 18:23:00 【hogwarts_beibei】
如果把测试简单分为两类,那么就是客户端测试和服务端测试。移动端的测试包括 UI 测试,兼容性测试等,服务端测试包括接口测试。接口测试检查数据的交换、传递和控制管理过程。它绕过了客户端,直接对服务端进行测试。
接口测试的价值
服务端非常复杂,就像下图的阿里核心链路图,包含大约 150 个组件,组件与组件之间进行交互,形成了密集的后端网络。UI 测试无法覆盖这么复杂的组件交互网络,所以要绕过客户端,直接使用接口测试对服务端进行测试。
接口测试的体系
对行业的各种测试进行分层,越往上,发现 bug 的时间越晚,成本越高。接口测试(Service)相比 UI 测试,可以更早发现问题,更快的质量反馈;同理,单元测试(Unit)相比接口测试,可以更早发现问题,更快的质量反馈,花费的成本更低。
分层测试:
客户端测试与服务端测试的关系
虽然接口测试覆盖面广,但是也不能使用接口测试替代客户端测试。UI 测试涉及到了用户体验的问题,这部分是无法用接口测试进行替代的。
边栏推荐
- Use of websocket tool
- Trust counts the number of occurrences of words in the file
- Sophon CE Community Edition is online, and free get is a lightweight, easy-to-use, efficient and intelligent data analysis tool
- 生词生词生词生词[2]
- Nacos distributed transactions Seata * * install JDK on Linux, mysql5.7 start Nacos configure ideal call interface coordination (nanny level detail tutorial)
- ConvMAE(2022-05)
- 第十一届中国云计算标准和应用大会 | 华云数据成为全国信标委云计算标准工作组云迁移专题组副组长单位副组长单位
- 【PaddleClas】常用命令
- Multithreading (I) processes and threads
- The 2022 China Xinchuang Ecological Market Research and model selection evaluation report released that Huayun data was selected as the mainstream manufacturer of Xinchuang IT infrastructure!
猜你喜欢
Introduction to the development function of Hanlin Youshang system of Hansheng Youpin app
吳恩達團隊2022機器學習課程,來啦
FCN: Fully Convolutional Networks for Semantic Segmentation
Failed to virtualize table with JMeter
MYSQL中 find_in_set() 函数用法详解
ConvMAE(2022-05)
SAP 特征 特性 说明
基于can总线的A2L文件解析(3)
About Estimation with Cross-Validation
About Estimation with Cross-Validation
随机推荐
LeetCode 6111. Spiral matrix IV
U-Net: Convolutional Networks for Biomedical Images Segmentation
FCN: Fully Convolutional Networks for Semantic Segmentation
The 11th China cloud computing standards and Applications Conference | China cloud data has become the deputy leader unit of the cloud migration special group of the cloud computing standards working
小林coding的内存管理章节
Cronab log: how to record the output of my cron script
吳恩達團隊2022機器學習課程,來啦
Failed to virtualize table with JMeter
图片数据不够?我做了一个免费的图像增强软件
Einstein sum einsum
Thoroughly understand why network i/o is blocked?
《ClickHouse原理解析与应用实践》读书笔记(5)
The easycvr platform reports an error "ID cannot be empty" through the interface editing channel. What is the reason?
关于服装ERP,你想知道的都在这里了
生词生词生词生词[2]
RPC协议详解
Generate XML schema from class
苹果手机炒股安全吗?打新债是骗局吗?
To solve the stubborn problem of Lake + warehouse hybrid architecture, xinghuan Technology launched an independent and controllable cloud native Lake warehouse integrated platform
lombok @Builder注解