4.1 Why introduce an automated testing framework?
1) Build an automated test system that links code construction, rapid software package verification, deployment, test execution, report generation, etc.
2) Reduce the workload of script maintenance
3) Code resource reusability
4) Conducive to the realization of basic functions
5) Scripts need to be associated and connected
6) Easy to use and easy to maintain
7) Facilitate collaboration between people
8) Easy to generate test report
4.2 Tool components included in the automated testing framework
The tool components included in the automated testing framework :
configuration document
Used to configure the test environment, database address, account, password, browser type, log directory and other information
data driven
For test data management, data storage, reference, life cycle management
base class
Define common base classes for easy search and use, and avoid writing duplicate methods
test case script
The main thread of automated test case execution, which executes the life cycle of the test case
test log
Record the operations in the automated test process to facilitate subsequent troubleshooting
testing report
More intuitive and convenient viewing of test results
4.3 The development process of automated testing
The development process of automated testing:
Framework selection -> automated test requirement analysis -> framework development -> automated test case design -> automated test script writing -> integration test -> generate test report -> analyze test report -> prepare for the next iteration of the test
Relevant knowledge system of automated testing:
test tools
Understand the basic principles, usage methods, common APIs, etc. of automated testing tools
test framework
Design an easy-to-use and extendable framework with high code reusability, easy maintenance, configurability, and coding standards for test cases
code management
Learn about code versioning tools like git, svn, cvs, etc.
Management and maintenance of test cases and test data
Need to understand the life cycle of test data and how it is referenced in scripts
Continuous Integration
Need to understand the basic methods, configuration and management of Jenkins integration projects
Q&A