Question 260
A tester is asked to evaluate the following situation: An authentication library passes isolated component checks but fails when the mobile app calls it with a missing refresh token. Which repeatable testing practice most directly reduces recurrence of this problem?
Explanation
Correct Answer
This safeguard specifically targets the contributing cause: Include negative boundary and error cases in interface contracts. It addresses the principle (Component integration testing targets interfaces and interactions that isolated components may not exercise.) and can be assessed by: An integration check reproduces the missing-token response while individual component tests still pass.
Incorrect Answers
This preventive step mitigates a different project risk (syllabus section 2.2): A bank migrates a database and executes only confirmation tests of known previous defects, overlooking transactions newly broken by the migration. The targeted safeguard for the current case is: Include negative boundary and error cases in interface contracts.
This preventive step mitigates a different project risk (syllabus section 2.2): A content platform redesign removes a field from its API but deploys the change without checking the mobile app consumer, causing an existing feature to break. The targeted safeguard for the current case is: Include negative boundary and error cases in interface contracts.
This preventive step mitigates a different project risk (syllabus section 2.1): A bank uses sequential requirements, design and coding phases but does not plan any testing until developers finish the whole system, leading to late feedback. The targeted safeguard for the current case is: Include negative boundary and error cases in interface contracts.