Software testing third week--testing framework

Source: Internet
Author: User

First, let's look at the test framework.

To test the properties of a framework:

1. Test framework is an architecture that extracts the common parts of test methods in a test development process

2. The role of the test framework: On the basis of the reuse of test design principles and testing experience, adjust part of the content can meet the requirements, can improve the quality of test case design and development, reduce costs, shorten the time

3. The test framework type varies depending on the field of test

4, the test framework is a semi-finished product, need to test engineers based on it into their own test cases;

5, testing framework is provided to testers to develop the corresponding field test case Test Analysis design tool

6, the test framework is not a test case set, but a general, with a general system body part. Testers, like filling in the blanks, complete special parts of a particular application system based on their specific business.

7. The idea of test design pattern (equivalence class/boundary value) is applied in the test framework.

It can be seen that the main role of testing framework is to improve testing efficiency and reduce costs.

The advantages of the test framework are:

Increase development speed

Improve execution efficiency of test code

Improve software code quality while introducing refactoring concepts to make your code cleaner and more resilient

To improve the reliability of the system, as an implementation method of regression test, "re-testing" is supported to ensure the correctness of the code.

Let's introduce the automated testing framework.

First: Data-driven test framework (theData-driven testing framework)

Just separating the test data from the test script

Advantages:

At least the test data can be maintained separately

Disadvantages:

The amount of work that is caused by any changes to the program being tested is the largest in all architectures, and therefore maintenance costs are very high

Second: Test scripts Modular Framework (the test scriptmodularity framework)

Description

L Arrow Direction represents the call and call relationship

The test script contains the control identification and business logic actions involved in each function point, which contains calls to the external test data

• Maintenance of test scripts is the responsibility of the automated Test development engineer and requires knowledge of automation programming and business logic

L test data is maintained by the test engineer

        

Advantages:
Once the controls and business logic have changed, the underlying test scripts are to be modified and maintained

Third: Test library Framework (Architecture framework)

        

        

Description

L Arrow Direction represents the call and call relationship

• Encapsulate all control-aware and control-supported operations for the test system itself in the test library

L test script invokes test library while passing external test data

L Test Library is written by the Automated Test development engineering (can not understand the business), responsible for control changes and maintenance

L test scripts can be written by automated test development engineering that is more familiar to the business, responsible for change and maintenance of business logic.

L test data is maintained by the test engineer (can not understand the development of automation)

Advantages:

L The test system regardless of the level of change, only the corresponding personnel to change the maintenance can be

L completed abstract separation of control recognition operations and business logic

Summary: There is a progressive relationship between the three, the relationship is as follows.

         

Software testing third week--testing framework

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.