当前位置:网站首页>Introduction, installation, introduction and detailed introduction to postman!
Introduction, installation, introduction and detailed introduction to postman!
2022-07-05 14:11:00 【Automated test】
One 、Postman Background introduction
Users are developing or debugging web programs or web pages B/S Pattern program needs some methods to track web page requests , Users can use some network monitoring tools such as the famous Firebug Wait for web debugging tools . Today, I will introduce to you that this web debugging tool can not only debug simple css、html、 Script and other simple web page basic information , It can also send almost all types of HTTP request !Postman Sending network HTTP The request aspect can be said to be Chrome One of the representative products in plug-in products .
notes : because 2018 Beginning of the year chrome To stop chrome Application support ,postman The plug-in may not work properly . at present chrome What the app store can use is chrome Extender and topic background .
Two 、Postman Operating environment of
postman For different operating systems ,Postman Mac、Windows X32、Windows X64、Linux System , And support postman Browser extensions 、postman chrome Applications, etc .
Postman Use reference documents :
1. Official English documents :
https://learning.postman.com/docs/
2.chrome Plug in postman Chinese tutorial :
https://huajiakeji.com/web-development/2017-12/870.html
3、 ... and 、Postman Download and install
1> 、postman Download address :
https://www.postman.com/downloads/
2>. Postman Official website download address :
https://www.getpostman.com/apps
3>.Postman install
postman There are several installation methods , As we mentioned above , We are divided into three installation modes :
1、chrome browser postman Plug in installation
postman Google browser installation plug-in , So the premise is that you have to install Google browser on your computer , After installing the Google browser, you still need to download what you need in the Google online app store Postman plug-in unit , The plug-in can be downloaded as follows :
Cannot access google App store friends Sure Reference here , Or download the client version
2.Postman Computer client installation
1).macOS install
Once you download the app , You can drag files to “ Applications ” Folder . double-click Postman open the application .
2).Windows install
Download the installation file
Run setup
3). Linux install
I haven't tried , But I found some references ( Interested friends can experiment by themselves )
ubuntu install postman:
https://blog.csdn.net/qianmosolo/article/details/79353632
Ubuntu16.04 Installation on Postman Applications :
https://www.bluematador.com/blog/postman-how-to-install-on-ubuntu-1604?utm_source=hootsuite&utm_medium=twitter&utm_campaign=
Four 、Postman The basic function of
5、 ... and 、 Interface request flow
1. GET request
GET request : Click on Params, Input parameters and value, You can input more than one , It's instantly displayed in URL On link ,
therefore ,GET The request header and request parameters of the request, such as when there is no special declaration in the interface document , Can not fill .
Response example : There will be a response status code for the request , response time , And the response size
Response body example : There can be many forms of response , I'm here because the request is Baidu ,so, The response is html , In general , Our custom interface is json Format response body
2. POST request
POST Request a : Form submission
The request method is set in the example below , request URL, Request parameters , But there is no request header set
In my use , The request header is automatically generated according to the form of request parameters In the request header Content-Type There is an association with the format of the request parameters , such as :
POST Request 2 :json Submit
The following figure , When we choose JSON(application/json) It will automatically set up for us headers by application/json
No screenshots here For example , Friends can check by themselves
POST Request three :xml Submit
POST Request 4 : Binary file submission
Other request methods are as follows PUT,DELETE General process and GET,POST almost , Here we will not give examples
6、 ... and 、 Manage use cases —Collections
stay POST There is a picture of basic functions, which roughly describes Collections The role of , Here we will elaborate on .
Collections aggregate : Multiple requests can be put together , And manage it . What kind of interface requests can be placed in the same collection in ?
I'm here to tell you that you can do this : One project, one Collection, This makes it easy to find and process data in a unified way .
First step , establish Collections
Click on the belt in the picture above + Icon for , Input Name:”abc”,Description:” Example demo”, Click on Create Button to create a successful Collections. The second step , stay Collections Add a request to
Prepare all the data requested by the interface on the right side , After verification , Click on save Button .
After you save it, you can see it here , You can click here to call again later , It's convenient, fast and convenient
collections Fine management , Here we group different requests
Add subfolders
This is the result of our fine division , Does it look more organized ?
7、 ... and 、 Authentication Authentication
1、Basic Auth
It's a basic validation , So it's going to be easier Will directly put the user name 、 The password information is placed in the requested Header in .
2、Digest Auth
than Basic Auth It's a lot more complicated . Generated with the currently filled in value authorization header. So it's generating header Make sure the settings are correct before . If the current header Already exist ,postman Will remove the previous header.
3、OAuth 1.0
postman Of OAuth helper Let you sign up for OAuth
1.0 Authentication based requests .OAuth No need to get access token, You need to go. API Obtained by the provider .OAuth 1.0 Can be in header Or set in query parameters value.
4、OAuth 2.0
postman Support acquisition OAuth 2.0 token To add to requests in .
If this article helps you , Please make up a little like ! Only in this way can I have the motivation to continue to update !
Have you learned today's little knowledge
Welcome to interact with us in the message area ~
If you think it's helpful, give it a compliment
Finally, Xiaobian arranges some learning material notes and the above postman A full set of tutorials for using interface testing tools
Want to edit learning materials, notes, documents and the above postman A full set of tutorials for using interface testing tools
【 Private letter my key words “999” Free access 】 High salary resume template ( Interview collection is free )
High salary resume template ( Interview collection is free )
High salary resume template ( Interview collection is free )
边栏推荐
- Requset + BS4 crawling shell listings
- LeetCode_2(两数相加)
- Tiflash compiler oriented automatic vectorization acceleration
- IP packet header analysis and static routing
- 根据CronSequenceGenerator计算cron表达式的时间
- 国富氢能冲刺科创板:拟募资20亿 应收账款3.6亿超营收
- 鸿蒙第四次培训
- Requests + BS4 crawl Douban top250 movie information
- 软件测试人在深圳有哪些值得去的互联网公司【软件测试人员专供版】
- Use the word "new" to attract curious people
猜你喜欢
Kotlin collaboration uses coroutinecontext to implement the retry logic after a network request fails
[js] basic syntax - for loop
upload (1-6)
Set up a website with a sense of ceremony, and post it to the public 2/2 through the intranet
What are the advantages and characteristics of SAS interface
How to deeply understand the design idea of "finite state machine"?
Brief introduction to revolutionary neural networks
What is the future development trend of neural network Internet of things
基于 TiDB 场景式技术架构过程 - 理论篇
金融壹賬通香港上市:市值63億港元 葉望春稱守正篤實,久久為功
随机推荐
Set up a website with a sense of ceremony, and post it to the public 2/2 through the intranet
R语言ggplot2可视化:可视化折线图、使用theme函数中的legend.position参数自定义图例的位置
用“新”字来吸引好奇的人群
How to call the function mode of one hand and one machine
登录界面代码
Linux下mysql数据库安装教程
让秒杀狂欢更从容:大促背后的数据库(下篇)
C - Divisors of the Divisors of An Integer Gym - 102040C
Discussion on memset assignment
Laravel - model (new model and use model)
Comparison of several distributed databases
Requset + BS4 crawling shell listings
为什么我认识的机械工程师都抱怨工资低?
深拷贝真难
Interpretation of tiflash source code (IV) | design and implementation analysis of tiflash DDL module
Tiflash compiler oriented automatic vectorization acceleration
Can graduate students not learn English? As long as the score of postgraduate entrance examination English or CET-6 is high!
魅族新任董事長沈子瑜:創始人黃章先生將作為魅族科技產品戰略顧問
治臻新能源冲刺科创板:年营收2.2亿 上汽创投是股东
Detailed explanation of SSH password free login