Black box test and white box test

Source: Internet
Author: User

1. Concept

Black box test: The functional design specifications of a known product can be tested to verify that each implemented function meets the requirements.
White Box testing: The internal working process of a known product can be tested to prove that each internal operation complies with the design specifications and that all internal components are inspected.

2. Methods

Black box test methods: Equivalence class partitioning method, boundary value analysis method, error inference method, causality diagram method, decision table driving method, orthogonal test design method, function diagram method, scene method and so on.

White Box test methods: Logical coverage, path coverage, code checking, static structure analysis, static quality measurement, basic path testing, domain measurement, symbolic testing and program variation.

(The logical overlay is divided into: statement coverage (SC): Design enough test cases to ensure that each statement is executed.)

Decision Coverage (DC): Design enough test cases to ensure that each decision takes true and false values, respectively.

Conditional override (CC): Design enough test cases to ensure that each condition takes true and false values, respectively. (A decision may contain multiple conditions)

Decision/Conditional Coverage (DCC): Design enough test cases to ensure that each decision and condition is taken with true and false values.

Conditional composition overrides (CMC): Design enough test cases to ensure that all combinations of conditions in each decision are covered. (only consider the combination of conditions within the same decision)

Black box test and white 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.