White box test (logic overlay test)
This week, a white-box test was performed based on the verification Code project that was previously made. Using the logic overlay test method.
The logic overlay test method uses the flowchart to design the test case, this time the statement coverage, condition coverage, and conditional combination coverage are used to test.
Figure 1 White Box test flowchart
1. Statement overrides
Each statement is executed at least once.
Test Cases |
User name |
Password |
Verification Code Picture Location |
Expected results |
Overwrite path |
1 |
Admin |
123456 |
That's right |
Validation successful |
Abd |
Table 1 statements Override test Cases
2. Conditional override
The conditions in each decision, respectively, by ' true ', ' false ' at least once.
| Test case |
User name |
Password |
Authenticode Picture location |
Expected result |
Overwrite path |
| 2 |
Admin |
123456 |
Error |
validation failed /td> |
ac |
| 3 |
|
Ffs |
Correct |
validation failed |
Abe |
Table 2 Condition overrides test cases
3. Conditional combination Overrides
Find out the combinations of possible combinations of all the conditions in the decision, and each possible combination of conditions is executed at least once.
Test Cases |
User name |
Password |
Verification Code Picture Location |
Expected results |
Overwrite path |
4 |
Admin |
123456 |
Error |
Validation failed |
Ac |
5 |
34 |
Ffs |
That's right |
Validation failed |
Abe |
6 |
Admin |
123456 |
That's right |
Validation successful |
Abd |
7 |
Ddf |
458 |
Error |
Validation failed |
Ac |
Table 3 Conditional Combination test Cases
Modern software engineering third week job