4. Automated testing framework and knowledge system

4.1 Why introduce an automated testing framework?

1) Build an automated testing system, linking code construction, rapid software package verification, deployment, test execution, report generation and other links

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

需要了解测试数据的生命周期,以及在脚本中的引用方式

持续集成

需要了解Jenkins集成项目的基本方法、配置和管理

Q&A

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325344532&siteId=291194637