before reading the software test, I think the software test is not important, even can be omitted. But after reading this part, I deeply realize that software testing is very important and necessary for development. Here's a brief introduction to software testing.
first, the Basic terminology interpretation and classification1, bug: Software defectsbugs can be divided into these three components: symptoms (symptom), program errors (Fault), root cause (root cause). (1) Symptom: From the user's point of view, the software what is the problem. For example, when you enter (3 2 1 1), the program incorrectly exits. (2) Fault: From the point of view of the code, what errors in the code lead to problems with the software. For example, the code accesses an illegal memory address--0x0000000c in a situation where it is entered. (3) root cause: The root cause of the error, which causes the code to be wrong. N For example, the code does not correctly judge the case of Id1==id2, and thus refers to a variable with an unassigned initial value, resulting in the above situation. 2. Test Case: Testing casesThe test case describes a complete test process, including the test environment, input, desired results, and so on. 3. Test Suite: Testing case Setthat is, a set of related test cases.
Ii. Classification of test methodsblack box: In the design test process, the software system as a "black box", unable to understand or use the system's internal structure and knowledge. A more accurate statement is "behavioral test Design", which designs tests from the behavior of the software, not the internal structure. White Box: In the process of designing tests, the designer can "see" the internal structure of the software system and use the internal knowledge of the software to guide the selection of test data and methods.
1. Test method Classification-functional classification
2. Test method Classification-non-functional classification
3. Test method Classification-purpose test
4. Test method Classification-Test mode
third, the test matrix
The law of Construction read note 07-Software Testing