![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
postman
weixin_43555427
这个作者很懒,什么都没留下…
展开
-
Postman验证请求响应信息
Postman验证请求响应信息Postman断言的脚本在Tests标签中编写,右侧有脚本快捷生成选项,点击即可生成对应脚本。验证函数的写法pm.test(“验证输出文本”,function(){返回值为布尔类型的验证函数});pm.test(“验证输出文本”,function(){pm.expect(函数).条件});验证响应状态状态pm.test(“Status code is 200”, function () {pm.response.to.have.status(200);});原创 2020-08-18 00:12:18 · 246 阅读 · 0 评论 -
Postman发送POST请求常用数据格式写法
POST请求常用数据格式Content-Typeapplication/x-www-form-urlencodedHeaders中Content-Type:application/x-www-form-urlencodedBody中选择x-www-form-urlencoded,填写KEY,Value字段multipart/form-dataHeaders中Content-Type:multipart/form-dataBody中选择form-data,KEY字段末端选择Text,填写KEY原创 2020-08-17 13:14:28 · 986 阅读 · 0 评论 -
使用Postman发送简单Http请求
使用Postman发送简单Http请求GET请求信息https://so.csdn.net/so/search/s.do?q=http请求Temporary Headers(Postman自动生成)User-Agent:PostmanRuntime/7.18.0Accept:/Cache-Control:no-cachePostman-Token:d204cf95-1d4f-4db6-b12e-d53dfb1ecd14Host:so.csdn.netAccept-Encoding:gzi原创 2020-08-14 00:04:11 · 1205 阅读 · 0 评论