Title: instance of equivalence class is increased to three boxes, click OK button to determine the test case character in three boxes does not meet the requirements.
Understanding of the topic: The equivalence class used for this problem is similar to the equivalence class used in the last box, but I made some improvements, and then I designed the test cases separately in three edit boxes to achieve:
The equivalence classes for partitioning are:
by condition |
Number |
Valid equivalence classes |
Number |
Invalid equivalence class |
Length |
1 |
1~6 |
3 |
Length 0 or greater than or equal to 7 |
|
|
|
|
|
Character |
2 |
Contains A~z,0~9,a~z |
4 |
Contains control characters and punctuation marks |
Test Case:
NO |
Editbox1 input |
Editbox2 input |
Editbox3 input |
|
Expected output |
1 |
Axw2 |
ds0a |
Dwdw |
|
Editbox1 input legal Editbox2 input legal, EDITBOX3 input legal |
2 |
2ew |
0 |
Sdjdjsf |
|
Editbox1 input Legal, editbox2 input length is not legal, editbox3 input length is not legal |
3 |
2ew |
' FD |
0 |
|
Editbox1 input valid, Editbox2 input character is illegal, editbox3 input length is not legal |
4 |
12dsdcxc |
Ew3 |
&djsi |
|
Editbox1 input character is illegal, editbox2 input is legal, editbox3 input character is illegal |
5 |
0 |
Disdgjhj |
2rfA |
|
Editbox1 input length is not valid, Editbox2 input length is illegal, editbox3 input is legal |
6 |
Asj1 |
AXs3 |
0 |
|
Editbox1 input Legal, editbox2 input legal, editbox3 input length is not legal |
7 |
Aow |
0 |
Sak |
|
Editbox1 input Legal, editbox2 input length is not legal, editbox3 input legal |
8 |
0 |
Dsd |
Qd |
|
Editbox1 input length is not valid, Editbox2 input is legal, editbox3 input is legal |
9 |
, WR |
Ds |
Fd |
|
Editbox1 input character is illegal, editbox2 input is legal, editbox3 input is legal |
10 |
Dosd |
;d C |
Fs |
|
Editbox1 input valid, Editbox2 input character is illegal, editbox3 input is legal |
11 |
FFs |
Fs |
[VD |
|
Editbox1 input Legal, editbox2 input legal, editbox3 input character is not legal |
12 |
Dskddsd |
Dw |
Hs |
|
Editbox1 input length is not valid, Editbox2 input is legal, editbox3 input is legal |
13 |
Edjw |
Fsfdfdffd |
ew |
|
Editbox1 input Legal, editbox2 input length is not legal, editbox3 input legal |
14 |
Fe |
Fdf |
Rwewrrr |
|
Editbox1 input Legal, editbox2 input legal, editbox3 input length is not legal |
Equivalence class Partitioning Example 2