当前位置:网站首页>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
}
边栏推荐
- Error C4996 ‘WSAAsyncSelect‘: Use WSAEventSelect() instead or define _ WINSOCK_ DEPRECATED_ NO_ WARN
- IPv6 comprehensive experiment
- RHCE - day one
- C language - stack
- PHP programming language (1) - operators
- Ruby time format conversion strftime MS matching format
- MFC document view framework (relationship between classes)
- For and while loops
- Container cloud notes
- [Galaxy Kirin V10] [server] system partition expansion
猜你喜欢

Debug:==42==ERROR: AddressSanitizer: heap-buffer-overflow on address

Dichotomy search (C language)

Using SA token to solve websocket handshake authentication

Delayed message center design

Introduction to tree and binary tree

Dynamic memory management

Seven examples to understand the storage rules of shaped data on each bit

Personal thoughts on the development of game automation protocol testing tool

IPv6 comprehensive experiment

Error C4996 ‘WSAAsyncSelect‘: Use WSAEventSelect() instead or define _ WINSOCK_ DEPRECATED_ NO_ WARN
随机推荐
Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool
Aike AI frontier promotion (2.14)
Jianzhi offer 04 (implemented in C language)
Seven examples to understand the storage rules of shaped data on each bit
The most detailed teaching -- realize win10 multi-user remote login to intranet machine at the same time -- win10+frp+rdpwrap+ Alibaba cloud server
[Galaxy Kirin V10] [server] FTP introduction and common scenario construction
IPv6 comprehensive experiment
The bamboo shadow sweeps the steps, the dust does not move, and the moon passes through the marsh without trace -- in-depth understanding of the pointer
Rhcsa - day 13
TS type gymnastics: illustrating a complex advanced type
Crawl Zhejiang industry and trade news page
Discussion | has large AI become autonomous? Lecun, chief scientist of openai
Common system modules and file operations
Container cloud notes
From programmers to large-scale distributed architects, where are you (I)
Remove linked list elements
XMIND installation
[Galaxy Kirin V10] [desktop] printer
[machine] [server] Taishan 200
Const's constant member function after the function; Form, characteristics and use of inline function