当前位置:网站首页>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 .
边栏推荐
- LTC3307AHV 符合EMI标准,降压转换器 QCA7005-AL33 PHY
- Leetcode - Sword finger offer 59 - I, 59 - II
- Js6day (search, add and delete DOM nodes. Instantiation time, timestamp, timestamp cases, redrawing and reflow)
- 2.6 using recursion and stack - [tower of Hanoi problem]
- About wechat enterprise payment to change x509certificate2 read certificate information, publish to the server can not access the solution
- Shuttle encapsulated AppBar
- JDBC 预防sql注入问题与解决方法[PreparedStatement]
- Docsify deploy IIS
- LeetCode—<动态规划专项>剑指 Offer 19、49、60
- IPhone 6 plus is listed in Apple's "retro products" list
猜你喜欢
Deep Copy Event bus
堆 AcWing 839. 模拟堆
Initial JDBC programming
Redis bloom filter
kubenetes中port、targetPort、nodePort、containerPort的区别与联系
JS7day(事件对象,事件流,事件捕获和冒泡,阻止事件流动,事件委托,学生信息表案例)
Performance tuning project case
JDBC 预防sql注入问题与解决方法[PreparedStatement]
Does C language srand need to reseed? Should srand be placed in the loop? Pseudo random function Rand
哈希表 AcWing 840. 模拟散列表
随机推荐
Embedded Software Engineer career planning
线性DP AcWing 899. 编辑距离
In development, why do you find someone who is paid more than you but doesn't write any code?
Oracle从入门到精通(第4版)
Openssh remote enumeration username vulnerability (cve-2018-15473)
JS7day(事件对象,事件流,事件捕获和冒泡,阻止事件流动,事件委托,学生信息表案例)
js 迭代器 生成器 异步代码处理 promise+生成器 -> await/async
Redis avalanche, penetration, breakdown
About wechat enterprise payment to change x509certificate2 read certificate information, publish to the server can not access the solution
Visual studio efficient and practical extension tools and plug-ins
When uploading a file, the server reports an error: iofileuploadexception: processing of multipart / form data request failed There is no space on the device
About asp Net MVC project in local vs running response time is too long to access, the solution!
The differences and relationships among port, targetport, nodeport and containerport in kubenetes
AI中台技术调研
百款拿来就能用的网页特效,不来看看吗?
ArrayList与LinkedList效率的对比
Simple use of drools decision table
Docsify deploy IIS
Does C language srand need to reseed? Should srand be placed in the loop? Pseudo random function Rand
Floyd AcWing 854. Floyd求最短路