Examples of multiple input equivalence class partitioning test cases:
1. Question: Enter 1 to 6 English characters or numbers in three text boxes, and press OK to finish.
2. Equivalence class Partitioning:
| Number |
Valid equivalence classes |
Number |
Invalid equivalence class |
| 1 |
Text Box 1 Length: 1-6 |
8 |
text box 1 length <1 or length >6 |
| 2 |
Text Box 2 Length: 1-6 |
9 |
Text box 2 length <1 or length >6 |
| 3 |
Text Box 3 Length: 1-6 |
10 |
Text Box 3 length <1 or length >6 |
| 4 |
Text Box 1 is a character: A-Z-A-0-9 |
11 |
Text 1 Enter characters other than alphanumeric, control characters, punctuation |
| 5 |
Text Box 2 is a character: A-Z-A-0-9 |
12 |
Text 2 Enter characters other than alphanumeric, control characters, punctuation |
| 6 |
Text Box 3 is a character: A-Z-A-0-9 |
13 |
Text 3 Enter characters other than alphanumeric, control characters, punctuation |
| 7 |
Enter 3 sets of strings |
14 |
Input 2 groups, 1 groups or no input |
3. Test Cases:
| Number |
Text Box 1 |
Text Box 2 |
Text Box 3 |
overriding equivalence classes |
Expected output |
| 1 |
1as |
2bf |
3cade |
1,2,3,4,5,6,7 |
Enter the correct |
| 2 |
12345 |
Abcde |
123ads |
1,2,3,4,5,6,7 |
Enter the correct |
| 3 |
1#3c |
Asd34 |
Adaf4 |
1,2,3,5,6,7,11 |
Text Box 1 input error |
| 4 |
1231244ad |
Qwrj45 |
23ks |
2,3,4,5,6,7,8 |
Text Box 1 input error |
| 5 |
Asd |
1b%sd |
Sdada |
1,2,3,4,6,7,12 |
Text Box 2 input error |
| 6 |
@ #ada |
12 |
sd3rrrr555 |
1,2,5,6,7,8,9,10,11 |
Text Box 1 input error Text Box 2 input error |
| 7 |
[Email protected]$ |
1bdssdssd |
%s |
1,3,5,7,8,9.11,13 |
Text Box 1 input error Text Box 2 input error Text Box 3 input error |
| 8 |
As |
|
1sd |
1,3,4,6,7 |
Text Box 2 input error |
4. Summary:
In comparison, increasing the input to the Equivalence class division requirements more complex, strict, of course, test cases are also more complex, so we need to be cautious.
Software Testing--application of equivalence class partitioning method for multiple inputs