当前位置:网站首页>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 .
边栏推荐
- AI中台技术调研
- LeetCode—<动态规划专项>剑指 Offer 19、49、60
- About the loading of layer web spring layer components, the position of the layer is centered
- JSON序列化 与 解析
- Discrimination of the interval of dichotomy question brushing record (Luogu question sheet)
- 8 examples of using date commands
- Use sqoop to export ads layer data to MySQL
- Shuttle encapsulated AppBar
- Calculate the maximum path sum of binary tree
- 传感器 ADXL335BCPZ-RL7 3轴 加速度计 符合 RoHS/WEEE
猜你喜欢

Does C language srand need to reseed? Should srand be placed in the loop? Pseudo random function Rand

LTC3307AHV 符合EMI标准,降压转换器 QCA7005-AL33 PHY

Direct control PTZ PTZ PTZ PTZ camera debugging (c)

Adding database driver to sqoop of cdh6

China traffic sign detection data set

There is a hidden danger in CDH: the exchange memory used by the process of this role is XX megabytes. Warning threshold: 200 bytes

JS6day(DOM结点的查找、增加、删除。实例化时间,时间戳,时间戳的案例,重绘和回流)

Direct control PTZ PTZ PTZ PTZ camera debugging (c)

模块化 CommonJS ES Module

Record the range of data that MySQL update will lock
随机推荐
2.6 using recursion and stack - [tower of Hanoi problem]
[FFH] little bear driver calling process (take calling LED light driver as an example)
LTC3307AHV 符合EMI标准,降压转换器 QCA7005-AL33 PHY
ArrayList与LinkedList效率的对比
Redis bloom filter
Go学习笔记—基于Go的进程间通信
In development, why do you find someone who is paid more than you but doesn't write any code?
怎样写一篇赏心悦目的英文数学论文
基于STM32的OLED 屏幕驱动
Go learning notes - go based interprocess communication
3 A VTT端接 稳压器 NCP51200MNTXG资料
Does C language srand need to reseed? Should srand be placed in the loop? Pseudo random function Rand
趣味 面试题
1380. Lucky numbers in the matrix [two-dimensional array, matrix]
包管理工具
Drools executes the specified rule
Mongodb redis differences
JS10day(api 阶段性完结,正则表达式简介,自定义属性,过滤敏感词案例,注册模块验证案例)
Record the range of data that MySQL update will lock
How to write a pleasing English mathematical paper