当前位置:网站首页>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 .
边栏推荐
- Plan and change of continuous repair
- 大一女生废话编程爆火!懂不懂编程的看完都拴Q了
- [tools] related use of PIP and CONDA
- < JVM part I: memory and garbage collection part > 08 object instantiation and direct memory
- When do project managers particularly want to escape from work?
- AHA C language Chapter 6 God, a large string of numbers is approaching (lesson 26)
- 2022年R2移动式压力容器充装试题模拟考试平台操作
- 第四届青年生命科学论坛 | 第一轮通知
- plsql变量赋值问题
- 2022年T电梯修理复训题库及答案
猜你喜欢

阿里云过户找不到账号安全组ID问题

基于转换器 (MMC) 技术和电压源转换器 (VSC) 的高压直流 (HVDC) 模型(Matlab&Simulink实现)

Gridhome, a must-have static site generator for beginners

TypeScript(7)泛型

今天19:30 | 科普大佬说,带大家探寻AI如何激发人类的创造力

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

SOA面向服务的架构

@Lucky user of "Qilu Duojiao", Shandong 5A scenic spot calls you to visit the park for free!

如何持续突破性能表现? | DX研发模式

云端极简部署Svelte3聊天室
随机推荐
[轻松学会shell编程]-4、单引号和双引号的区别、整形数值的运算、shell中数组定义和sed的详细用法
What is the experience of writing a best seller
第四届青年生命科学论坛 | 第一轮通知
缺失值处理
"Half of Zhejiang's Venture Capital Circle" must be state-owned assets
详解openGauss多线程架构启动过程
Nuxt - create nuxt app
Does CDC 2.2.1 monitoring sqlserver not support monitoring multiple databases?
数组模拟栈
Azkaban startup error 2022/06/20 21:39:27.726 +0800 error [stdouterrredirect] [azkaban] exception in thread "m
Pytoch -- error reporting solution: "torch/optim/adamw.py" beta1, unboundlocalerror: local variable 'beta1‘
2022重庆幼教产业展览会|高科技玩具益智解压玩具博览会
中国两颗风云气象“新星”数据产品向全球用户共享
c# sqlsugar,hisql,freesql orm框架全方位性能测试对比之sqlserver
传统图像--LBP特征
SOA面向服务的架构
Source code of live video system, hiding and Title Modification of the top title bar
exness整理马斯克收购推特需要解决三个问题
利用Inkscape转换为dxf文件的正确方法 svg导出dxf文件
[applet project development -- Jingdong Mall] subcontracting configuration of uni app development