当前位置:网站首页>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 .
边栏推荐
- 《数字经济全景白皮书》保险数字化篇 重磅发布
- Let me ask you if there are any documents or cases of flynk SQL generation jobs. I know that flynk cli can create tables and specify items
- PDF文档签名指南
- App general function test cases
- 亚朵三顾 IPO
- Can online reload system software be used safely? Test use experience to share with you
- Unity 颜色板|调色板|无级变色功能
- SuperSocket 1.6 创建一个简易的报文长度在头部的Socket服务器
- The method of reinstalling win10 system is as simple as that
- There are only two TXT cells in the ArrayExpress database. Can you only download the sequencing run matrix from line to ENA?
猜你喜欢

Gold three silver four, don't change jobs

Daily question brushing record (XV)

基础图表解读“东方甄选”爆火出圈数据

资产安全问题或制约加密行业发展 风控+合规成为平台破局关键

Ajout, suppression et modification d'un tableau json par JS

Wind chime card issuing network source code latest version - commercially available
![Tourism Management System Based on jsp+servlet+mysql framework [source code + database + report]](/img/41/94488f4c7627a1dfcf80f170101347.png)
Tourism Management System Based on jsp+servlet+mysql framework [source code + database + report]

若依请求url中带有jsessionid的解决办法

Please help xampp to do sqlilab is a black

内网穿透zerotier 外网(手机、电脑等)访问内网设备(树莓派、NAS、电脑等)
随机推荐
每年 2000 亿投资进入芯片领域,「中国芯」创投正蓬勃
快讯 l Huobi Ventures与Genesis公链深入接洽中
Zero code and high return. How to use 40 sets of templates to meet 95% of the reporting needs in the work
DAY ONE
Without CD, I'll teach you a trick to restore the factory settings of win10 system
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
Compile logisim
B 站弹幕 protobuf 协议还原分析
Please help xampp to do sqlilab is a black
flinksql select id ,count(*) from a group by id .
【系统分析师之路】第七章 复盘系统设计(面向服务开发方法)
DAY SIX
JDBC programming of MySQL database
2022 latest blind box mall complete open source operation source code / docking visa free payment interface / building tutorial
MATLIB reads data from excel table and draws function image
The tutorial of computer reinstallation win10 system is simple and easy to understand. It can be reinstalled directly without U disk
Scholar doctor hahaha
[212] what are three methods for PHP to send post requests
【通信】两层无线 Femtocell 网络上行链路中的最优功率分配附matlab代码
传统企业要为 Web3 和去中心化做的 11 个准备