当前位置:网站首页>Interface test process
Interface test process
2022-06-28 21:05:00 【Cool leg hair!】
Interface test process
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-V2LeBNEo-1656216105368)( The interface test - The first 01 God - Class notes .assets/image-20210707160900090.png)]](/img/12/ca49e96f33e150f6cb38794d14ca4b.png)
- Analyze requirements , Generate requirements documents ( product ).
- ( Develop and generate interface documents ) Parse interface document .
- produce Interface test cases ( submit for censorship ).
- perform The test case
- Tools :postman、jmeter、fidller
- Code :python + Requests +UnitTest
- Submit 、 Track defects .
- Generate Test report .
- ( Optional ) Interface automation continuous integration !
Interface document
What is an interface document
- ** Written by developers , Document describing interface information .** The development team develops according to the interface documents , And always maintain and abide by .
effect
- It can make front-end developers and background developers better cooperate , Improve work efficiency .( There is a unified reference document )
- When project iteration or project personnel change , It is convenient for later personnel to view and maintain
- It is convenient for testers to conduct interface test
The representation
- word Document form
- Excel Tabular form
- pdf Document form .
structure
- essential information :
- Resource path ( The agreement and domain name are in “ system information ” in )
- Request method
- Interface description
- Request parameters :
- Request header :
- Content-Type. Describe the data type of the request body !
- Request body :
- Implement the interface using Data and corresponding types .
- Request header :
- Return the data :
- Status code 200
- Error code ( Custom status code )
- Code value
- Description information .
Interface document parsing
- The parsing essence of interface documents : From the interface documentation , find http Request what is needed Data and information .
- It mainly includes : Request method 、URL 、 Request header 、 Request body 、 Response status code 、 describe .
- With “ Sign in ” For example :
- Request method :POST
- URL:http://ihrm-test.itheima.net/api/sys/login
- Request header :Content-Type :application/json
- Request body :{“mobile”:”13800000002”, “password”:”123456”}
- Response status code :200
- Error code :
- 10000: Successful operation !
- 20001: Wrong user name or password
- 99999: I'm sorry , The system is busy , Please try again later !
- Error code :


边栏推荐
- Figure neural network can also be used as CV backbone model. Huawei Noah Vig architecture is comparable to CNN and transformer
- Automatic operation and maintenance platform based on Apache APIs
- Application practice | 1billion data second level correlation. Huolala's OLAP System Evolution Based on Apache Doris (with PPT download)
- [learning notes] Introduction to principal component analysis
- 03.hello_ rust
- How do I download videos? Look at the super simple method!
- LeetCode877. 石子游戏
- T检验(检验两个总体的均值差异是否显著)
- input separator
- RT thread thread synchronization and thread communication
猜你喜欢

【筆記:模擬MOS集成電路】帶隙基准(基本原理+電流模+電壓模電路詳解)

The principle and source code analysis of Lucene index construction

力扣树的进一步应用

ThreadLocal principle

数据标准化处理

On the complexity of software development and the way to improve its efficiency
![[Note: analog MOS integrated circuit] bandgap reference (basic principle + current mode + voltage mode circuit explanation)](/img/cd/be62272d465ca990456c222b38df67.png)
[Note: analog MOS integrated circuit] bandgap reference (basic principle + current mode + voltage mode circuit explanation)

LeetCode每日一题——515. 在每个树行中找最大值

如何使用 DataAnt 监控 Apache APISIX

阿里云 MSE 基于 Apache APISIX 的全链路灰度方案实践
随机推荐
Flask - Summary
Binary tree problems
学习太极创客 — MQTT 第二章(七)ESP8266 MQTT 遗嘱应用
MySQL system error occurred 1067
题解 The SetStack Computer(UVa12096)紫书P116STL的综合应用
接口测试流程
LeetCode188. 买卖股票的最佳时机IV
精通数据分析能力,收入翻倍?什么才是最强竞争力
Stability summary
Deep interpretation of WiFi security vulnerability krack
LeetCode每日一题——522. 最长特殊序列 II
在哪个软件上开户比较安全,开户流程是什么?
openGauss内核分析之查询重写
【读书会第13期】视频文件的封装格式
LeetCode:合并两个有序链表_21
Can you make money by speculating in stocks? It's safe to open an account
Data standardization processing
With a market value of $120billion, how did intuit, an old tax giant, do it?
LeetCode877. 石子游戏
Web自动化工具选择