QuestionQ227

Chapter 4: Test Analysis and Design

An alphanumeric password must be from 4 to 7 characters in length and include at least one numeric character, one capital (uppercase) letter, and one lowercase alphabetic letter.

Which of the following sets of test cases shows the correct result of applying two-value boundary value analysis to the password length?

(Note: test cases are separated by a semicolon)

  • A 1xA; aB11; Pq1ZZab; 7iDD0a1x
  • B aB11; 99rSp; 5NnN10; 7iDD0a1x
  • C 1xB; aB11; 99rSp; 5NnN10; 4NnN10T; 44ghWn19
  • D 1RhT; rSp53; 3N3e10; 8sBc1by
Explanation

For a permitted length interval of 4 to 7 characters, two-value boundary value analysis tests 3 and 4 at the lower boundary, and 7 and 8 at the upper boundary. The test strings must also satisfy the numeric, uppercase, and lowercase requirements so that any acceptance or rejection is attributable to the length boundary.

Community Discussion

No comments yet. Be the first to start the discussion!