BICEP Unit Test Plan--arithmetic Ⅱ

Source: Internet
Author: User

first, the test method ( Right-bicep )6 Specific parts Worth testing: is the right-result correct? B is all the boundary conditions correct? Can I check the inverse association? C-Can you cross-check the results with other means? E-Can you force error conditions to occur? Does p meet performance requirements? second, the test partJudge whether the topic has been out. If out, return 1, otherwise return 0.
1 //****** judge the problem exists ******2 intexistques (LINKC c,caculation Q)3 {4 LINKC temp;5Temp=c->Next;6      while(temp)7     {8         if(TEMP->QUES.NUM1==Q.NUM1) && (temp->ques.num2==q.num2) && (temp->ques.sign==q.sign))9             return 1;//when two numbers and operators are the same as in the linked list, there is aTen         Else OneTemp=temp->Next; A     } -     return 0; -}

Third, the test plan

R by changing the parameters of some difficulty (such as the number range), keep the question and record the topic, to see if the repetition.

B-Put the digital control in a very small range to see if it works correctly.

I save the quiz record after running, go to the file to view.

C Control the scope of the question, see whether the number of questions is correct. such as 0~1, no multiplication, no remainder and negative conditions, there should be 7 questions.

e-intentionally input error parameters to see if it works properly.

P-parameters (such as the number of the question) are changed to a larger number to observe the operation of the situation.

Iv. Test Steps

(1) R "30, 3 columns, 0 lines, no multiplication, 0, 5, no number, no negative numbers"

Clear the quiz record Question.txt

Run the program and change the parameters to the final question.

Continue the quiz ... Until the title is finished.

After observation, there is indeed no repetition of the subject.

(2) B "30, 3 columns, 0 lines, no multiplication, 0, 1, no number, no negative numbers"

Change the scope of the question and make a quiz.

Because the topic just now is 0~3 including 0~1, so has been untitled can be out.

(3) I "30, 3 columns, 0 lines, no multiplication, 0, 1, no number, no negative numbers"

Now exit the system and save the quiz record. Open the Question.txt to see if it's recorded.

(4) C "30, 3 columns, 0 lines, no multiplication, 0, 1, no number, no negative numbers"

Since has already been out of the 0~1 within the topic, now clear the record, then the question.

(5) E ", column, line, no multiplication, 0, 5, no number, no negative"

When entering a range of values, intentionally entering a lower limit than the upper limit of the number, the system will proactively prompt an error.

(6) P "999.., 3 columns, 0 rows, no multiplication, 0,100, no number, no negative numbers"

Change the number of the quiz

I have been waiting for 10 minutes because the number of questions I set up is too large, and the question is not finished. The number of the question can be guaranteed, but the time for the quiz is too long.

Take into account that there are no negative numbers in front of the problem, add below.

"30, 3 columns, 0 rows, no multiplication, -1,0, no number, no negative numbers"

BICEP Unit Test Plan--arithmetic Ⅱ

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.