How do a test-design technique and a test oracle solve different problems?
Answer
A technique helps select inputs, states, paths or combinations that provide useful coverage; an oracle tells the tester how to decide whether the observed result is correct. Boundary-value analysis can choose 17, 18 and 19, but the expected outcome still needs a credible source such as an explicit rule, independent calculation, state model or trusted reference implementation.
Strong answer includes
- distinguishes selecting a revealing test from judging its result
- names credible oracle sources and their limitations
- avoids copying the implementation logic as the only oracle
Practical example
For an age-verification rule 'must be 18 or older', boundary-value analysis picks the test inputs 17, 18 and 19 as the technique. The oracle for those inputs comes from the written business rule itself, not from reading the developer's code, because if the code has an off-by-one bug, copying its logic as the oracle would make the test pass even though the feature is broken.