当前位置:网站首页>Postman interface test
Postman interface test
2022-07-04 10:47:00 【dijiaye1】
One 、 Interface classification
- External interface : The interface between the tested system and the external system
- Internal interface : The interface between modules in the tested system
Two 、 Key points of interface test
- Check the correctness of interface parameters
- Correctness of interface functions
- Correctness of output results
- Fault tolerant handling of abnormal scenarios
- Access control
3、 ... and 、 Interface test process
- Get api Interface document ( Get from the developer or grab the package ), Familiar with business interface 、 Address of the interface 、 Authentication method 、 Enter the reference 、 The ginseng 、 Error codes and other special requirements .
- Review the interface and test case writing
Write ideas :
Example : Enter the correct input parameters 、 The interface returns to normal
Counter example :
Counterexample of authentication : The authentication code is empty 、 error 、 Be overdue ...
Parameter counter example : Whether the parameter is required to verify 、 Exception verification of parameters 、 Error code overwrite ...
Other scenarios : Interface blacklist 、 Interface call times limit 、 Paging scenario test ( Negative pages 、0、1、5、 10…100) - Using interface test tools Postman、Jemeter Perform interface tests
- Postman+newman+jenkins+git Implementing continuous integration .( Output reports and emails )
Four 、Postman Interface testing tool
- Two tool systems :Postman+newman+jenkins+git、Jemeter+Ant+jenkins+git
- Postman The workbench

Request interface :https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=wx74a8627810cfa308&secret=e40a02f9d79a8097df497e6aaf93ab80
Request parameters :grant_type=client_credential
appid=wx74a8627810cfa308
secret=e40a02f9d79a8097df497e6aaf93ab80
return :
{
"access_token": "53_MuXabuJBJ7qFJysWndxaoa6_LGPz2y4rB61LJ3GA-GZlzMF91mTFUFaLN7zaZY84R5q46Dv-u14AIUL7u_cIqlxM8MhIDkNS14d0wXjpTKptflvpiBr6wvD9rmGrTs53ib_G2hpWUUkC9ltbWAQgAGAQUK",
"expires_in": 7200
}
边栏推荐
- [Galaxy Kirin V10] [server] iSCSI deployment
- 2022 AAAI fellow release! Yan Shuicheng, chief scientist of sail, and Feng Yan, Professor of Hong Kong University of science and technology, were selected
- Learning XML DOM -- a typical model for parsing XML documents
- RHCE - day one
- OSPF summary
- The future education examination system cannot answer questions, and there is no response after clicking on the options, and the answers will not be recorded
- [Galaxy Kirin V10] [server] NUMA Technology
- [Galaxy Kirin V10] [desktop] can't be started or the screen is black
- Recursion and divide and conquer strategy
- Es advanced series - 1 JVM memory allocation
猜你喜欢

Evolution from monomer architecture to microservice architecture

Error C4996 ‘WSAAsyncSelect‘: Use WSAEventSelect() instead or define _ WINSOCK_ DEPRECATED_ NO_ WARN

Learning XML DOM -- a typical model for parsing XML documents

Realsense of d435i, d435, d415, t265_ Matching and installation of viewer environment
![[Galaxy Kirin V10] [server] set time synchronization of intranet server](/img/f8/0847314029930840c91bce97ccd961.jpg)
[Galaxy Kirin V10] [server] set time synchronization of intranet server

C language structure to realize simple address book

Three schemes of ZK double machine room

Virtual machine configuration network

Application and Optimization Practice of redis in vivo push platform

Four characteristics and isolation levels of database transactions
随机推荐
On binary tree (C language)
leetcode1229. Schedule the meeting
Basic data types of MySQL
[Galaxy Kirin V10] [server] KVM create Bridge
Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool
Architecture introduction
Vs201 solution to failure to open source file HPP (or link library file)
Differences among opencv versions
Realsense of d435i, d435, d415, t265_ Matching and installation of viewer environment
Introduction to tree and binary tree
Dos:disk operating system, including core startup program and command program
Add t more space to your computer (no need to add hard disk)
Leetcode48. Rotate image
Delayed message center design
How to use diff and patch to update the source code
Container cloud notes
Interview and lecture summary 1
Personal thoughts on the development of game automation protocol testing tool
Today's sleep quality record 78 points
Hlk-w801wifi connection