Api测试-为postman自动添加cookie
2023-09-14 08:58:27 时间
使用postman来调试接口,会被buc-sso-csrf等拦截,需要自己挨个添加cookie,但是cookie又有失效时间,所以本篇介绍如何使用插件来自动获取cookie进行接口api测试
一、安装 PostMan
chroma app
https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop?hl=en
mac app
https://www.getpostman.com/downloads/
二、安装 Postman Interceptor
https://chrome.google.com/webstore/detail/postman-interceptor/aicmkgpgakddgnaphhhpliifpcfhicfo
三、安装 Interceptor Bridge
四、开启 interceptor 和 cookie
在domain里输入目标网址即可
五、在 Chrome 上访问目标网站
主要是利用 bridge 让 postman 和 chrome 的 cookie进行桥接,从而实现带cookie访问接口的能力
六、在 Postman 中测试Api
2019年12月11日14:47:28
洛钰
http://www.js-dev.cn
相关文章
- 使用postman发送post数据时遇到的问题
- postman跳过登陆直接使用的办法
- postman发送json格式的post请求
- postman app支持浏览器上的cookie
- 在Postman中使用不受信任的SSL证书(转)
- Postman测试api@RequestBody接收参数
- 如何使用 Postman 发送 SAP OData Batch 请求到 ABAP 后台服务器试读版
- 使用postman创建Marketing Cloud的Contact
- 如何用postman发送新浪微博
- postman 如何做API的依赖性的自动化测试
- 如何使用Postman做多接口测试【实践】
- 搞定 Postman 接口自动化测试,看这篇文章就够了!(干货分享、最后还有福利)
- Postman+Newman+Git+Jenkins实现接口自动化测试持续集成
- 3分钟,快速上手Postman接口测试
- Postman接口自动化测试之——批量执行(集合操作)
- 自动化测试===requests+unittest+postman的接口测试
- postman插件下载、安装教程
- Postman如何使用(四):接口测试
- Postman接口测试工具超详细-接口关联-接口自动化测试教程实例
- 基于postman的api自动化测试实践(三)
- 使用 Postman 实现 API 自动化测试