BACK
# | Equivalence class | Test input example | Expected result |
---|---|---|---|
1 | 1-3, characters, uppercase letter, special character | Ab! | Error: Password is too short |
2 | 4-16 characters, special character | p@ssword123 | Error: missing uppercase letter |
3 | 4-16 characters, uppercase letter | Password123 | Error: missing special character |
4 | 4-16 characters, uppercase letter, special character | Str0ngP@ss! | Accepted |
5 | 17+ characters, uppercase letter, special character | SuperStrongP@ssword123! | Error: Password is too long |
# | Boundary value | Test input example | Expected result |
---|---|---|---|
1 | 3 characters | Ab! | Error: Password is too short |
2 | 4 characters | Ab1! | Accepted |
3 | 5 characters | Abc1! | Accepted |
4 | 15 characters | SecureP@ssword1! | Accepted |
5 | 16 characters | StrongP@ssw0rd1! | Accepted |
6 | 17 characters | ExtraLongP@ssw0rd1! | Error: Password is too long |
BACK