当前位置:网站首页>postman简介与安装步骤
postman简介与安装步骤
2022-06-28 20:58:00 【炫酷的腿毛!】
1、postman简介:
- Postman是一款非常流行的接口调试工具,它使用简单,而且功能也很强大。不仅测试人员会使用,开发人员也会经常使用。
- 特征:
- 简单易用的图形用户界面
- 可以保存接口请求的历史记录
- 使用测试集Collections可以更有效的管理组织接口
- 可以在团队之间同步接口数据
2、postman安装步骤
2.1 下载postman
https://www.postman.com/downloads/
2.2 安装postman

1、双击postman安装包,全自动安装,不需要任何人干预
2、安装完成后,会默认打开英文注册页面,或者手动打开注册页面
3、自行翻译英文页面提示,根据提示完成注册,完全免费

填入:邮箱、用户名、密码即可,注意要符合postman要求的规范





安装注意事项
- 一旦安装成功,尽量坚持使用不要卸载!!
- postman有个BUG,不能重复安装,如果重复安装,新安装的版本必须大于已安装的版本。
3、 案例
3.1 案例一
使用 postman 发送 http请求,访问 tpshop 商城的 “搜索” 接口
访问 tpshop 商城的 “搜索” 接口所需要的信息:
—— 结合 F12 浏览器开发者工具分析:
- 请求方法:GET
- URL:http://tpshop-test.itheima.net/Home/Goods/search.html?q=%E6%89%8B%E6%9C%BA
- 请求头:无
- 请求体:无
- 返回数据:html网页

3.2 案例二
使用 Postman 向 topshop 商城 登录接口 发送一个密码错误的 登录请求
请求方法:post
URL:http://tpshop-test.itheima.net/index.php?m=Home&c=User&a=do_login&t=0.6693319462870182
请求头:Content-Type:application/x-www-form-urlencoded
请求体:
- username: 13812345678
- password: 12345699999
- verify_code : 8888
返回数据:
{“status”:-2,“msg”:“密码错误!”} ---- 实际返回结果 “验证码错误” 与业务有关,后续课程讲解。

案例三
从接口文档,获取 登录接口 的 http请求,使用 Postman 发送

边栏推荐
- CNN-LSTM的flatten
- Globalsign's Pan domain SSL certificate
- LeetCode每日一题——30. 串联所有单词的子串
- Lucene构建索引的原理及源代码分析
- Explanation of memory dump triggered by software watchdog and anr
- with torch.no_grad():的使用原因
- LeetCode每日一题——剑指 Offer II 091. 粉刷房子
- 【筆記:模擬MOS集成電路】帶隙基准(基本原理+電流模+電壓模電路詳解)
- Leetcode daily question - Sword finger offer II 091 Paint the house
- How do I download videos? Look at the super simple method!
猜你喜欢
How to recover after Oracle delete accidentally deletes table data

Win 10 create a gin framework project

数据资产为王,如何解析企业数字化转型与数据资产管理的关系?

Ehcache configuration data, convenient for self checking

Lucene构建索引的原理及源代码分析

Learn Tai Chi maker mqtt Chapter 2 (VIII) esp8266 mqtt user password authentication

Leetcode 36. Effective Sudoku (yes, once)

MySQL system error occurred 1067

Racher add / delete node

学习太极创客 — MQTT 第二章(七)ESP8266 MQTT 遗嘱应用
随机推荐
03.hello_ rust
如何添加 logs来debug ANR 问题
嵌入式中 动态阿拉伯语字符串 转换 LCD显示字符串【感谢建国雄心】
Pyechart drawing multiple Y-axis line graphs
Win 10 create a gin framework project
Anr no response introduction
视频号如何下载视频?来看超简单方法!
Ref attribute, props configuration, mixin mixing, plug-in, scoped style
[learning notes] factor analysis
RT thread thread synchronization and thread communication
LeetCode每日一题——剑指 Offer II 091. 粉刷房子
请允许当下国内ToB的「不完美」
Leetcode daily question - Sword finger offer II 091 Paint the house
Understand the construction of the entire network model
Keyword long
The blocks problem (uva101) Purple Book p110vector application
ref属性,props配置,mixin混入,插件,scoped样式
算力时代怎么「算」?「算网融合」先发优势很重要!
How to analyze the relationship between enterprise digital transformation and data asset management?
Application of Andy s first dictionary (uva10815) Purple Book p112set