当前位置:网站首页>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
}
边栏推荐
- leetcode1229. Schedule the meeting
- The last month before a game goes online
- Today's sleep quality record 78 points
- [Galaxy Kirin V10] [server] KVM create Bridge
- Iterator generators and modules
- Differences among opencv versions
- MPLS: multi protocol label switching
- Basic principle of servlet and application of common API methods
- Interview and lecture summary 1
- Static comprehensive experiment ---hcip1
猜你喜欢
VI text editor and user rights management, group management and time management
Virtual machine configuration network
leetcode842. Split the array into Fibonacci sequences
[Galaxy Kirin V10] [desktop] cannot add printer
[Galaxy Kirin V10] [server] NFS setup
Static comprehensive experiment ---hcip1
Rhsca day 11 operation
如果不知道這4種緩存模式,敢說懂緩存嗎?
[machine] [server] Taishan 200
Unittest+airtest+beatiulreport combine the three to make a beautiful test report
随机推荐
Strings and characters
If you don't know these four caching modes, dare you say you understand caching?
Deepmind proposed a Zuan AI, which specially outputs network attack language
DML statement of MySQL Foundation
Hlk-w801wifi connection
[testing theory] thinking about testing profession
Network connection (III) functions and similarities and differences of hubs, switches and routers, routing tables and tables in switches, why do you need address translation and packet filtering?
Dynamic memory management
The most detailed teaching -- realize win10 multi-user remote login to intranet machine at the same time -- win10+frp+rdpwrap+ Alibaba cloud server
Leetcode48. Rotate image
leetcode842. Split the array into Fibonacci sequences
Basic principle of servlet and application of common API methods
Write a program to judge whether the two arrays are equal, and then write a similar program to compare the two vectors.
Application and Optimization Practice of redis in vivo push platform
On binary tree (C language)
Latex learning insertion number - list of filled dots, bars, numbers
Rhcsa day 9
Debug:==42==ERROR: AddressSanitizer: heap-buffer-overflow on address
DNS hijacking
Es advanced series - 1 JVM memory allocation