In the pair project, I am responsible for testing the design and execution of the force. In the process of designing test cases, I used the following ideas.
Characteristics of good test cases:
The best way to identify software-hidden flaws
Software defects can be identified with maximum efficiency
Maximum test coverage requirements can be met
Neither too complicated nor too simple
The performance of software defects can be clearly judged
The test case contains the correct results that are expected
Unknown origin output or file must be as simple and straightforward as possible
Does not contain duplicate test cases
The test cases are clear, consistent in format, organized in categories
Several design ideas for test cases:
For white-Box testing:
1. Statement overlay: Design Several test cases to enable each executable statement in the program to
Less execution once
2. Branch coverage: Design a number of test cases, so that each judgment in the program at least
Take true branches and false branches once, that is, the true and false values of judgment have been satisfied
3. Conditional override: Design Several test cases so that each condition in each judgment can be
Can be evaluated at least once
4. Branching, conditional overrides: Both branch coverage and conditional coverage are met
The above cover way in addition to 4 each has the characteristic, cannot say who because of who, need according to the actual situation to choose.
For black-Box testing:
Functional coverage: The most common is the need to cover, the meaning is through the design of a certain measurement
A trial example that requires each requirement point to be tested to
Here I use the black box test design ideas. The specific test implementation will be summarized in the next essay.
Design ideas of test cases