当前位置:网站首页>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
}
边栏推荐
- VI text editor and user rights management, group management and time management
- BGP advanced experiment
- IPv6 comprehensive experiment
- Remove linked list elements
- Application and Optimization Practice of redis in vivo push platform
- Rhcsa learning practice
- Article publishing experiment
- Evolution from monomer architecture to microservice architecture
- Number of relationship models
- Dictionaries and collections
猜你喜欢

Rhcsa day 9

Discussion | has large AI become autonomous? Lecun, chief scientist of openai

Quick sort (C language)

Rhsca day 11 operation

Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool

Three schemes of ZK double machine room

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

VLAN part of switching technology

Using SA token to solve websocket handshake authentication
![[Galaxy Kirin V10] [desktop] printer](/img/ab/066923f1aa1e8dd8dcc572cb60a25d.jpg)
[Galaxy Kirin V10] [desktop] printer
随机推荐
Advanced order of function
[machine] [server] Taishan 200
Evolution from monomer architecture to microservice architecture
Common system modules and file operations
DDL language of MySQL database: create, modify alter, delete drop of databases and tables
Introduction to extensible system architecture
Remove linked list elements
What if the book written is too popular? Author of "deep reinforcement learning" at Peking University: then open the download
Es advanced series - 1 JVM memory allocation
Leetcode48. Rotate image
Rhcsa day 10 operation
Open the neural network "black box"! Unveil the mystery of machine learning system with natural language
MFC document view framework (relationship between classes)
Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool
Basic data types of MySQL
leetcode1229. Schedule the meeting
Discussion | has large AI become autonomous? Lecun, chief scientist of openai
Recursive method to achieve full permutation (C language)
From programmers to large-scale distributed architects, where are you (2)
Huge number multiplication (C language)