CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 14: CTAL-ATT: Certified Tester Advanced Level Agile Technical Tester

You need to implement a Java class that validates a password entry field. The validation criteria states that the password must:1. be a minimum of 8 characters.2. contain at least one special character. You are focusing on validation criterion 1 and have written a test class that checks that a 7 character password ent…

Nội dung câu hỏi

You need to implement a Java class that validates a password entry field. The validation criteria states that the password must:1. be a minimum of 8 characters.2. contain at least one special character. You are focusing on validation criterion 1 and have written a test class that checks that a 7 character password entry will fail validation. You have written code designed to make this test class pass, however, on first execution of the test class it has failed. What should you do next?

Các lựa chọn

Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.

  1. A. Develop a test class with a 9 character password containing one special character and re-execute the code.
  2. B. Refactor the failing code to improve its design and structure.
  3. C. Repair the failing code and re-execute it for the test class. — đáp án hiện tại
  4. D. Add code to cover special character validation criterion 2.

Cộng đồng

0 bình luận công khai. Tên thành viên được ẩn một phần.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề