Background:
Last video introduced several mainstream tools, among which postman is lightweight and easy to use. It is recommended that novices can learn from postman.
When using any tool, we should develop some good habits, postman is the same. This video is to share with you how to use postman correctly to help us work more efficiently.
Posman is a free tool that is available for download on its official website
https://www.getpostman.com/downloads/
There are three systems to choose from: windows, Linux, Mac os
Posman's Online Learning Document
https://learning.getpostman.com/docs/postman/launching_postman/installation_and_updates/
The introduction from installation to use is very clear.
Posman has two themes to choose from: white and black.
The settings are Postman - > preference - > entering Themes in the Settings window under Mac. Individuals tend to be black, because our profession is facing the computer for a long time, and black is less likely to cause eye fatigue.
Let's just start today's presentation. The video is here. https://www.ixigua.com/i6726684435183337991/
get interface test example:
http://postman-echo.com/get
Return:
{"args": {},
"headers": {
"x-forwarded-proto": "https",
"host": "postman-echo.com",
"accept": "*/*",
"accept-encoding": "gzip, deflate",
"cache-control": "no-cache",
"cookie": "sails.sid=s%3AzVCJFTe0SlCoRbba9pTLCOcKxUzhVxcC.I7SC7gwzdJbFqeN9RWBZ8MtASQaMCroTeu%2FNo%2B7sRxY",
"postman-token": "c4c51955-ad3d-4d11-b41e-ddbfdaa52efd",
"user-agent": "PostmanRuntime/7.15.2",
"x-forwarded-port": "80"
},
"url": "https://postman-echo.com/get"
}
Pos1. Interface example:
https://postman-echo.com/post?hand=wave
Return:
{"args": {
"hand": "wave"
},
"data": {},
"files": {},
"form": {},
"headers": {
"x-forwarded-proto": "https",
"host": "postman-echo.com",
"content-length": "0",
"accept": "*/*",
"accept-encoding": "gzip, deflate",
"cache-control": "no-cache",
"content-type": "application/json",
"cookie": "sails.sid=s%3AR0OdPuEgeSUWkRhI3cdNoa_FjKvk8CNJ.DbWpznNmO4Q1PbPQeAuxY6qxTzkdg3hntOEg5hIbm0s",
"postman-token": "8f07c01a-c5a2-4d36-b1ed-8e4c2cdf44ca",
"user-agent": "PostmanRuntime/7.15.2",
"x-forwarded-port": "443"
},
"json": null,
"url": "https://postman-echo.com/post?hand=wave"
}
post2 interface example:
https://postman-echo.com/post
Content-Type:application/json
Participation:
{"foo1": "bar1",
"foo2": "bar2"
}
Return:
{"args": {},
"data": {
"foo1": "bar1",
"foo2": "bar2"
},
"files": {},
"form": {},
"headers": {
"x-forwarded-proto": "https",
"host": "postman-echo.com",
"content-length": "42",
"accept": "*/*",
"accept-encoding": "gzip, deflate",
"cache-control": "no-cache",
"content-type": "application/json",
"cookie": "sails.sid=s%3AkqcpoENABjs5hvp4UHtFutz3siOXVr1j.sxsQeWAZfU8yYDP650FgDVAQN2bDBHqHSp%2BsWECnCDA",
"postman-token": "5c36c705-4e2e-4865-ad10-6fa373a02308",
"user-agent": "PostmanRuntime/7.15.2",
"x-forwarded-port": "443"
},
"json": {
"foo1": "bar1",
"foo2": "bar2"
},
"url": "https://postman-echo.com/post"
}
Story:
Anthony Robbins, a famous American master of success, once put forward a universal formula of success:
Success = clear goal + detailed plan + immediate action + check and amend + stick to the end
From this formula we can see the importance of clear goals and detailed plans. Clear goals and detailed plans belong to the plan in advance, and the plan in advance can help us to carry out a scientific analysis of our ideas, and see if our ideas can be realized. At the same time, in the process of planning, it is also in combing their own ideas and methods to achieve the vision.
Wechat Length Adds Author by Two-Dimensional Code to Help You Enter Groups and Communicate
Get more exciting content
JMeter database connection operation
JMeter Interface Testing-Parameterization
JMeter Interface Testing Foundation
Jmeter Interface Test-Regular Expression Extractor