当前位置:网站首页>When is it appropriate for automated testing? (bottom)
When is it appropriate for automated testing? (bottom)
2022-04-23 05:16:00 【Fried broad beans eat bouncing beans】
adopt Last article , You can realize the importance and advantages of Automation , You must identify use cases that can be automated . So , The goal pursued must be considered , And at what level in the test pyramid .
Try to answer the following questions :
What is the goal ?
The first thing to confirm is to always aim for a higher level of software quality , And analyze whether automation is suitable for the project .
Answer that question , It is suggested to conduct feasibility analysis on the target .
Here are some scenarios that are most likely to be automated :
- There is technical debt that needs to be eliminated ;
- Regression testing is time consuming ;
- The project is very complex and long-term .
Which test cases should be automated ?
Not everything can be automated in context , That's why it's relevant to know which cases are in line with our purpose . In terms of code level and developers , Unit tests are the easiest to script . In terms of testers , We usually focus on UI and API Level automated regression case , First consider the most critical and complex processes .
Here are the test cases that can be automated :
regression testing
Since we already have a test suite that must be executed regularly after each product release , The work of running these suites manually becomes repetitive , In addition, you need to take time from other non automated tasks , You can get more value from these tasks . These regression test cases are highly automated , Especially easy to integrate into CI/CD In the model . This increases the cost and time required to perform other tasks , Because when performing other activities , Scripts can be executed unattended .
High risk test
These cases are usually agreed by stakeholders , Focus on checking high priority and key functions , If they fail , Will greatly affect the business model . That's why this method is called “ Risk based testing ”.
Cases that automate testing of these features can help identify possible blocking releases immediately after each release 、 Or risk events that must be handled quickly .
Complex or time-consuming tests
In a project , There may be some complex situations that need to be copied manually , So if we convert it into a script , Then it will be easier to execute them in an automated way . If it's a form with a lot of data , Then testers may be more error prone , Especially when you have to test the same form with multiple data variants . At this time, the probability of error can be reduced through automation .
Repeat the test case
Just as regression testing becomes a repetitive task , In some special cases , It can be easily automated . for example , Manually test a large amount of data in the same process , It takes a lot of time , Having to repeat the test makes the process more tedious . However , By automating this process , We can parameterize these data , Instead of manually testing each value . This is also called data-driven testing , Automated testing is parameterized , And from the data source ( Such as files or databases ) get data .
Tool selection
Now that we know what to automate , We can continue to choose the tools to use . Given the number of tools available , This activity is probably one of the most complex analyses , The decision will have to consider the projects involved 、 The budget 、 Knowledge and experience .
There are several open source 、 Business and custom tools , Their limitations and availability vary . Choose the right tool , You must know what requirements must be met in order to continue the cost-benefit analysis of its use .
Here is a brief overview of some test automation tools :

- Selenium: An open source tool , It's widely accepted all over the world , For testing on different browsers and platforms Web Applications .
- Appium: Another open source framework ( be based on Selenium), Mainly used in iOS and Android Test automation on mobile devices .
- Cucumber: This tool is BDD( Behavior driven development ) Part of the method .Cucumber The main advantage of is its ease of use , Because it's very intuitive , Provides a wide range of functions , And it's open source .
- ZTF:Zentao Testing Framework, Is an open source automated test management framework , Focus on the management function of automated testing , It can solve the problem of use case information management 、 Test script execution 、 Comparison of test results 、 defects Bug Submit and other questions .
- ZenData:ZenData It is a convenient general data generation tool , It has two main functions : Data generation and data analysis . Support one click generation of massive data for performance and stress testing , For large scale 、 Engineering automated testing .
It should be noted that , There is no best tool for all situations . Make criteria based on the application under test and decisions , You can choose between different software more flexibly .
版权声明
本文为[Fried broad beans eat bouncing beans]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230510216155.html
边栏推荐
- JSP-----JSP简介
- Redis data type usage scenario
- 学习笔记:Unity CustomSRP-13-ColorGrading
- 使用 Kears 实现ResNet-34 CNN
- Unity C# 网络学习(四)
- 好的测试数据管理,到底要怎么做?
- Swing display time (click once to display once)
- 静态流水线和动态流水线的区别认识
- Data security has become a hidden danger. Let's see how vivo can make "user data" armor again
- Making message board with PHP + MySQL
猜你喜欢

7-4 is it too fat (10 points) PTA

工具在数字化转型中扮演了什么样的角色?

源码剖析Redis中如何使用跳表的

深度学习笔记 —— 物体检测和数据集 + 锚框

Where, on when MySQL external connection is used

MySQL slow query

Deep learning notes - data expansion

Making message board with PHP + MySQL

PIP free export with path (@ file: / / /) notes

The 8 diagrams let you see the execution sequence of async / await and promise step by step
随机推荐
Mairadb数据库基本操作之数据管理
Basic use of sqlyog
Cross border e-commerce | Facebook and instagram: which social media is more suitable for you?
Deep learning notes - object detection and dataset + anchor box
静态流水线和动态流水线的区别认识
MySQL slow query
Basic theory of Flink
MySQL realizes row to column SQL
Unity C e-learning (IV)
Redis data type usage scenario
calendar. Pit point of getactualmaximum (calendar. Day_of_month)
无线网怎么用手机验证码登录解决方案
MySQL foreign key constraint
C. Tree Infection(模拟+贪心)
Redis lost key and bigkey
Mac enters MySQL terminal command
Golang memory escape
Unity C# 网络学习(四)
5 minutes to understand MySQL row column conversion
Installing kuberneters using kubedm