当前位置:网站首页>API Test
API Test
2022-07-21 02:28:00 【SeriousLose】
Notion – The all-in-one workspace for your notes, tasks, wikis, and databases.
什么是接口测试?
接口测试是测试系统组件间接口的一种测试。
接口测试主要用于检测外部系统与系统之间以及内部各个子系统之间的交互点。
测试的重点是要检查数据的交换,传递和控制管理过程,以及系统间的相互逻辑依赖关系等。
为什么要做接口测试?
如今的系统复杂度不断上升,传统的测试方法成本急剧增加且测试效率大幅下降,接口测试可以提供这种情况下的解决方案。
接口测试相对容易实现自动化持续集成,且相对UI自动化也比较稳定,可以减少人工回归测试人力成本与时间,缩短测试周期,支持后端快速发版需求。
接口持续集成是为什么能低成本高收益的根源?
现在很多系统前后端架构是分离的,从安全层面来说: 1、只依赖前端进行限制已经完全不能满足系统的安全要求(绕过前面实在太容易), 需要后端同样进行控制,在这种情况下就需要从接口层面进行验证。 2、前后端传输、日志打印等信息是否加密传输也是需要验证的,特别是涉及到用户的隐私信息,如身份证,银行卡等
接口测试持续集成
- 流程方面:在回归阶段加强接口异常场景的覆盖度,并逐步向系统测试,冒烟测试阶段延伸,最终达到全流程自动化。
- 结果展示:更加丰富的结果展示、趋势分析,质量统计和分析等
- 问题定位:报错信息、日志更精准,方便问题复现与定位。
- 结果校验:加强自动化校验能力,如数据库信息校验。
- 代码覆盖率:不断尝试由目前的黑盒向白盒下探,提高代码覆盖率。
- 性能需求:完善性能测试体系,通过自动化的手段监控接口性能指标是否正常。
接口测试质量评估标准
- 业务功能覆盖是否完整
- 业务规则覆盖是否完整
- 参数验证是否达到要求(边界、业务规则)
- 接口异常场景覆盖是否完整
- 接口覆盖率是否达到要求
- 代码覆盖率是否达到要求
- 性能指标是否满足要求
- 安全指标是否满足要求
边栏推荐
- [04] through the power consumption wall, what aspects should we improve "performance"?
- 高质量WordPress下载站模板5play主题源码
- 触发器基础知识(上)
- A little learning of JNDI injection
- Which programming language is recommended for beginners?
- oracle 启动命令
- canal. Deployer-1.1.6 encountered dump address has an error, retrying Caused by problem
- Okaleido tiger NFT is about to log in to binance NFT platform, and the era of NFT rights and interests is about to start
- 安防视频监控平台EasyCVR数据库字段无法更新,如何优化?
- 0715今日歌单 One Last Kiss, 耗尽
猜你喜欢
In the post deep learning era, where is the recommendation system going?
It is not just products that keep pace with the times. Look at FAW Toyota's confidence in "Second Entrepreneurship" from Carola Ruifang
canal. Deployer-1.1.6 encountered dump address has an error, retrying Caused by problem
Natural fit between NFT and luxury culture: NFT meets the human nature of seeking uniqueness and status
Digital twin community management system, construction of nine application scenarios
College student community management system based on SSM framework
oracle 启动命令
ACM集训7月5号
Transplantation engineering method of STM32 OLED display screen
In the code free era, how should enterprises' digital transformation develop?
随机推荐
Php-cgi Remote Code Execution Vulnerability (cve-2012-1823)
Stm32 DHT11 temperature and humidity sensor module learning summary
鸿蒙 harmonyos DevEco-Studio 报错 UNINSTALL_FAILED_INTERNAL_ERROR
数字孪生技术海上风电场解决方案
C语言练习题目+答案:26-30
DOS命令导出文件夹内所有文件的名称和全路径
Qt development skills and three problems
Midas capital brings fuse pools to moonbeam
Digital twin community management system, construction of nine application scenarios
Cookie、Session、Token三者的区别
Introduction to C language --- operators
MySQL的MVCC详细理解(2022版)
General paging (encapsulation of paging code)
通用分页(分页代码的封装)
Transplantation engineering method of STM32 OLED display screen
el-table支持分页多选
Control in canoe panel: switch/indicator
银行不是唐僧肉 银行是金融安全的坚实屏障。
ORACLE导出表数据-dmp文件
GrayLog分布式日志组件来提高查日志效率!