当前位置:网站首页>Do you know all the interface test interview questions?
Do you know all the interface test interview questions?
2022-07-02 12:41:00 【Software testing】
Interview questions
What is interface testing ?
What is the process of interface automation testing ?
GET Request and POST What is the difference between a request ?
What are the common tools for interface testing ?
HTTP What are the request parameter types of the interface ?
How to obtain relevant response data from the previous interface and transfer it to the next interface ?
What are the main points of writing interface test cases ?
What are the steps of interface test ?
How to test the interface that depends on the login state in the interface test ?
How to test interfaces that rely on third-party data ?
Refer to the answer
1、 What is interface testing ?
· Interface test is a test method to test the interface between system components .
· The focus of interface testing is to check the exchange of data , The correctness of transmission , And the logical dependencies between interfaces .
· The significance of submitting interface test : Implement parallel testing during development , Reduce the depth of page layer testing , Shorten the test cycle of the whole project .
2、 Process of interface automation test ?
· The basic interface function automation test process is : Demand analysis -> Use case design -> Script development -> The test execution -> Result analysis
3、GET Request and POST What is the difference between a request ?
· GET Request for information acquisition , And it should be safe and idempotent ; When you're doing a data query , Suggest using Get The way . Such as : Commodity information interface 、 Search interface 、 Blog visitor interface, etc .
· POST Requests represent requests that may modify resources on the server ; Adding data 、 When modifying , Suggest using Post The way . Such as : Weibo Post Bar upload image interface 、 Login registration interface, etc .
Tips:
“GET Get data from the server ,POST Is to send data to the server ”. This statement is wrong ,GET/POST Can submit data ,Get Requests can also pass data to the server ,Post The request also requires the server to return data .
4、 What are the common tools for interface testing ?
· Postman
· Jmeter
· SoapUI
5、HTTP What are the request parameter types of the interface ?
· Query string parameters (Query String Parameters), Parameters will be url string In the form of .
· Request body parameters (Request body) Commonly used in POST request , have access to Content-Type To specify different parameter types .
6、 How to obtain relevant response data from the previous interface and transfer it to the next interface ?
· First obtain the corresponding return value from the response data in the previous interface , Then use regular expressions or json Parse to extract the value to be obtained , Then it's stored in a variable , Finally, you can directly reference it in the next interface .
7、 What are the main points of writing interface test cases ?
· Request parameter required 、 Options, etc
· The input and output are legal 、 Illegal parameters, etc
· Request parameter boundary values, etc
· Response data validation
· Logical verification between interfaces , If two requests have a strict sequence , It is necessary to test the case of the transfer sequence
8、 What are the steps of interface test ?
· Send interface request
· The return value obtained by the test interface
· Assertion : Determine whether the actual results are the same as expected
9、 How to test the interface that depends on the login state in the interface test ?
· The essence of an interface that depends on the login state is to bring Session perhaps Cookie To send successfully , In the build POST Add the necessary Session perhaps Cookie
10、 How to test interfaces that rely on third-party data ?
· You can use some MOCK Tools for ( Such as Json Server,Easy Mock) To simulate the data return of a third party , Minimize dependence on third-party data interfaces .
The house needs to be built layer by layer , Knowledge needs to be learned at one point one . We should lay a good foundation in the process of learning , More hands-on practice , Don't talk much , The last dry goods here ! I stayed up late to sort out the stages ( function 、 Interface 、 automation 、 performance 、 Test open ) Skills learning materials + Practical explanation , Very suitable for studying in private , It's much more efficient than self-study , Share with you .
Get off w/x/g/z/h: Software testing tips dao
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 .
边栏推荐
- What is the relationship between NFT and metauniverse? How to view the market? The future market trend of NFT
- 8 examples of using date commands
- Mui WebView down refresh pull-up load implementation
- Visual studio efficient and practical extension tools and plug-ins
- Redis introduction, scenario and data type
- LeetCode—剑指 Offer 51. 数组中的逆序对
- 基于STM32的OLED 屏幕驱动
- When uploading a file, the server reports an error: iofileuploadexception: processing of multipart / form data request failed There is no space on the device
- Go学习笔记—基于Go的进程间通信
- std::vector批量导入快速去重方法
猜你喜欢
Lekao.com: experience sharing of junior economists and previous candidates in customs clearance
Direct control PTZ PTZ PTZ PTZ camera debugging (c)
Docker compose configuration mysql, redis, mongodb
Sweetheart leader: Wang Xinling
AI中台技术调研
JS10day(api 阶段性完结,正则表达式简介,自定义属性,过滤敏感词案例,注册模块验证案例)
2.7 binary tree, post order traversal - [FBI tree]
包管理工具
Sparkcontext: error initializing sparkcontext solution
LTC3307AHV 符合EMI标准,降压转换器 QCA7005-AL33 PHY
随机推荐
AAAI 2022 | Peking University & Ali Dharma Institute: pruning and compression of pre training language model based on comparative learning
SparkContext: Error initializing SparkContext解决方法
Dijkstra AcWing 850. Dijkstra求最短路 II
. Net, C # basic knowledge
Programmers can't find jobs after the age of 35? After reading this article, you may be able to find the answer
堆 AcWing 839. 模拟堆
JSON序列化 与 解析
深拷贝 事件总线
Window10 upgrade encountered a big hole error code: 0xc000000e perfect solution
线性DP AcWing 895. 最长上升子序列
Js6day (search, add and delete DOM nodes. Instantiation time, timestamp, timestamp cases, redrawing and reflow)
绕过ObRegisterCallbacks需要驱动签名方法
Anti shake throttle
Sub thread get request
Use sqoop to export ads layer data to MySQL
Day12 control flow if switch while do While guessing numbers game
js 迭代器 生成器 异步代码处理 promise+生成器 -> await/async
spfa AcWing 852. spfa判断负环
BOM DOM
JS8day(滚动事件(scroll家族),offset家族,client家族,轮播图案例(待做))