First, test method: Right-bicep
Right-is the 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 module: Custom printing of the number of topics
1 //number of topics that can be customized for printing2printf"Please enter the number of topics to print:"); 3scanf"%d", &a[0]);4 while(a[0]<=0)//the number of questions must be positive5 {6printf"Please re-enter the number of valid questions:");7scanf"%d", &a[0]);8};
Third, test content: negative (-100), 0, positive (80)
As you can see, when the user enters a negative number or 0 o'clock, an error occurs, and the user is prompted to enter the correct value, and when the number entered is positive, it is executed down.
Software Engineering class Assignment (iii)--RIGHT-BICEP test