目录
- Postman 工具准备
- Postman 使用
Postman 工具准备
Postman 介绍
- 快速构建请求
- 提供响应结果的比较功能
- 查看测试结果
- 批量运行
- 设置环境变量
Postman 安装
- 官网下载地址
- https://www.postman.com/downloads
Postman 页面
Postman 使用
发送 GET 请求
- 新建请求
- 填写请求方式:GET
- 填写请求 URL:
- https://ceshiren.com/
- https://httpbin.ceshiren.com/get
- 填写请求参数: para_key = para_value
发送 POST 请求
- 请求方式:POST
- 请求 URL:https://httpbin.ceshiren.com/post
- 请求参数
- FORM 格式:Body –> form-data
- JSON 格式:Body –> raw –> JSON
- 文件格式:Body –> form-data –> File
查看接口响应
- 响应体
- 响应头
- 响应状态
操作头信息
- 添加请求头
- 修改请求头