当前位置:网站首页>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 .
边栏推荐
- Seven ways to achieve vertical centering
- Pytorch linear regression
- Open3d European clustering
- splunk配置163邮箱告警
- Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in
- 【pytorch 修改预训练模型:实测加载预训练模型与模型随机初始化差别不大】
- 【SingleShotMultiBoxDetector(SSD,单步多框目标检测)】
- pytorch-权重衰退(weight decay)和丢弃法(dropout)
- 1 plug-in to handle advertisements in web pages
- Principle of redis cluster mode
猜你喜欢
redis 集群模式原理
Splunk configuration 163 mailbox alarm
Pytorch MLP
[upsampling method opencv interpolation]
【TFLite, ONNX, CoreML, TensorRT Export】
Principle of redis cluster mode
Matlab imoverlay function (burn binary mask into two-dimensional image)
Use and install RkNN toolkit Lite2 on itop-3568 development board NPU
Matlab struct function (structure array)
redis主从模式
随机推荐
13.(地图数据篇)百度坐标(BD09)、国测局坐标(火星坐标,GCJ02)、和WGS84坐标系之间的转换
Complete activity switching according to sliding
C # implements WinForm DataGridView control to support overlay data binding
12.(地图数据篇)cesium城市建筑物贴图
yolov5目標檢測神經網絡——損失函數計算原理
16 channel water lamp experiment based on Proteus (assembly language)
Check the debug port information in rancher and do idea remote JVM debug
Sentinel sentinel mechanism of master automatic election in redis master-slave
1. Laravel creation project of PHP
abap查表程序
Design of music box based on assembly language
13. (map data) conversion between Baidu coordinate (bd09), national survey of China coordinate (Mars coordinate, gcj02), and WGS84 coordinate system
[yolov3 loss function]
What is the difference between canvas and SVG?
[mainstream nivida graphics card deep learning / reinforcement learning /ai computing power summary]
【pytorch 修改预训练模型:实测加载预训练模型与模型随机初始化差别不大】
11.(地图数据篇)OSM数据如何下载使用
Seven ways to achieve vertical centering
程序员内卷和保持行业竞争力
Splunk configuration 163 mailbox alarm