First, the test plan
The functions of the system to be implemented and the functions in the program are tested in a targeted
1. Enter the number of the question to see if the number is correct;
2. The user first to choose whether there is a negative number to participate in the operation, respectively, with "0/1" is or no, respectively, enter "0/1" to see if there are no negative numbers appear, followed by the input of other characters or numbers, the display prompt requires the user to re-enter;
3. Then the user according to the prompt input whether there is no multiplication method, the test method ibid.
4. Test whether the user has repeated operations in the repeated operation will occur;
5. Enter the number of questions, select the number of printed columns to see if there is a problem;
Ii. test Execution and results
1. Enter 30 questions to test with 30 outputs, then test 0, 1, 100 three cases respectively
2. If there is a negative number to participate in the operation of this part, the first input 1 indicates no, you can see the output results are not negative, the results of the operation Ken Reference;
Then enter 0 to indicate that there are countless participating operations, and the results are as shown
When the input character is not 0 or 1, the program prompts the error, requiring the user to re-enter
3. Test methods and procedures with 2, the implementation results are as follows
4. Multiple operations to see if there are duplicate topics
It is not difficult to find a variety of execution and no repetition algorithm appears
5. When 30 questions are selected, select the 3-column output
10-Question 2-column output or 5-column output
Software Engineering class Exercises--arithmetic unit test