当前位置:网站首页>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
}
边栏推荐
- From programmers to large-scale distributed architects, where are you (2)
- 20 minutes to learn what XML is_ XML learning notes_ What is an XML file_ Basic grammatical rules_ How to parse
- Dos:disk operating system, including core startup program and command program
- [Galaxy Kirin V10] [desktop and server] FRP intranet penetration
- [Galaxy Kirin V10] [desktop] FTP common scene setup
- Introduction to extensible system architecture
- Latex error: missing delimiter (. Inserted) {\xi \left( {p,{p_q}} \right)} \right|}}
- Rhcsa operation
- Quick sort (C language)
- Linked list operation can never change without its roots
猜你喜欢

Architecture introduction

Today's sleep quality record 78 points

Add t more space to your computer (no need to add hard disk)

TS type gymnastics: illustrating a complex advanced type

Article publishing experiment

Static comprehensive experiment ---hcip1

Dynamic memory management

How to use diff and patch to update the source code

DCL statement of MySQL Foundation

Seven examples to understand the storage rules of shaped data on each bit
随机推荐
[Galaxy Kirin V10] [server] NUMA Technology
Read a piece of text into the vector object, and each word is stored as an element in the vector. Convert each word in the vector object to uppercase letters. Output the converted elements in the vect
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?
The last month before a game goes online
When I forget how to write SQL, I
Day06 list job
Latex arranges single column table pictures in double column format articles
Ruby time format conversion strftime MS matching format
Rhcsa operation
Error C4996 ‘WSAAsyncSelect‘: Use WSAEventSelect() instead or define _ WINSOCK_ DEPRECATED_ NO_ WARN
[Galaxy Kirin V10] [server] set time synchronization of intranet server
leetcode842. Split the array into Fibonacci sequences
VI text editor and user rights management, group management and time management
Regular expression
[Galaxy Kirin V10] [server] system startup failed
Four characteristics and isolation levels of database transactions
Differences among opencv versions
First article
RHCE day 3
Collection of practical string functions