当前位置:网站首页>快速上手使用本地测试工具postman
快速上手使用本地测试工具postman
2022-07-07 22:00:00 【小智RE0】
首先下载postman工具 windows版下载地址
postman是一款网页调试与发送网页http请求的接口测试工具.
可选择使用客户端程序或者网页插件版本.

安装之后,简单看一下这个区域.
必要的条件:
- 请求地址url
- 请求协议:http,webservice
- 请求方式:get.post…
- 请求头
- 参数:表单/请求体提交数据
postman的大致工作流程

模拟文档案例说明:
1.手机归属地查询
- 接口地址:http://apis.juhe.cn/mobile/get
- 返回格式:json/xml
- 请求方式 get
- 请求示例:http://apis.juhe.cn/mobile/get?phone=123&key=申请的key

参数格式:
- 键值对: {“key”:"value,“name”:“xiaozhi”}
- xml:自定义的标签
- 文本格式
- html格式 :标签
get请求时,参数写在params中, post请求时,数据参数写入body中;
发送请求后在这里可看到响应的数据
可保存模拟响应的数据文件

注意,若在使用body模拟发送数据时,需要json/html…格式,先选择raw,然后再选定格式.
注意,form-data还可以放入文件进行测试


有的文件传输,也可以选择使用binary格式

边栏推荐
- 手写一个模拟的ReentrantLock
- 关于组织2021-2022全国青少年电子信息智能创新大赛西南赛区(四川)复赛的通知
- SQL connection problem after downloading (2)
- FFA and ICGA angiography
- When creating body middleware, express Is there any difference between setting extended to true and false in urlencoded?
- 腾讯安全发布《BOT管理白皮书》|解读BOT攻击,探索防护之道
- One click free translation of more than 300 pages of PDF documents
- One click installation with fishros in blue bridge ROS
- Is it safe for tongdaxin to buy funds?
- MP4文件格式解析之结合实例分析
猜你喜欢

QT creator add JSON based Wizard

Problems faced when connecting to sqlserver after downloading (I)

每日刷题记录 (十六)

Rectification characteristics of fast recovery diode

ROS from entry to mastery (IX) initial experience of visual simulation: turtlebot3

Solutions to problems in sqlserver deleting data in tables

Robomaster visual tutorial (1) camera

关于组织2021-2022全国青少年电子信息智能创新大赛西南赛区(四川)复赛的通知

Kubectl 好用的命令行工具:oh-my-zsh 技巧和窍门
![[question de programmation] [scratch niveau 2] oiseaux volants en décembre 2019](/img/5e/a105f8615f3991635c9ffd3a8e5836.png)
[question de programmation] [scratch niveau 2] oiseaux volants en décembre 2019
随机推荐
一个测试工程师的7年感悟 ---- 致在一路独行的你(别放弃)
Opengl3.3 mouse picking up objects
codeforces每日5题(均1500)-第八天
Go learning notes (1) environment installation and hello world
Magic fast power
Les mots ont été écrits, la fonction est vraiment puissante!
35岁那年,我做了一个面临失业的决定
Pypharm uses, and the third-party library has errors due to version problems
Binary sort tree [BST] - create, find, delete, output
CoinDesk评波场去中心化进程:让人们看到互联网的未来
35岁真就成了职业危机?不,我的技术在积累,我还越吃越香了
80%的人答错,苹果logo上的叶子到底朝左还是朝右?
自动化测试:Robot FrameWork框架90%的人都想知道的实用技巧
95. (cesium chapter) cesium dynamic monomer-3d building (building)
How does starfish OS enable the value of SFO in the fourth phase of SFO destruction?
Connect diodes in series to improve voltage withstand
Visual Studio Deployment Project - Create shortcut to deployed executable
Introduction to programming hardware
C language 005: common examples
Reading notes 004: Wang Yangming's quotations