ExamGecko
Home / iSQI / CTAL-ATT / Practice Test 1
Ask Question

iSQI CTAL-ATT Practice Test 1

Add to Whishlist
00:00:00
Show Answer
Report Issue   Restart test

Question 1 / 40

You need to implement a Java class that validates a password entry field. The validation critena 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 next9


Repair the failing code and re-execute it for the test class

Repair the failing code and re-execute it for the test class

Develop a test class with a 9 character password containing one special character and re-execute the code

Develop a test class with a 9 character password containing one special character and re-execute the code

Add code to cover special character validation criterion 2

Add code to cover special character validation criterion 2

Refactor the failing code to improve its design and structure

Refactor the failing code to improve its design and structure

Comment (0)
Suggested answer: A
Explanation:

In the context of Agile Technical Testing, when a test class fails, the immediate next step is to repair the failing code. This aligns with the Agile principle of fast feedback and continuous improvement. The failing test indicates that the current implementation does not meet the specified criteria, hence the need to correct the code. Once the code is repaired, it should be re-executed to verify that the test now passes, ensuring that the validation criterion is met.

asked 22/12/2024
soliman sallam
45 questions