White-box testing technology-white-box Testing Theory

Source: Internet
Author: User

White-box testing technology-white-box Testing Theory

Author: Zhang yuanli
Http://blog.csdn.net/vincetest

1.1 white box testing concepts

    • White-box testing definition: white-box testing, also known as structure testing or logic-driven testing, is a test case design method.ProgramExport the control structure of the test case. 【ArticleSource: Zhang yuanli's blog http://blog.csdn.net/vincetest]
    • "White box testing" is a concept opposite to "black box testing"
      1. Black box testing is testedCodeInvisible tests, including functional tests and verification tests
      2. white box testing is a visible test of tested code, including unit testing, integration testing, and partial protocol testing.
    • White box testing stage
      Between code and Function Testing (System Testing)
    • Basic white box testing process
      1. Compile a test case: view and modify the variable, call the function, and verify the test result.
      2. Check the code coverage rate and improve the test design.
      3. Generate a formal test report
    • Operation Method: white-box testing uses the information about how the tested unit works, allowing testers to design and select test cases based on the internal logic structure and related information of the program, test the logical path of the program. Based on the internal logic knowledge of an application code, the test is based on covering all code, branches, paths, and conditions. [Source: Zhang yuanli's blog http://blog.csdn.net/vincetest]

1.2 white box testing objective

 

According to the statistics of capers Jones and McGraw-Hill, if problems are found, located, and solved, the unit test efficiency is the highest, which is twice that of the integrated test, it is three times that of system testing. [Source: Zhang yuanli's blog http://blog.csdn.net/vincetest]

    • Importance of white box testing
      1. Time
      It affects system integration joint debugging and takes a lot of time to locate some very low-level problems.
      2. Test Results
      Able to expose issues that cannot be found in integration testing and System Testing
      3. Test cost
      Test cost and problem locating cost
      4. Product Quality
      Modules with high product quality requirements
    • What should we do?
      1. Ensure that all independent paths in a module are executed at least once;
      2. Test the true and false branches for all logical values;
      3. Run all cycles in the upper and lower boundary and within the operable range;
      4. Check the internal data structure to ensure its effectiveness.

1.3 white box test Scope

    • White box testing is a branch of the software testing system;
    • The following object is a line of visible code. If the code is invisible, it is not a white box. It is a black box test;
    • White-box testing is also generally considered a collective term for unit testing and integration testing. However, this concept is relative to the R & D process followed by the current project, some processes divide white-box testing into unit testing and integration testing, while others divide white-box testing into module unit testing, module system testing, and multi-module integration testing, there are also some processes that integrate unit test and integration test, collectively referred to as continuous integration test.

1.4 white box testing and development [Source: Zhang yuanli's blog http://blog.csdn.net/vincetest]

Related Articles:

White-box testing technology-Unit Testing Theory

White-box testing technology-methods and practices

 

Welcome to repost this article, reprinted please indicate the source of the article: Zhang yuanli's blog http://blog.csdn.net/vincetest

 

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.