当前位置:网站首页>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 .
边栏推荐
- 直播预告 | 12位一作华人学者开启 ICLR 2022
- Nuxt - create nuxt app
- Game NFT Market: opensea's most easily cut cake
- Make it more automatic to transfer slow logs and audit logs of RDS (for MySQL) databases to OBS across spaces
- 详解openGauss多线程架构启动过程
- Some preliminary explorations of avoiding obstacles and finding paths by rays in unity
- Correct method of converting Inkscape into DXF file SVG exporting DXF file
- The world's first AR contact lens, the entrance of metauniverse is really opened this time?
- 2022焊工(初级)特种作业证考试题库模拟考试平台操作
- A course for New Oriental transformation bilingual live broadcast to bring goods to the project manager
猜你喜欢

SOA面向服务的架构
![[small program project development -- Jingdong Mall] rotation chart of uni app development](/img/9b/503919129a2c544dd6143c6b47a2c4.png)
[small program project development -- Jingdong Mall] rotation chart of uni app development

<JVM上篇:内存与垃圾回收篇>08-对象实例化及直接内存

Typescript (7) generic

sqlserver保存时遇到这个页面怎么回事啊

math_ Angular function & inverse trigonometric function

大一女生废话编程爆火!懂不懂编程的看完都拴Q了

Tasks and responsibilities of the test team and basic concepts of testing
传输层 知识点总结

Correct method of converting Inkscape into DXF file SVG exporting DXF file
随机推荐
传输层 知识点总结
What is flush software? Is it safe to open an account online?
静态链表(一)
The Jenkins container failed to install the ruby runtime plug-in. Solve the error
@“齐鲁多娇”幸运用户,山东5A景区喊你免费游园啦!
docker: Error response from daemon: Conflict. The container name “/mysql“ is already in use by conta
Database industry analysis: from the global IT industry trend to the development of domestic databases
让RDS(for MySQL)数据库的慢日志、审计日志跨空间转存OBS变得更加自动化
Short video live broadcast source code, use of EditText input box
啊哈C语言 第6章 天啊 一大串数正在接近(第26讲)
Nuxt - create nuxt app
Traditional image -- LBP feature
Oracle中dbms_output.put_line的用法实例
Missing value handling
零基础学编程/学逆向/过检测(frida实战)
Concepts and solutions of redis' cache penetration, cache avalanche and cache breakdown problems
[OWT] OWT client native P2P E2E test vs2017 build
新手必会的静态站点生成器——Gridsome
Filebeat收集日志数据传输到Redis,通过Logstash来根据日志字段创建不同的ES索引
Unity中通过射线躲避障碍物寻路的一些初步探索