White box black box test

Source: Internet
Author: User

    White box test and black box test we have been in touch with the soft workers, for a long time did not look, review
First, the definition
    White box test: The logical path in the software is covered by checking the logical structure inside the software.
    Black box test: From the user's point of view, from the input and output data of the corresponding relationship from the test
    From the definition of white box, black box good tall ah, seems to be far away from us, it is not, we are knocking on the computer room when it has been used
  For example, the input data in the control to see if the output is consistent with the expected, this is a black box test; When the output does not match the expected results, I
  We will check the logic of the Code and so on, which is equivalent to white box testing.
Ii. Specific methods
    White box test: Overlay standard with logic overlay, loop overlay, and basic path overlay
Coverage is to have all the situation to be tested, so that "white box" is also a poor lift path test
Requirements: 1. All independent paths in a module are used at least once
      2. Test true and False for all logical values
      3. Run all loops in the upper and lower bounds and within the operational range
      4. Check internal data structures to ensure their effectiveness
    Black box test: detects if each function is working properly
        Focus on testing the functional requirements of the software
Objective: 1. test for incorrect or missing function
      2. Test the error of the interface
      3. Test the input and output errors
      4. Test the database access error
      5. Test for performance errors, etc.
    Difference:
White-Box testing is a drill-down to code-level testing, where testers need to know the code needs and code very well, with high technical content
        Black box testing is mainly for the function of the system testing, but also the performance of the system, pressure, security and other aspects of the test
     
     In the Quality Control department can learn more about the test, the test has a lot of different understanding, this test compared to ITOO1.0 and 2.0来 said comparison
  Formal point, after all, have had some experience, hope can learn more things

White box black box test

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.