当前位置:网站首页>实际工作中,我是如何使用 Postman 做接口测试?
实际工作中,我是如何使用 Postman 做接口测试?
2022-07-28 00:54:00 【大田测试录】
Postman实现接口自动化
1、Postman介绍
1)调试HTTP请求、界面友好、构造HTTP请求进而分析响应数据
2)实际工作中,测试和开发都会使用,测试人员测试接口、开发人员接口调试
3)一般用Postman做主流程测试、如果接口数量庞大,Postman反应比较慢
官网:Postman
可以进行注册,用一些团队接口测试管理工具、空间管理、免费的也足够做接口测试
2、工作原理
postman理解为一个浏览器,模拟浏览器、app客户端(注意:不是用户) 向服务器发送接口请求,获取接口的响应数据。
3、基础用法总结
总结:按照接口文档规定设置接口请求方法、URL、请求头、请求体完成请求数据的构造,查看响应数据完成对响应数据的测试。 对比响应数据的参数语接口文档是否一致,参数值与需求规定的业务逻辑是否一致。
设置请求方法
设置URL
设置请求头
设置请求体(需要采用的数据类型,由公司开发部门规定)
设置urlencoded表单请求数据:URL查询参数数据、请求体数据
边栏推荐
- 结构伪类选择器—查找单个—查找多个—nth-of-type和伪元素
- Synchronized details
- Domain Driven Design -- Terminology
- UE4 unreal ndisplay plug-in easy to use three fold screen details
- MySQL pymysql operation
- Enterprise operation and maintenance practice - using aliyun container image service to pull and build images of overseas GCR and quay warehouses
- QGIS制图:矢量数据制图流程及导出
- 新零售业态下,零售电商RPA助力重塑增长
- Promise from introduction to mastery (Chapter 4 async and await)
- Implementation of mongodb/mongotemplate.upsert batch inserting update data
猜你喜欢

Go learn 02 basic knowledge

产品解读丨MeterSphere UI测试模块的设计与分布式扩展

【愚公系列】2022年07月 Tabby集成终端的使用

Promise from getting started to mastering (Chapter 3: customize (handwriting) promise)

样本不均衡-入门0

53:第五章:开发admin管理服务:6:开发【admin管理员退出登录,接口】;(一个点:我们想要修改一个采用了某种编码方式的值时,新的值最好也按照这种编码方式编码后,再去修改;)

Codeforces Round #810 (Div. 2)A~C题解

Flex布局—固定定位+流式布局—主轴对齐—侧轴对齐—伸缩比

Unity universal red dot system

Uniapp summary (applet)
随机推荐
Vxe Table/Grid 单元格分组合并
FreeRTOS kernel summary
[website construction] update SSL certificate with acme.sh: change zerossl to letsencrypt
In it, there is a million talent gap, and the salary rises, but it is not capped
Software testing interview question: why should we carry out testing in a team?
CeresDAO:Ventures DAO的“新代言”
A lock faster than read-write lock. Don't get to know it quickly
C#引入WINAPI传递中文字符串参数字符集问题
视频常用分辨率
Software test interview question: please introduce the meaning of various test types in detail?
Common problem types and methods of mathematical univariate differential proof problems in postgraduate entrance examination
The principle and implementation of loss function cross entropy
Promise从入门到精通 (第2章 Promise的理解和使用)
Unittest unit test framework full stack knowledge
Synchronized details
Codeworks round 810 (Div. 2) a~c problem solution
Promise from introduction to mastery (Chapter 2 understanding and use of promise)
微信小程序图片根据屏幕比例缩放
剑指offer专项突击版第12天
Use of classes in typescript