当前位置:网站首页>Automated test lifecycle
Automated test lifecycle
2022-07-05 12:07:00 【Software testing Lao Mo】
Catalog
2、 Automated test lifecycle methodology 6 Stages
3、 Determine the scope of test automation
4、 Choose the right automation tool
5、 test plan + Test design + The test strategy
6、 Set up the test environment
7、 Key areas of test environment settings
8、 Set up best practices for test environment management :
9、 Automated test script development + perform
10、 analysis + Generation of test results and test reports
1、 Preface
Now , Project managers and developers face the challenge of building reliable applications with minimal resources and in a shrinking schedule . therefore , Organizations are turning to automated testing to effectively achieve this goal .
In terms of automated testing , Many of us think this is just SDLC( Software development lifecycle ) Part of , But to achieve the best results of automated testing , A complete automated test cycle must be followed , Automated test lifecycle .
This article is suitable for learners who want to learn how to improve the quality of software products by implementing a complete automated testing lifecycle . ad locum , I will discuss the complete automated test lifecycle .
2、 Automated test lifecycle methodology 6 Stages
The implementation of automated test life cycle is implemented in parallel with the software development life cycle process .
The structured automated test lifecycle includes a multi-stage process , This process supports the use and introduction of automated testing tools , Develop and run test cases , Develop test design , Activities required to build and process test data and environments . In the automated test lifecycle approach , Build the test design to describe the test work , So as to provide a framework for the project and test team about the scope of the test program .
3、 Determine the scope of test automation
This is the first phase of the automated test lifecycle , To determine the feasibility of Automation . All aspects should be considered when analyzing the feasibility . Again , It is also important to perform feasibility analysis on manual test case packages , It enables automation engineers to design test scripts .
At this particular stage , The following matters should be properly handled .
Which application modules can be automated , What cannot be automated ?
Which tests can be automated , And how to automate it ?
Cost should also be considered , Factors such as team size and expertise .
Before you start testing automation , The following feasibility checks should be carried out :
- Test case automation feasibility
AUT Automation feasibility
Browse the application under test screen , And mention all of the applications UI Components , To effectively carry out feasibility analysis . Identify the UI Percentage of components . Try to find automated testing tools , These tools can help automate with very few changes UI Components . This brings us to the next stage !
4、 Choose the right automation tool
Automated testing is highly tool dependent . This is why finding the right automated testing tools is a critical stage in the automated testing lifecycle . When you are looking for automation tools , You need to remember the budget , Technology used in the project , The familiarity of the tool with onboard resources , Intuitiveness , Flexibility, etc . Choose a tool , Provide you with a support team that can solve queries or problems .
for example , If you are looking for an automated browser compatibility testing tool , You need to keep in mind the various browsers provided . It can capture video logs between different browsers and devices , Metadata for automated scripts . Mechanisms for highlighting and tracking errors .
Need to provide a cloud based Selenium Grid, It and support Selenium Each test automation framework of is compatible . The provided automation dashboard can even capture the details of test execution , Finally, we will provide you with step-by-step screenshots , The video log and metadata of the test execution .
5、 test plan + Test design + The test strategy
The most critical phase of the automated test lifecycle approach defines how to achieve and achieve the goal of Test Automation . In the life cycle of automated testing “ The test strategy ” Stage , Choosing a test automation framework is a top priority .
The choice of tools depends on the technology used in the application . Before starting automated testing , Please fully understand your product . for example , If it is a desktop application , Please find the language it is based on . perhaps , If you want to test Web Applications , Please understand the functions you use that you don't approve of , This feature may not be compatible in all browsers .
During the test planning phase , The test team will determine the standards and guidelines for the creation of test procedures ; Hardware ; Software and network supporting test environment ; Preliminary test schedule ; Test data requirements ; Defect tracking process and related tracking tools , And the process of controlling the test configuration and staging environment .
The team of test engineers developed a test architecture , Describe the structure of the test program and manage the test program after designing the test program model . Post design is a test architecture , It describes the structure of the whole test program and the management of the test process .
When planning a test management strategy , Please make sure to consider the following :
Collect all manual test cases from the test management tool , To identify test cases that need to be automated .
After understanding the advantages and disadvantages of testing tools , Determine the framework to use .
Build test suites for automated test cases in tools for test management .
Make sure the background is mentioned in the test plan , risk , Background and dependencies between tools and Applications .
Seek approval of the testing strategy from customers or stakeholders .
6、 Set up the test environment
seeing the name of a thing one thinks of its function , This phase of the automated test lifecycle involves setting up the machine or remote machine that will execute the test case . Why do we need remote machines ? Because unless we live in an ideal world , Otherwise, your users will use different machines to visit your website or Internet Upper Web Applications .
It's one thing to constantly check different devices , But we also need to be cautious about various browsers and browser versions . Because your website may be rendered differently in one browser from another . Cross browser compatibility testing ( Also known as cross browser testing ) It's a program , Among them, we test websites or... Across multiple browser versions Web Applications , To ensure that we provide a seamless user experience for all customers .
The environment setting stage requires careful planning , You need to ensure that you can maximize test coverage in as many different scenarios as possible . The test team is responsible for arranging and tracking environment setting activities ; Install the test environment software , Network resources and hardware ; Improve the test database and develop the test platform script and environment setting script .
7、 Key areas of test environment settings
Test data – Compared with production , Many test environment settings are not populated with similar data , Once the code changes are put into production , This will make the product very fragile . Front end operating environment – Make sure you have a front-end running environment to perform load tests , Handle with analysis Web The ability of traffic .
All systems to be tested , List of modules and Applications .
Isolated database server for staging environment .
Test across various client operating systems .
Test across the largest browsers and browser versions .
Make sure to test your website on both low-end and high-end Networks , To understand the difference between the presentation time and the overall appearance of the website or web application .
Documentation is the key – Ensure that all configuration guidelines are covered in the central repository / Installation guide / User manual, etc .
The test environment settings involve the following tasks :
Tool license .
Setup Utility , Such as advanced text editor and comparison tool .
Automation framework implementation
AUT Access and valid credentials
Add in License
Various organizations use staging environments to test software . The best way is to copy production data for testing . It can help test engineers find problems without destroying production data . This leads to the failure of the stage environment 13 One reason .
8、 Set up best practices for test environment management :
Comprehensively collect and understand the test environment , And train test team members .
Check the required software , Licenses and hardware .
Maintain a list of automation tools and their configurations .
Maintain cross browser test matrix , To ensure that you cover tests on many browsers and versions related to priority and market share .
Make sure to test with real-time traffic , To ensure that your changes are more sustainable .
Plan the planned use of the test environment .
9、 Automated test script development + perform
Once the test environment is installed , It's time to execute the test script . therefore , This phase of the automated test lifecycle is dedicated to executing all test scripts . In order to execute the script, execute , Signed and unit tested test scripts will be delivered to the automated test team . It is essential to ensure that all test scripts run correctly . therefore , Before developing test scripts , We need to pay attention to the following :
Create test scripts according to actual needs .
Create common functional methods that can be used throughout the testing process .
Make sure to create reusable , Structured and simple scripts , So that the third party can clearly understand it . Here you are 8 A workable insight , Designed to write better automation code .
Perform code review of the test script , To better ensure quality .
Take advantage of better reporting .
After the test script is successfully developed , The following points should be kept in mind to implement it :
The test script should include all functional aspects according to the test cases .
Ensure that test scripts are run on multiple environments and platforms .
If possible , Batch processing can be performed to save time and effort .
In case of failure due to some functions , Please write an error report .
To execute test scripts and procedures , The test team must adhere to the schedule determined for the implementation process . At this stage , The evaluation of the test results will be performed and the test results documentation will be prepared . Perform test result evaluation and prepare test result documents . Run for unit , System , A plan designed for user acceptance and integration testing , To test the whole system . Code analysis is done during unit testing . When algorithm , Improper expansion of resource utilization and instantiation , Performance analysis will find examples .
10、 analysis + Generation of test results and test reports
After performing all types of tests , The test team will conduct analysis to identify specific functions or components that encounter a relative number of problem reports .
The results of the analysis indicate whether additional testing work and procedures are required .
Analyzing the test results can confirm the executed test script / Whether the process can identify errors .
This is the last phase of the automated test lifecycle , Share the test report with all relevant stakeholders at this stage . That's why test reports are crucial to analyzing your web application's response to adversity . You can use old-fashioned Excel Worksheet , however LambdaTest Automation Application based reports can be provided , This includes the adoption of cloud based Selenium Grid All test cases executed by the automated script on . Interesting ? Learn about LambdaTest Selenium Grid All the knowledge of , For automatic cross browser testing .
11、 summary
Automatic testing is an effective method to meet the test objectives within an appropriate time range and with sufficient resources . however , Please make sure to implement a complete automated test lifecycle , To get the expected results and test the application in the best way . Automated testing without a plan or sequence can lead to a large number of scripts , These scripts may often fail , And it also needs human intervention .
Thank everyone who reads my article carefully !!!
If you can use the following information, you can take it away directly :
1、 Self study development or test the necessary complete project source code and environment
2、 Test all templates in the work ( test plan 、 The test case 、 Test report, etc )
3、 Classic interview questions for software testing
4、Python/Java Automation test practice .pdf
5、Jmeter/postman Interface test full set of video acquisition
I personally sorted out some technical materials I have sorted out in my software testing career in recent years , contain : e-book , Resume module , Various work templates , Interview treasure , Self study projects, etc . If you encounter problems in your study or work, you can directly join the group and ask , There will also be great gods in the group to help solve , Welcome to leave a message or a private message in the comment area. Thank you .
边栏推荐
- 【PyTorch预训练模型修改、增删特定层】
- redis的持久化机制原理
- Principle and performance analysis of lepton lossless compression
- 1. Laravel creation project of PHP
- 【load dataset】
- Matlab boundarymask function (find the boundary of the divided area)
- 自动化测试生命周期
- Dynamic SQL of ibatis
- Solve readobjectstart: expect {or N, but found n, error found in 1 byte of
- Halcon template matching actual code (I)
猜你喜欢
Matlab boundarymask function (find the boundary of the divided area)
【无标题】
yolov5目標檢測神經網絡——損失函數計算原理
ABAP table lookup program
Riddle 1
XML解析
【TFLite, ONNX, CoreML, TensorRT Export】
【PyTorch预训练模型修改、增删特定层】
Matlab imoverlay function (burn binary mask into two-dimensional image)
Uniapp + unicloud + Unipay realize wechat applet payment function
随机推荐
11.(地图数据篇)OSM数据如何下载使用
Application of a class of identities (vandermond convolution and hypergeometric functions)
Sentinel sentinel mechanism of master automatic election in redis master-slave
[untitled]
【上采样方式-OpenCV插值】
Yolov5 target detection neural network -- calculation principle of loss function
自动化测试生命周期
【Win11 多用户同时登录远程桌面配置方法】
Matlab boundarymask function (find the boundary of the divided area)
Riddle 1
iTOP-3568开发板NPU使用安装RKNN Toolkit Lite2
调查显示传统数据安全工具在60%情况下无法抵御勒索软件攻击
查看多台机器所有进程
1 plug-in to handle advertisements in web pages
【主流Nivida显卡深度学习/强化学习/AI算力汇总】
Open3D 欧式聚类
Reading notes of growth hacker
mysql拆分字符串做条件查询
《看完就懂系列》15个方法教你玩转字符串
Design of music box based on assembly language