当前位置:网站首页>接口自动化测试---如何提高接口自动化脚本的稳定性?
接口自动化测试---如何提高接口自动化脚本的稳定性?
2022-07-22 00:41:00 【晚风吹儿】
1、如何提高接口自动化脚本的稳定性?
提高脚本的稳定性,既要满足稳定的要求,又要兼容不同的环境、平台等
稳定性,即自动化的脚本能重复使用,且脚本不报错,系统报错除外
兼容性,即是能在不同的平台、环境下运行
2、解决方法
1、为了能重复运行脚本,应在运行之前、以及运行完后进行数据清理,分为前置清理、后置清理
2、加入失败重跑机制,如遇到失败,设置重试次数
3、将测试环境独立出来,可灵活配置运行环境
4、Windows、Linux环境下文件路径要做兼容,因为两个系统获取文件路径的方式不一致
5、异常捕获处理,有异常跳过、或标记
6、确保用例的完整性、独立性,可耦合,可独立运行
7、依赖第三方服务的接口需要设置合理的超时时间
边栏推荐
- Raspberry pie - Cloud Server Deployment - intranet penetration - use of cpolar tool
- 飞行员兄弟
- ByteDance test post, the front has passed, and the last HR sinkhole Tell me that
- 异常检测 and 自编码器(2)
- RenderFlex children have non-zero flex but incoming height constraints are unbounded.
- Under file operation (C language)
- Address book (file version)
- DOM -- event chain (capture target and capture)
- Ardunio development - pump operation process
- From 20s to 500ms, I used these three methods
猜你喜欢
实习打怪之路:JS中检测数据类型的方法
7.zabbix自动发现.自动注册
51 MCU peripherals: LED dot matrix
Make a reliable delay queue with redis
6.zabbix报警设置
Ardunio开发——舵机控制
暑期沉淀web学习——SQL注入(布尔盲注&时间盲注)
Seven schemes of Web real-time message push
MMD PMX import unit related data
Which Hong Kong cloud server or physical server is more prone to downtime?
随机推荐
树莓派——云服务器部署——内网穿透——cpolar工具使用
Android interview question: tell me the difference between pendingintent and intent
Raspberry pie - Cloud Server Deployment - intranet penetration - use of cpolar tool
Chapter 3 processing data
YOLOv7实验测试之二:遥感图像检测应用(yolov7-tiny-silu.yaml)
The 22 pictures show you in-depth analysis of prefix, infix, suffix expressions and expression evaluation
2.zabbix概念
Go语言 Go命令行工具
51单片机外设篇:LED点阵
第 3 章 处理数据
多线程与高并发—— Synchronized 加锁解锁流程
dom——事件链(捕获目标和捕获)
With an annual salary of 30W, the growth path of software testers, at which stage are you?
狂神redis笔记08
RenderFlex children have non-zero flex but incoming height constraints are unbounded.
英国天气过热导致谷歌云、Oracle云服务中断
Under file operation (C language)
Classification of tests
Interview problems
The development of raspberry pie - the Internet cable connects raspberry pie and laptop directly - records the bitter process