当前位置:网站首页>Analysis of interface testing
Analysis of interface testing
2022-07-26 19:47:00 【Multi surveyor 111】
Interface testing is a type of testing , Another test method , It is part of testing in many fields , At the same time, it can be executed in different ways ;
A functional test
Functional testing is what we often call black box testing , The traditional black box test is to verify whether the developed product meets the product requirements specification , And the interface is actually part of the product requirements ;
for example :
Product needs : The client enters a word , Click button , That is, show the news related to this word in time ;
Function realization : The client spelled the words entered by the user into http request , Send to the server interface , The interface finds the news about this word , And it is spliced into json, Reply to the client , Clients are displayed in order .
In this case , Central demand ≈ Interface functions
Security testing
I often hear that security testing is also part of interface testing to a large extent , Because the interface is equivalent to the bridge between the internal server and the outside , If there are no guards on the bridge , Then anyone can access the internal server , The guard mentioned here is actually the security verification of the interface ;
Take a rotten example :
Interface functions : Receive the words entered by the user , Go to the database to query the explanation of this word ;
This involves spelling the words entered by the user into sql The process of , Interfaces need more than just splicing sql And implement , More importantly, filter the abnormal string entered by the user ;

automated testing
The traditional sense of automation is that the client automatically executes the black box through the framework case The process of , But interface testing can also be automated , Take a look at the following example :
Test requirements : The server receives various words input from the client 、 The sentence 、 Symbol 、 Words and other information , Query and judge the type of input 、 Interpretative sentence 、 Or judge that this is an illegal query , The client returns according to the json Display the results .
This requirement requires a lot of input case, For example, various phrases 、 character 、 Full angle 、 Half angle 、 Space 、 traditional Chinese character 、 Simplified Chinese character 、 Korean 、 Japanese and so on , But these case There are some common checkpoints , such as : The return value is json Format , There must be a type field 、 Is it legal bool value 、 If it is legal, explain the contents of the sentence ; So this demand , We can validate requirements through automation ; We just need to write the input case Just fine ;
Performance testing
Generally speaking , Performance test refers to the performance test of the server interface , This is also an important concern about whether the demand can be launched normally .
The most important interface performance test here is the following two parts :
1、 The maximum pressure that the server can bear ;
2、 Stability under normal load ;
unit testing
The reason is simple , The server interface is also code , There are also different modules 、 class 、 function , Single test can be used to ensure the functional correctness of the underlying functions of the server interface code , for example : analysis json Function of 、 Functions that handle request parameters 、 Connect db Functions and so on ;
For more information on testing techniques, please pay attention to : Shenzhen duosurveyor software and Technical Service Co., Ltd
边栏推荐
- 2022/07/26 学习笔记 (day16) 链表和栈
- cuda11.2对应pytorch安装
- LeetCode每日一练 —— 26. 删除有序数组中的重复项
- CONDA transfer project virtual environment essential skills +pip speed download too slow solution
- PADS画2.54mm排针
- [internship experience] date verification
- [MySQL must know and know] log details
- Reentrantlock learning - Basic Attributes
- C # upper computer development - modify the window icon and exe file Icon
- openstack 虚拟机网卡被重名为cirename0
猜你喜欢

Aof & RDB of J2 redis

PyQt5快速开发与实战 3.6 打包资源文件

After working for 13 years, I have a little software testing experience and feelings

DOM案例:10秒倒计时-写跳转页面相关的知识

企业数字化转型成大趋势,选对在线协作工具很重要

Test interview question set UI automated test

win11 edge怎么卸载?win11 edge浏览器彻底卸载的方法教程

C # upper computer development - modify the window icon and exe file Icon

How to compress the traffic consumption of APP under mobile network in IM development

eadiness probe failed: calico/node is not ready: BIRD is not ready: Error querying BIRD: unable to c
随机推荐
软件测试——自动化测试框架有哪些?
上半年住户存款增加10.33万亿元,平均每天约571亿存款涌向银行
LeetCode每日一练 —— 189. 轮转数组
2022/07/26 learning notes (day16) linked list and stack
Spatiotemporal prediction 5-gat
Linear algebra Chapter 4 linear equations
2022/07/26 学习笔记 (day16) 抽象与接口
How to protect e-commerce websites from network attacks?
AttributeError: ‘Upsample‘ object has no attribute ‘recompute_ scale_ factor‘
【PHP】将 SESSION 数据保存到 Redis
2022牛客多校联赛第三场 题解
工作13年后,个人的一点软件测试经历及感想……
服务发现原理分析与源码解读
C # create and read dat file cases
安全测试与功能测试、渗透测试你知道有什么区别吗?
J1: why is redis so fast + basic structure
canvas概述
Weekend highlights review | establishment of digital RMB industry alliance; China Mobile announced that hefeixin will stop its service
这22个绘图(可视化)方法很重要,值得收藏!
[MySQL must know and know] log details