当前位置:网站首页>[fundamentals of interface testing] Part V - detailed explanation of interface use case design
[fundamentals of interface testing] Part V - detailed explanation of interface use case design
2022-04-21 23:36:00 【NAIST】
Interface test point
The test point is called the test latitude .
1. A functional test
Single interface function
Business scenario functions
2. Performance testing
Response time
throughput
Concurrency number
Server resource utilization
3. Security testing
Whether sensitive data is encrypted
SQL Inject
other
-
A functional test
Single interface function
A single business module in manual testing , Generally, it corresponds to an interface
Log in to business –> Login interface
Join the shopping cart business –> Join the shopping cart interface
Order business –> Order interface
Payment business –> Payment interface
With tools 、 Code . Bypass the front-end interface , The data needed to organize the interface , Expand the interface test .
Business scenario functions
According to the user's actual use scenario , Sort out the interface business scenarios
When organizing business scenarios , Generally, you only need to do a positive test ( Consistent with manual )
It is generally recommended to cover the most business scenarios with the least use cases
Sign in - Search for products - Plus shopping cart - Place an order - payment – evaluation -
Performance testing
Response time
throughput
Concurrency number
Server resource utilization -
Security testing
Attack security : Completed by professional safety test engineer .
Business security :
Whether sensitive data is encrypted ( for example : The login password )
SQL Inject
Browser developer tools

Design methods and ideas
- The same as manual design
Manually test the corresponding function test points , It is consistent with the functional safety corresponding to the interface test
tpshop Mall login page , Key points of manual function test case design :
1. Whether the page layout meets the requirements
2. Test user name input box , Whether the input data is correct
3. Test password input box , Whether the input data is correct
4. Test verification code input box , Whether the input data is correct
tpshop Mall login page , Key points of interface test case design :
1. Test the corresponding of the user name input box username Is the value of
2. Test the... Corresponding to the password input box password Value , Whether it is right
3. Corresponding to the test verification code input box verify_code Value , Whether it is right
- Different from manual work :
1. Manual testing , Test whether the data written into the input box is correct , Whether the parameter value corresponding to the interface test parameter is correct
2. The interface test , Not just for parameter values , You can also test the parameters themselves .
Forward parameter :
Required parameters : All required ( Required ) Both contain
Combination parameter : All required + Any one or more optional parameters
All parameters : All required + All optional parameters
Reverse parameter :
Multiple parameters : There are one or more required parameters ( You can specify any )
Shaoshen : One or more required parameters are missing
No arguments : There are no required parameters
bad parameter : Parameter name input error
Single interface test cases :
Manual test case documentation 8 The big thing
Number 、 Use case name ( title )、 modular 、 priority 、 Preset conditions , Test data , Operation steps , Expected results
Interface test document elements :
Number , Use case name ( title ), modular , priority , Preset conditions , Request method ,URL, Request header , Request body ( Request data )、 Expected results

User name related test cases

Password related test cases

Parameter related test cases
Business process test cases
Other omissions


版权声明
本文为[NAIST]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204212329553694.html
边栏推荐
- JDBC概念 在idea里创建JDBC项目步骤
- (10) RTSP video stream pulled by QT engineering ffmpeg in Ruixin micro rk3568
- 5. Network structure and ISP, packet delay, loss, throughput
- 拼多多店铺怎么选择资源位,怎么报名活动,什么活动对店铺利益最大?
- How JMeter sets parameterization
- Golang force buckle leetcode 388 The longest absolute path of the file
- C language topic 1: three digits that can be composed of 1,2,3,4
- Golang force buckle leetcode 380 O (1) time insertion, deletion and acquisition of random elements
- Good morning and good night. Punch in V2 0.1 official account module
- 7.6 thread properties
猜你喜欢

Buuctf, you drove me away

7.9 线程 互斥锁

C language topic 1: three digits that can be composed of 1,2,3,4

7.3 创建线程

Find the first prime number greater than x (day 42)

6. Hiérarchie des protocoles et modèle de service (clé)

Click, walk and move of characters in 3D sandbox game

入参有汉字,报错500,服务器内部错误

自定义登录成功处理

Connexion personnalisée traitée avec succès
随机推荐
MySQL stored procedure usage -- including exercises
php7. 2 Zend opcache cache includes the contents read out
Pytorch (V) -- Notes
Pytorch中如何获取某层Module?(方便改变梯度,获取特征图,CAM等)
山洪灾害监测预警系统解决方案
Section II introduction to yolov3 tiny and Darknet
Custom login successfully processed
The three secret softwares of the leaders are practical and powerful, which are powerful tools for office efficiency and workplace promotion
BUUCTF 荷兰宽带数据泄露
Ruixin microchip AI part development record section 1 "PC side environment construction 1"
5、网络结构与ISP,分组延时、丢失、吞吐量
(Reprint) MySQL read-write separation -- cluster and high concurrency
Solve the error reported by composer: could not find a version of package XXX / YYY
MySQL存储过程用法--含练习题
Two benchmark performance test methods of redis
Source switching of composer
87 r K-means, hierarchical clustering, implementation of EM clustering
6. Hiérarchie des protocoles et modèle de service (clé)
Mobile app Games / software / resource download station / software box source code
Good morning and good night. Punch in V2 0.1 official account module