Q1. A tester designs test cases for a login feature only from the SRS: valid credentials, locked account, expired password and invalid attempts. The tester does not inspect program code. Which testing approach is being used?
Explanation
Black-box testing treats the software as a functional unit whose inputs and outputs are checked against the specification. Login cases based on valid, invalid and boundary conditions can be selected without seeing the code. White-box methods, by contrast, require structural knowledge such as paths, branches or statements.
