当前位置:网站首页>Spend a week painstakingly sorting out the interview questions and answers of high-frequency software testing / automated testing
Spend a week painstakingly sorting out the interview questions and answers of high-frequency software testing / automated testing
2022-07-02 02:00:00 【Test Architect Bei fan】
Preface :
It's getting closer and closer to our golden nine and silver ten , Many friends are also looking for new jobs , Here is an interview question for you. First of all, I wish you a smooth interview , At the end of the article, there are also a large number of interview questions for software testing and automated testing .
【 The end of the article leaves a lot of benefits for everyone 】

#01
How to make a test plan ?

*
Reference point
1. Have experience in developing test plans
2. Have the ability to reasonably arrange tests
3. Do you have the ability to output documents
*
Interview hit rate
80%
*
Refer to the answer
The test plan includes test objectives 、 Test range 、 Description of the test environment 、 Description of test type ( function , Security , performance , stability )、 Testing tools 、 The division of modules 、 Test leader 、 Schedule of test execution rounds 、 The location of related documents in the document management library 、 The risk of testing . The module division needs to be allocated according to the tester's familiarity with the business and personal ability , The estimation of workload needs to be based on the experience of previous tests , Combined with the modification of this requirement , The test volume can be roughly estimated
#02
APP Testing and web What's the difference between tests ?
*
Reference point
1. Mastery of various test types
2. Knowledge of testing theory
*
Interview hit rate
90%
*
Refer to the answer
Web The type of end test and mobile test are basically similar , All need functional testing 、 Performance testing 、 Safety test , They mainly distinguish web The end is usually b/s framework , browser-based ,app yes c/s framework , There are clients .
(1) From the perspective of system architecture :web Test as long as the server side is updated , The client will update synchronously ; And if it is app The server side has been modified , It means that all the core versions used by client users need to be regression tested again .
(2) Client performance :Web The client may only focus on response time ;App We should also care about traffic 、 Electric quantity 、cpu、 etc. ;
(3) Compatibility :Web Browser based , So it's more browser oriented (IE、Chrome、firefox) And computer hardware , Compatibility of computer system direction ;App The test has to rely on the phone or pad, It's not just the resolution 、 Frequency mesh size 、 It's important to look at the equipment system .
#03
Find a bug, How to position it is APP The problem of the end or the service side ?

*
Reference point
1. Examine your understanding of the basics of testing
2. To investigate the ability of troubleshooting in practical work
*
Interview hit rate
85%
*
Refer to the answer
1、 Caught analysis Through the client packet capture , Analyze whether the data returned by the server meets the expectation , If it's the right data server , That's the problem with the client
2、 Log analysis You can view the client by / Server log , Analyze whether there is abnormal log information , To determine the specific reason
#04
Use one SQL sentence Find out that each course is larger than 80 The student's name . surface scores as follows :
name course score
Zhang San Chinese language and literature 81
Zhang San mathematics 75
Li Si Chinese language and literature 76
Li Si mathematics 90
Wang Wu mathematics 100
Wang Wu English 90

*
Reference point
1. Database query
2. Aggregate functions
3.having Screening
*
Interview hit rate
89%
*
Refer to the answer
The minimum score of students is greater than 80, Then you can find that each course is greater than 80 The student's name
select name,min(score) from scores group by name having min(scor
e)>80);
#05
SQL What are the common aggregate functions in ?
*
Reference point
1. Investigate SQL Basic ability
2. Look at common database functions
*
Interview hit rate
90%
*
Refer to the answer
max(): Maximum
min(): minimum value
avg(): Average
sum(): Sum up
count(): Count the total
#06
Primary key 、 The difference between foreign key and index ?
*
Reference point
Understanding of common database indexes
*
Interview hit rate
90%
*
Refer to the answer
1) Definition
Primary key : Uniquely identify a record , There can be no repetition , Not allowed to be empty
Foreign keys : The foreign key of a table is the primary key of another table , Foreign keys can have duplicate , It can be null
Indexes : There are no duplicate values for this field , But there can be a null value
2) effect
Primary key : To ensure data integrity
Foreign keys : Used to make connections with other tables
Indexes : Improve the speed of query sorting
3) Number
Primary key : There can only be one
Foreign keys : A table can have multiple foreign keys
Indexes : A table can have multiple indexes
#07
Say something that is commonly used in a few jobs Linux command ?

*
Reference point
1. Check whether there is Linux Use experience
2. The investigation is right Linux Degree of familiarity
*
Interview hit rate
95%
*
Refer to the answer
cd: Toggle directory
ls: View the list of files
cp: Copy files
mv: Moving files
rm: Delete file
chmod: Set file permissions
cat: Browse the contents of the file
vi: File editing
find: Search for files
grep: Filter file content
#08
Used to docker Do you ? frequently-used docker What are the orders ?

*
Reference point
1. Investigate Devopts Related technology
2. Inspect whether it has docker Practical experience
*
Interview hit rate
95%
*
Refer to the answer
docker pull: Pull the mirror image
docker images: View local image
docker run: Run image as container
docker ps: View the running container
docker logs: View container log
docker cp: Copy the container file
docker start/stop/restart: start-up 、 stop it 、 Restart container
#09
linux Check out /web.log The first 25 What's in the third column of the row ?
*
Reference point
1. View the specified rows and columns in the file content
2. Commonly used file commands
*
Interview hit rate
70%
*
Refer to the answer
The three commonly used implementation methods are as follows :
sed -n 25p /web.log | cut -d " " -f3
head -n25 /web.log | tail -n1 | cut -d " " -f3
awk -F " " 'NR==25{print $3}' /web.log
#10
pytest How to realize parameterization ?
*
Reference point
pytest Understanding of parameterization
*
Interview hit rate
90%
*
Refer to the answer
Use @pytest.mark.parametrize Decorator
Example :
@pytest.mark.parametrize(' Receive parameter name in string form ', [( Parameters 1-1, ' Parameters 2-1'), ( Parameters 1-2, ' Parameters 2-2')],ids=[' The first 1 The case name corresponding to the parameter ', ' The first 2 The case name corresponding to the parameter '])
@pytest.mark.parametrize('goods_id,stock,exp', [(12, 1, ' Missing specification '), (' Product id ', '1', ' The item does not exist or has been deleted ')],ids=[' Do not fill in specifications and parameters for additional purchase ', ' The item number is an outlier '])
#11
What is? PO Pattern ,Po What are the advantages of the model ?
*
Reference point
1.po Pattern theory
2.po Mode layered thinking
*
Interview hit rate
80%
*
Refer to the answer
Page object model (PageObject) It's a design pattern , Used to write and maintain automated tests
Po The advantages of patterns :
1、PO It provides a mode of separating business process from page element operation , This makes the test code clearer .
2、 Separation of page objects and use cases , Makes us better reuse objects .
3、 Reusable page method code will become more optimized
4、 A more effective naming method makes it easier for us to know what the method operates UI Elements
How to write PO Pattern :
1. Abstract every page
2. Elements in the page are not exposed , Only the method of reporting error operation elements
3. Pages should not have cumbersome inheritance relationships
4. Not all elements in the page need to involve , Nuclear business elements are used for modeling
5. Divide the page into functional modules , stay Page Methods to realize these functions in
#12
Use jmeter How to do the connection between interfaces ?

*
Reference point
1. Are you familiar with jmeter
2. Are you familiar with the associated business scenarios
3. Be proficient in associating the components used
*
Interview hit rate
85%
*
Refer to the answer
Interface Association means that one interface should use the return value of another interface as a parameter , stay jmeter There are different processing components for different response data formats in ,
json Adoption of format json Extractor ,
xml perhaps html Adoption of format xpath Extractor ,
Other formats can use regular expression extractor ,
BeanShell The post processor can also extract the response content from the response result , After extracting the required content through these components , Reference variables in the interface to be associated to complete the association
#13
Tell me what you know HTTP Status code , And what they mean ?

*
Reference point
1. Examine job seekers' perceptions of HTTP Whether the agreement has a certain understanding
2. Common in investigation work HTTP The meaning of the status code
*
Interview hit rate
90%
*
Refer to the answer
200( The request is successful )
302( Redirect )
400(Bad Request/ Wrong request )
401(Unauthorized/ unauthorized )
403(Forbidden/ prohibit )
404(Not Found/ Not found )
405(Method Not Allowed/ Method does not allow )
500(Internal Server Error/ Internal server error )
502(Bad Gateway/ Wrong gateway )
503(Service Unavailable/ Service is not available )
504(Gateway Timeout/ gateway timeout )
#14
Tcp Three handshake process ?
*
Reference point
1. Investigate the theoretical basis of network protocol
2. Investigate Tcp Link creation process
*
Interview hit rate
95%
*
Refer to the answer
The first handshake : When establishing a connection , The client sends syn package (syn=j) To the server , And enter SYN_SENT state , Wait for server to confirm
The second handshake : Server received syn package , Must confirm customer's SYN(ack=j+1), At the same time, I also send a SYN package (syn=k), namely SYN+ACK package , At this time, the server enters SYN_RECV state
The third handshake : Client receives server's SYN+ACK package , Send confirmation package to server ACK(ack=k+1), This package has been sent , Client and server access ESTABLISHED(TCP Successful connection ) state , Complete three handshakes .
#15
http and https The difference between ?
*
Reference point
http The protocol and https agreement
*
Interview hit rate
95%
*
Refer to the answer
HTTP: Hypertext transfer protocol , It is a standard for client-side and server-side requests and responses .
HTTPS: It's about security HTTP passageway ,HTTP Security version of ,HTTP Lower join SSL layer ,HTTPS The safety basis of SSL, So the details of encryption need to be SSL.
Their differences are as follows :
1. HTTP Information is transmitted in clear text , and HTTPS Is safe Having security ssl The encrypted
2. HTTP The standard port is 80 , and HTTPS The standard port for is 443
3. HTTP No certificate required , and HTTPS Certification required . Need to CA Apply for a certificate , Generally, there are fewer free certificates , So there is a certain cost .
a key : Learning materials of course, learning is inseparable from materials , Of course, here is also prepared for you 600G Learning materials
Required first Focus on Then private my keyword 【000】 Get it for free Note that the keywords are :000
doubt : Why pay attention first ? return : Because if you don't pay attention, you can't see the private letter
Project practice
app project , Bank Project , Medical Project , Online retailers , Finance

Large scale e-commerce projects

Full set of software test automation test teaching video

300G Download tutorial materials 【 Video tutorial +PPT+ Project source code 】

A complete set of software testing automation testing factory has been

python automated testing ++ A complete set of templates + Performance testing


It's said that the iron juice who has paid attention to me for three consecutive years has been promoted, raised and made a fortune !!!!
边栏推荐
- OpenCASCADE7.6编译
- Bat Android Engineer interview process analysis + restore the most authentic and complete first-line company interview questions
- leetcode373. Find and minimum k-pair numbers (medium)
- How to execute an SQL in MySQL
- [Video] visual interpretation of Markov chain principle and Mrs example of R language region conversion | data sharing
- Ubuntu20.04 PostgreSQL 14 installation configuration record
- What are the skills of spot gold analysis?
- 并发编程的三大核心问题
- leetcode2305. 公平分发饼干(中等,周赛,状压dp)
- 321. Chessboard segmentation (2D interval DP)
猜你喜欢

leetcode2309. 兼具大小写的最好英文字母(简单,周赛)

开发工具创新升级,鲲鹏推进计算产业“竹林”式生长

TSINGSEE青犀平台如何实现同一节点同时播放多个视频?

leetcode2305. Fair distribution of biscuits (medium, weekly, shaped pressure DP)
![[技术发展-21]:网络与通信技术的应用与发展快速概览-1- 互联网网络技术](/img/2d/299fa5c76416f74bd1a693c433dd09.png)
[技术发展-21]:网络与通信技术的应用与发展快速概览-1- 互联网网络技术

Design and implementation of key value storage engine based on LSM tree

321. Chessboard segmentation (2D interval DP)

RTL8189FS如何关闭Debug信息

How to use redis ordered collection

leetcode2310. 个位数字为 K 的整数之和(中等,周赛)
随机推荐
matlab 实现语音信号重采样和归一化,并播放比对效果
5g/4g pole gateway_ Smart pole gateway
Feature extraction and detection 16 brisk feature detection and matching
leetcode2310. The one digit number is the sum of integers of K (medium, weekly)
如何用一款产品推动「品牌的惊险一跃」?
医药管理系统(大一下C语言课设)
Logging only errors to the console Set system property ‘log4j2. debug‘ to sh
【C#】使用正则校验内容
This is the form of the K-line diagram (pithy formula)
How to solve MySQL master-slave delay problem
Automatically browse pinduoduo products
mysql列转行函数指的是什么
TSINGSEE青犀平台如何实现同一节点同时播放多个视频?
并发编程的三大核心问题
【视频】马尔可夫链原理可视化解释与R语言区制转换MRS实例|数据分享
剑指 Offer 47. 礼物的最大价值
What are the skills of spot gold analysis?
【LeetCode 43】236. The nearest common ancestor of binary tree
MySQL constraints and multi table query example analysis
How to use a product to promote "brand thrill"?