当前位置:网站首页>Postman learning
Postman learning
2022-06-22 18:44:00 【It's a big deal】
List of articles
Preface
Tips :https://www.bilibili.com/video/BV1434y1h7vf?spm_id_from=333.1007.top_right_bar_window_history.content.click&vd_source=33acb67196498979ff3eb7ff24fccf9a Go to the link
Tips : The following is the main body of this article , The following cases can be used for reference
One 、Git request
Git Requests generally have no request body , Just focus on the request method and address .
test API Website :
https://api.apiopen.top/swagger/index.html
Two 、 Interface test process
1、 Get interface information : Interface document or packet capture
Use of bag grabbing F12. Switch to network, Better choose Fetch/xhr.
Video provided by the packet capturing test website :
testingedu.com.cn:8000/Home/user/login.html

Required interface information :
The interface is in the process of passing to the server , Generate message , Message format : That's ok + head + body , It is divided into request message (request) And return message (response).
2.1.1 The composition of the request message
That's ok + head + body :
The request message is divided into four elements :
Request line : HTTP Methods and URL Address .
Request header : Generally, I don't pay much attention to . The only default concern is content-type Request format type .
Request body :get Generally, there is no request body , Never mind ,post put Method , Parameters are usually placed in the request body .
The format of the request body eg:
Type 1 :Content-Type: text/html; charset=utf-8
I understand it , This is like a package type of express delivery , If I take a popsicle and ask the courier to mail it , He would take a frozen box to hold , If I take a Book , He would take an ordinary box to hold .Content-Type It is equivalent to the packaging type .
Type 2 :Content-Type:application/json
2.1.2 The composition of the return message
Generally, only the request body and status code are concerned .
Common status codes :
| Category | The reason the phrase | |
|---|---|---|
| 1XX | Informational( Informational status code ) | The accepted request is being processed |
| 2XX | Success( Success status code ) | The request is processed normally |
| 3XX | Redirection( Redirect the status code ) | Additional operations are required to complete the request |
| 4XX | Client Error( Client error status code ) | The server was unable to process the request |
| 5XX | Server Error( Server error status code ) | Server processing request error |
Link to the original text :https://blog.csdn.net/qq_35689573/article/details/82120851
2、 Edit request message ( copy ), Complete the request , In the process, modify the parameters according to your own test case design .
3、 Verify the returned results
postman Write the verification of expected results in , The so-called assertion .
stay tests/ Write assertion script in the test .
summary
postman It's easy to use .
边栏推荐
- Game NFT Market: opensea's most easily cut cake
- docker: Error response from daemon: Conflict. The container name “/mysql“ is already in use by conta
- 平安证券开户安全吗?它和平安银行是什么关系呢?
- 【工具】pip和conda的相關使用
- 炒股开户选择哪个券商公司是最安全最好呢
- @“齐鲁多娇”幸运用户,山东5A景区喊你免费游园啦!
- 网络智能运维助力运维效率提升
- Beijing restorer's half moon: how to rekindle the fireworks in store management
- The Fourth Youth Life Science Forum | first round notice
- Sort---
猜你喜欢
![[learn shell programming easily]-4. The difference between single quotation marks and double quotation marks, the operation of integer values, the definition of arrays in the shell and the detailed us](/img/88/5d8800e5723b4e34e832271d139eaa.png)
[learn shell programming easily]-4. The difference between single quotation marks and double quotation marks, the operation of integer values, the definition of arrays in the shell and the detailed us

High voltage direct current (HVDC) model based on converter (MMC) technology and voltage source converter (VSC) (implemented by MATLAB & Simulink)

知乎热问:一个程序员的水平能差到什么程度?

In May, 2022, China's game manufacturers and applications went to sea, with top 30 revenue in EMEA region

I became a big enemy when I bought wanghong ice cream
![[applet project development -- Jingdong Mall] configuration tabbar & window style for uni app development](/img/cd/bdf26a02a43c63f374861e8431787c.png)
[applet project development -- Jingdong Mall] configuration tabbar & window style for uni app development

写一本畅销书是怎样的一种体验
Concepts and solutions of redis' cache penetration, cache avalanche and cache breakdown problems

Some preliminary explorations of avoiding obstacles and finding paths by rays in unity

缺失值处理
随机推荐
数组实现循环链表
math_ Angular function & inverse trigonometric function
Donghua University - Research on interpretable recommendation micro behavior with enhanced knowledge perception reasoning
Pytorch——报错解决:“torch/optim/adamw.py” beta1, UnboundLocalError: local variable ‘beta1‘
传统图像--LBP特征
Activity启动流程梳理
平安证券开户安全吗?它和平安银行是什么关系呢?
I became a big enemy when I bought wanghong ice cream
Live broadcast Preview - 12 first-class Chinese scholars open ICLR 2022
让RDS(for MySQL)数据库的慢日志、审计日志跨空间转存OBS变得更加自动化
Array implementation of circular linked list
c# sqlsugar,hisql,freesql orm框架全方位性能测试对比之sqlserver
List的同步类比较
Five practical tips for power Bi (complimentary books at the end of the article)
The Jenkins container failed to install the ruby runtime plug-in. Solve the error
What is the experience of writing a best seller
How does flynk MySQL CDC guarantee the server_ Is the ID globally unique?
游戏NFT市场:OpenSea最易被切下的蛋糕
[learn shell programming easily]-4. The difference between single quotation marks and double quotation marks, the operation of integer values, the definition of arrays in the shell and the detailed us
sqlserver保存时遇到这个页面怎么回事啊