What is black box testing, white box testing, grey box testing?

Software testing can be divided according to testing techniques: black box testing, white box testing, gray box testing

Black box testing is also called functional testing

1. The software black box, the implementation inside, the code is invisible

2. Input and output results---method of functional testing

This is because in black box testing the main focus is on the functional implementation of the software under test, not the internal logic.

In black-box testing, the internal structure and operation of the object under test are invisible to testers, who mainly verify the consistency of system functions and requirements.

Among the vast majority of black-box tests without user participation, the most common tests are: functional testing, capacity testing, security testing, load testing, resilience testing, benchmarking testing, stability testing, reliability testing, etc.

The most common in our software testing industry is functional testing, which examines an individual's mastery of requirements and basic knowledge of software engineering.

white box testing

1. White and transparent sunspots; code implementation, functional logic;

2. Development - look at the code - unit testing

It is a test case design method, where the box refers to the software to be tested, the white box, as the name suggests, the box is visible, you can know what is inside the box and how it works, so white box testing requires You have a clear understanding of the internal structure and working of the system, and design your use cases based on this knowledge.

White box testing techniques can generally be divided into static analysis and dynamic analysis techniques.

Advantages of white-box testing: Force testers to think carefully about the implementation of the software; can detect every branch and path in the code; reveal errors hidden in the code; test the code more thoroughly and optimally.

Disadvantages of white box testing: cannot detect missing paths and data sensitivity errors in code; does not verify format correctness.

Grey Box Testing (Supplementary)

1. Between the white box and the black box

2. Understand the implementation process logic, no need to know the specific code

3. Interface test --- how to use

White-box testing and black-box testing are often not decidedly separate. Generally, the method of black-box testing is used interchangeably in white-box testing, and the method of white-box testing is used interchangeably in black-box testing.

The most common grey box tests are integration tests

PS After reading this, do you understand what is black box testing and white box testing, gray box testing, and gray box testing?

 

Guess you like

Origin blog.csdn.net/qq_60168783/article/details/123930176