Postman[3] 创建Get和Post请求

1.创建Get请求

以打开百度页面为例

链接:https://www.baidu.com/

步骤:

1.1新建一个Collection
1.2Add Request
1.3填充请求的url
1.4 Send
1.5检查返回结果

注意:这里和我们打开网页看到的页面不一样,是因为缺少请求头(后面补充)

2.创建Post请求

url: https://ug.baidu.com/mcp/pc/pcsearch

2.1新建一个Collection(可以用上面创建的Collection)
2.2Add Request
2.3填充请求的url和参数
2.4Send
2.5检查返回结果

{"invoke_info":{"pos_1":[{}],"pos_2":[{}],"pos_3":[{}]}}

可以用F12或者抓包工具检查和页面返回的内容是否一样

相关推荐
AI_56782 天前
Postman接口测试提速技巧:批量请求+智能断言实践
测试工具·lua·postman
Warren982 天前
Pytest Fixture 作用域与接口测试 Token 污染问题实战解析
功能测试·面试·单元测试·集成测试·pytest·postman·模块测试
弹简特2 天前
【JavaEE06-后端部分】SpringMVC01-Spring MVC第一大核心URL 路由映射【建立连接】与 Postman 接口测试详解
java·spring boot·测试工具·spring·postman
一念一花一世界3 天前
接口管理工具选型指南:Postman vs swagger vs PostIn
postman·swagger·postin·接口管理工具
今天小迪敲代码了吗4 天前
【自学】接口测试
postman
小王不爱笑1325 天前
Postman 使用教程
测试工具·lua·postman
程序员杰哥5 天前
Chrome浏览器+Postman做接口测试
自动化测试·软件测试·python·测试工具·测试用例·接口测试·postman
程序员小远7 天前
使用Postman进行一次完整的接口测试
自动化测试·软件测试·python·测试工具·测试用例·接口测试·postman
nangonghen8 天前
centos 7.9安装postman v9.31.0
centos·api·postman