Software testing, simply speaking, is to test the quality and correctness of the software. As programmers, almost every time we write code, we're doing something like this: checking the output is correct by different inputs, and finding a bug in the code in one line. These are actually software tests. However, as a software developer, the simple correct output must not meet the needs of users, we need to improve the quality of code, efficiency, so we need a systematic approach to guide our software testing. So the subject was born.
Software testing is divided into three ways.
White box testing is based on the internal structure of the software analysis program, and according to the internal structure design use case, to test the internal control process, can completely disregard the overall function of the program implementation. This method is usually done by the person who wrote the code.
In contrast to the white box test, the black box test considers the object being measured as a black box, taking into account its overall characteristics, regardless of its internal implementation. So even people who do not know the software code can complete black-box testing, and even in some sense, it is better for outsiders to do black-box testing.
The gray box test is to combine the white box with the black box to improve efficiency.
Write it first.
First Glimpse of software testing