当前位置:网站首页>All you want to know about interface testing is here
All you want to know about interface testing is here
2022-07-25 21:58:00 【Xiaowu knock code】
Q: What is the interface ?
A: The interface test : It is a kind of test to test the interface between system components
The interface mainly includes : The interface between modules in the same system / Front end and back end interfaces , The other is the docking between cross system platforms ( Internal interface , External interface )
Q: Common interface types / agreement :
A:HTTP type / agreement : adopt get or post To get data , High efficiency in data processing == Concept
Webservice type / agreement : adopt soap Protocol to get data , Compared with http Can handle more complex data types , In essence http agreement
Q: Common interface request methods :
A:(1) call terminate Method .
(2) Use subProcess Modular Popen Method .
Easy to use , The specific use , Not here .
Q: common http Status code
A:200( normal ): It means that everything is normal , To the server , And the server responded to your request normally
302( Temporary redirection ): Indicates that the requested document has been temporarily moved elsewhere , New for this document url stay location The response header gives
304( not changed ): Indicates that the version of the client cache is up to date , The client should continue to use it , For example, the front end js
403( prohibit ): The server understands the client request , But refused to deal with it , It is usually caused by the permission setting of files or directories on the server
404( Can't find ): The resource requested by the client does not exist on the server
500( Internal server error ): Server side CGI,ASP,JSP Wait for a program error
504: Overtime
Q: Interface testing principle ?
A: Simulate the client to send a request to the server , After receiving the request, the server handles the response request , And return the corresponding results to the client , A process in which the client receives the result
Q: Back end interface test once , The front end is also tested , Did you repeat the test ?
A:== Be sure to test , But what? , Functional testing doesn't need to be so detailed and careful , In case of abnormal circumstances , Just choose some common
- Which stage of test execution does the interface test belong to ?
Q: Interface test process / step = How to do interface testing ?
A:1. Obtain interface requirements and analyze
Write interface test cases & Review test cases
Project environment deployment
Perform the test & Tool selection
Submit bug And follow up
It is necessary to sort out the interface test report separately ( The company will do it upon request )
Knowledge reserve :
Software testing Basics : Write use cases / Design method
Linux command
Tomcat frame
Database knowledge / Observe the data flow in the data table
Master the interface concept
Mastery of tools : browser / plug-in unit /jmeter/SoapUI Principle and specific operation steps
Analytical ability : Demand business / Log analysis
Q:get and post What's the difference between methods ?
A:get It's through url The ginseng , post Is in body data In the reference
get It is mainly used to obtain data from the server ,post Mainly used to send data
get No, post So safe
Q: How to write interface test cases ?
A: Normal call of interface . Is to enter the normal parameter value , Check that the response result information of the interface is consistent with the expectation of the interface document , Include status, code, Database data, etc ( The interface should write test cases according to the returned results of the document )
Exception verification of interface . Including the length , type , Required and other exceptions , Consider boundary values synchronously . If the type of data passed is wrong, can it be handled . for example id Whether integer is supported , What is passed is a decimal or a string ? And the passed parameter is large enough or negative , Whether the interface can handle normally .
Business rule validation . The investment interface must have sufficient balance to invest , For example, you can't invest in non competitive bidding .
Interface security verification . Sensitive information for users ( password , ID number ) To encrypt , If it's an external interface , This is especially important . ------ See if there are any other requirements , User encryption
Performance verification of interface . The time of interface processing data is also a method of testing , It involves the optimization of algorithm and code . With the help of stress testing tools loadrunner complete ---------- More or less response time 10s , Ease of use -------- Whether there are project requirements
Q: The interface test case has fewer operation steps than the function test case
A: The focus of interface testing : Yes 3 spot
Return results
Database data
Log of the server
For the Journal , Generally normal results , You don't have to see , appear bug( abnormal ) When , You must read the server log
Finally, thank everyone who reads my article carefully , The following online link is also a very comprehensive one that I spent a few days sorting out , I hope it can also help you in need !

These materials , For those who want to change careers 【 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 grow up alone , Unable to find the information of the system , The problem is not helped , If you insist on giving up after a few days , You can click the small card below to join our group , We can discuss and exchange , There will be various software testing materials and technical exchanges .
Typing is not easy , If this article is helpful to you , Click a like, collect a hide and pay attention , Give the author an encouragement . It's also convenient for you to find it quickly next time .
Self study recommendation B Stop video :
Zero basis transition software testing : Self taught software testing , Got the byte test post offer, Is the B The best video station !
Advanced automation testing : Huawei has landed , Salary increase 20K,2022 Most suitable for self-study python Automated test tutorial , Spend it yourself 16800 Bought , Free sharing

边栏推荐
- EL表达式改进JSP
- 关于接口测试你想知道的都在这儿了
- [Flink] flick rocksdbliststate reports an error you cannot add null to a liststate
- Redis 使用详解
- Detailed summary of C language game dual cache to solve the flash screen problem [easy to understand]
- [redis underlying parsing] linked list type
- 【饭谈】那些看似为公司着想,实际却很自私的故事 (一:造轮子)
- Sofa weekly | open source person - Niu Xuewei, QA this week, contributor this week
- [hand torn STL] unordered_ set、unordered_ Map (encapsulated with hash table)
- 如何用 Redis 实现分布式锁的?
猜你喜欢
![[redis underlying parsing] string type](/img/a6/47083b033125195ebaf80090919fe2.png)
[redis underlying parsing] string type

Performance debugging -- chrome performance
![[MAIXPY]kpu: load error:2005, ERR_READ_FILE: read file failed问题解决](/img/0b/da67b5a361a2cdfaf81568d34cf5f7.png)
[MAIXPY]kpu: load error:2005, ERR_READ_FILE: read file failed问题解决

Guiding principles of information security construction

GPON introduction and Huawei OLT gateway registration and configuration process

新版Maixhub部署(V831与K210)
![[hand torn STL] unordered_ set、unordered_ Map (encapsulated with hash table)](/img/33/08f7b72ce99e07821a1f4b6e594e13.png)
[hand torn STL] unordered_ set、unordered_ Map (encapsulated with hash table)

ORIGYN基金会正式启动$OGY Staking,引领新一轮生态利好

【汇编语言01】基础知识

Open source RSS subscriber freshrss
随机推荐
The second short contact of gamecloud 1608
【汇编语言01】基础知识
What are the application characteristics of NTU general database gbase Bi?
Redis内存淘汰机制?
Open source RSS subscriber freshrss
[fan Tan] after the arrival of Web3.0, where should testers go? (ten predictions and suggestions)
Summary of function test points of wechat sending circle of friends on mobile terminal
c sqlite ... ...
立创EDA——我为什么要学EDA
ORIGYN基金会正式启动$OGY Staking,引领新一轮生态利好
若依如何解决导出使用下载插件出现异常?
Shopify sellers: share some tips for social media marketing!
虚拟内存与磁盘
[hand tear STL] BitSet (bitmap), bloom filter
YUV420 YUV420sp 图像格式「建议收藏」
Guiding principles of information security construction
Bitcoin.com:usdd represents a truly decentralized stable currency
[interview: concurrent Part 24: multithreading: comprehensive exercise] sequence control
Redis 使用详解
Redis为何选择单线程?