Software Engineering class Exercises--arithmetic unit test

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.