当前位置:网站首页>1000 words selected - interface test basis
1000 words selected - interface test basis
2022-07-06 23:52:00 【Test Xiaona】
One 、 Interface test essence
What is an interface ?
Hardware :USB、 Projector 【 Something used for data transmission 】
Software : Interface collectively API(application program interface)【 Authentication code :token、key、appkey】
Interface has internal interface and external interface
Internal interface : The developer wrote it himself , For the system itself
External interface : The system calls the external interface ( Like each big APP Pay with wechat , Alipay payment and so on )
summary : Why interfaces are needed
Because the interface allows internal data to be modified externally
such as : The bank card deposit can be called by the payment interface , After online payment , The balance has changed
Why do interface tests
- Most systems are separated from the front end and the back end , If the development progress is different , The interface developed first can be tested . It is usually used mock service , Imitate the response of the front end or the back end
- security , The verification of the front end may be bypassed . Need to pay attention to safety , For example, financial transactions , ID card information, etc
- Test shift left , Test early intervention
The process of interface interaction
Take the operation of wechat on bank cards as an example

Two 、 Interface returns data
1. Generally, there are three groups of data
error_code: Error code ,0 On behalf of success , Development customization
msg: Chinese description of the error
data: The real data returned
Json Detailed explanation
from 2 Data types in : Key value pair , Array
Json Online editor https://www.bejson.com
2.html Format
<html>
<title></title>
<body>
<error_code>0</error_code>
...
</body>3.xml Format
<?xml?version="1.0"encoding="utf-8">
<error_code>0</error_code>
...
</xml>3、 ... and 、 Interface test protocol
1.webservice agreement ( Not commonly used ):
be based on http Of soap Protocol transfer data
webservice=soap=http+xml,webservice The agreement is http+xml Composed of , among xml Will be used in wsdl,wsdl Is a description language xml A format in .
Address of the interface :http//...?wsdl
Restful It's a kind of The interface specification , Not the interface protocol ,restful Interface specifications will also be used http agreement .
- get- get data
- post- Submit data
- put- Modifying data
- delete- Delete data
2.dubbo agreement
Address of the interface :dubbo://......
Apply to Transmission of a small amount of data , Can withstand large concurrency
3. Address of the interface :http://
http Hypertext transfer protocol , It is mainly used for data transmission between browser and server
HTTPS=http+ssl( Secure transport protocol )


Finally, thank everyone who reads my article carefully , Watching the rise and attention of fans all the way , Reciprocity is always necessary , Although it's not very valuable , If you can use it, you can take it

These materials , For doing 【 software test 】 For our friends, it should be the most comprehensive and complete war preparation warehouse , This warehouse also accompanied me through the most difficult journey , I hope it can help you ! Everything should be done as soon as possible , Especially in the technology industry , We must improve our technical skills . I hope that's helpful …….
If you don't want to experience it again, you can't find information when you study on your own , No one answers the question , If you insist on giving up after a few days , You can add mine below qq Group discussion and Exchange , There are also various software testing materials and technical exchanges .
边栏推荐
- Ajout, suppression et modification d'un tableau json par JS
- Talking about the current malpractice and future development
- 【212】php发送post请求有哪三种方法
- app通用功能测试用例
- The tutorial of computer reinstallation win10 system is simple and easy to understand. It can be reinstalled directly without U disk
- [OFDM communication] OFDM system signal detection based on deep learning with matlab code
- A novice asks a question. I am now deployed on a single machine. I submitted an SQL job and it runs normally. If I restart the service job, it will disappear and I will have to
- Experiment 5: common automation libraries
- 英国都在试行4天工作制了,为什么BAT还对996上瘾?
- Wasserstein Slim GAIN with Gradient Penalty(WSGAIN-GP)介绍及代码实现——基于生成对抗网络的缺失数据填补
猜你喜欢

DevOps可以帮助减少技术债务的十种方式

MATLIB从excel表中读取数据并画出函数图像

Today, I met a senior test developer from Tencent and saw the ceiling of the foundation

Automatic test tool katalon (WEB) test operation instructions

js對JSON數組的增删改查

【精品】pinia 基于插件pinia-plugin-persist的 持久化

Per capita Swiss number series, Swiss number 4 generation JS reverse analysis

The worse the AI performance, the higher the bonus? Doctor of New York University offered a reward for the task of making the big model perform poorly

服务器SMP、NUMA、MPP体系学习笔记。

谁说新消费品牌大溃败?背后有人赢麻了
随机推荐
基础图表解读“东方甄选”爆火出圈数据
【自动化测试框架】关于unittest你需要知道的事
Wasserstein slim gain with gradient poverty (wsgain-gp) introduction and code implementation -- missing data filling based on generated countermeasure network
One minute to learn how to install the system, win7 XP, win10 and win11 become very simple
Master binary tree in one article
Do you still have to rely on Simba to shout for a new business that is Kwai?
若依请求url中带有jsessionid的解决办法
The best sister won the big factory offer of 8 test posts at one go, which made me very proud
okcc呼叫中心的订单管理时怎么样的
Oracle对表进行的常用修改命令
DAY FIVE
Please help xampp to do sqlilab is a black
After 3 years of testing bytecan software, I was ruthlessly dismissed in February, trying to wake up my brother who was paddling
Gradle knowledge generalization
AI金榜题名时,MLPerf榜单的份量究竟有多重?
在Docker中分分钟拥有Oracle EMCC 13.5环境
11 preparations for Web3 and Decentralization for traditional enterprises
【OFDM通信】基于深度学习的OFDM系统信号检测附matlab代码
Today, I met a senior test developer from Tencent and saw the ceiling of the foundation
DAY FOUR