当前位置:网站首页>Functional testing to automated testing, sharing ten years of automated testing experience
Functional testing to automated testing, sharing ten years of automated testing experience
2022-07-23 13:12:00 【Automated test】
Xiaobian has contacted too many testing peers , Because most of my peers have been doing manual testing before , Now I'm eager to do automated testing , There is no lack of work 5 More than years of colleagues . I I have been engaged in software automation testing for nearly ten years , Come into contact with Bottom server 、 API 、Web、APP、H5 wait , I know a lot about automation . Let's share my personal experience here .
If you don't know anything about automation , I'm yelling about automation every day , It's all empty shouting .

therefore Want to automate , First Learn about some common problems in automated testing .
What is automated testing ?
automated testing , seeing the name of a thing one thinks of its function , Automatically complete the test work .
Through some automatic testing tools or self-made wheels, we can realize the manual point before simulation / Write the work and verify the results to complete the whole testing process , This kind of testing process , It's automated testing .
Because every automated test is case It all starts with manual testing , So the basis of automated testing is manual testing .
Why automated testing
- Automated testing saves cost ( According to the project )
- Some test projects are hard to implement by hand ( The cost of manual work is high )
- The project quality process requires
The advantages of automated testing And disadvantages
advantage :
Regression testing is more convenient and reliable ; Can run more , More cumbersome testing , And fast and efficient ; Some manual tests can be executed, which are quite difficult or impossible , Such as a large number of concurrent users ; Better use of resources , It has the characteristics of consistency and repeatability , Automated test scripts are completely reusable ; Enhance the credibility of the software ; Testing in multiple environments, etc .
Inferiority :
Maintenance costs are relatively high
System development time may not be shortened
Still rely on manual testing , Many problems can't be found
Automated test classification
According to the classification of test purpose, it can be roughly divided into : Function automation test , Performance automated testing
According to the test object, it can be divided into :Web Application testing ,APP test , The interface test , Unit test, etc
Function automation
The purpose of testing is to find out whether the functions in the software meet the requirements of users , Practice has proved , Often we implement UI The purpose of automated testing is not to find defects in software systems , More is to verify whether the system can run normally .
Besides, it can be based on UI Conduct automated tests , We can also test based on the web service interface provider , Interface based functional testing is common , It's also a very effective means .
In addition, it can be tested based on the basic code of the system , Such as unit testing , Integration testing phase , This phase of testing is also called white box testing , We can go straight to DAO,Service Service to test , Common testing techniques here include Junit, TestNG, Mock, Stub etc. .
Performance automation
Performance automation testing is to simulate high concurrent load through testing tools for stress testing , In order to find the bottleneck of software system running under high load , Include Performance bottlenecks in the application itself , Network bottleneck , Server hardware resource bottleneck , Data storage server, etc , Usually only with the help of automated testing tools , Common performance testing tools include , Loadrunner, Jmeter, Ngrinder, Gatling etc. , No matter which testing tool , There are basically three parts : Test script management , Test scenario configuration , Monitoring results .
Similar to functional automation is , Performance test work objects can also be user oriented UI layer , Or service interface provider , You can even directly face the underlying business logic layer , The vast majority of performance tests conducted through the user layer simulate the tests closest to real user scenarios , It is also the inevitable stage of performance testing .
The process of automated testing

Common tools for automated testing
below I A brief list of common tests , And the best testing tool for it .
Performance testing tools :Loadrunner,Jmeter,Ngrinder,Gatling, There are some differences and limitations in each testing tool , You can refer to relevant documents for details .
Function test tools : Selenium, QTP
APP Automated test tool :Appium, UI Automator, MonkeyRunner, Android UI Recommended for testing UI Automator, yes Android Automated testing framework provided by , Basically support all Android Event operations .IOS Applications can choose to use Appium.
Interface automation testing tools :Junit,TestNG, OKhttp, HttpClient,Spring Restful etc. , Some coding experience is required , Of course, there are also some A tool for success , such as Postman,HttpRequester,SoapUI etc. .
Unit test tools :Junit, TestNG, EasyMock, Mockito, JMockit etc.
Since what conditions are suitable for people to do automated testing
Have code capabilities
Master a development language , java、Python、ruby、c#
Be familiar with the tested system
For example, you are web test , You have to understand js、css、html、xpath
You are a mobile test , You have to have Android Development basis and iOS Development infrastructure , Meeting debug app
You are a C/S You need to be familiar with the test TCP、IP agreement
Master a set of automatic testing framework ( Tools )
such as selenium/appium ;nunit/testng ;robot framework/cucumber
Good at learning , To know what it is to know what it is
IT The industry is changing too fast , The frequency of emerging things is fast , Only keep learning , To keep up with the times , Not eliminated .
In a word
Learn a development language Java/Python, Learn a testing tool selenium/appium, Master a testing framework , More precipitation , need System information 【 Private letter my key words “999” Free access 】. To learn more , And then seize the opportunity , It's easy to transform automated testing
This is today's sharing , If it works , Welcome to share and forward to more friends .
【 Private letter my key words “999” Free access 】 High salary resume template ( Interview collection is free )
If this article helps you , Please make up a little like ! Only in this way can I have the motivation to continue to update !
Have you learned today's little knowledge
Welcome to interact with us in the message area ~


High salary resume template ( Interview collection is free )
![]()
边栏推荐
- Plug ins used by Jenkins
- php框架MVC类代码审计
- 录入数学公式至mark down文档的方法
- OSPF single area configuration instance learning record
- UI自动化
- VLAN configuration instance learning record
- Frame relay network configuration example learning record
- 互联网时代下,如何精细化用户运营?
- Count different types of data according to different times (stored procedures)
- 北汇信息12岁啦|Happy Birthday
猜你喜欢

Single arm routing configuration instance learning record

踩坑electron渲染进程renderer,解决require is not defined的问题

Record a reptile question bank

Intégrité du signal (si) intégrité de l'alimentation électrique (PI) notes d'apprentissage (32) Réseau de distribution d'énergie (4)

linx的链接、一级目录、重定向、cp与mv

OpenCV图像处理(上)几何变换+形态学操作

用户与组的管理、文件的权限

高压MOS管KNX42150 1500V/3A 应用于变频器电源-逆变器等

Summary of time complexity( Ο Is the asymptotic upper bound, Ω is the asymptotic lower bound, P, NP, NP hard, NPC problem)

将指定秒转为时分秒格式
随机推荐
在GPU上运行MATLAB程序
numpy:矩阵的元素选取
问题解决:Script file ‘Scripts\pip-script.py‘ is not present.
C语言-大端存储和小端存储
信號完整性(SI)電源完整性(PI)學習筆記(三十二)電源分配網路(四)
HCIA----02
Signal integrity (SI) power integrity (PI) learning notes (XXXI) power distribution network (III)
Harbor deployment
谈谈学习和工作——钱学森
Jupyter notebook添加已存在的虚拟环境
Static route configuration instance learning record
时间复杂度总结(Ο是渐进上界,Ω是渐进下界,p,np,np-hard,NPC问题)
HCIA----04 路由静态扩展、VLAN
图像处理 图像特征提取与描述
[untitled]
Pod topology constraints
Current limiting based on redis+lua
【JZOF】11旋转数组的最小数字
Step on the electric render process renderer to solve the problem of require is not defined
聊聊研发团队中的“人”