White box Test (ii)

Source: Internet
Author: User

White box Test (ii)

In this paper, "White Box test (i)".

1.3 Common techniques for white-box testing

White Box testing technology can be divided into static analysis and dynamic analysis of two types of technology.

1.3.1 Static Analysis Technology:

Dynamic analysis includes: Control flow analysis technology, data stream analysis technology, information flow analysis technology

1.3.2 Dynamic Analysis Technology:

Dynamic analysis includes: Logic coverage test (branch test, path test, etc.), program interpolation, etc.

Coverage

In the White box test also has a frequently used technology is coverage technology, on the one hand coverage technology can guide the design of test cases, on the other hand, can be measured by coverage to measure the strength of white box testing.

The coverage that is often used in white-box testing is the logical coverage, mainly:

1. Statement Overlay

2. Judgment coverage

3. Conditional coverage

4, the determination of the conditions covered

5. Path Overlay

Program Plug and Install

In the dynamic analysis technology, the most important technique is the path and the branch test and the program inserting.

We can measure the path in the program and the branch test when it is fully tested. This requires the application of the technology of the plug-in; The program is like when we are debugging a program, we often insert some print statements into the program. The goal is to print out the information we care about most when we want to execute the program. This information is further understood to understand some of the dynamic characteristics of the program during execution. For example, the actual execution path of the program, or the value of a particular variable at a particular time.

From this thought, the process of inserting and loading technology can obtain the various information of the program according to the user's requirement, and become an effective means of testing work. The program insertion method is simply a method of implementing the test intent by inserting an operation into the program being tested.

1.4 Advantages and disadvantages of white box testing

  Advantages:

    1. Forcing testers to think carefully about the implementation of the software

2. Can detect each branch and path in the code

3. Revealing hidden in code and errors

4. Test the code more thoroughly

5. Optimization

  Disadvantages:

1. Expensive

2. Unable to detect missing paths and data sensitivity errors in the code

3. Not verifying the correctness of the specifications

  

White box Test (ii)

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.