API Testing · Senior · Question 32 of 75
What is the oracle problem in API testing, and a way around it?
- 1The API has no documentation; ask the developers what it does
- 2Exact results are unknown; check invariants or compare with a reference
- 3Oracle databases can't be used for API tests
Show the answer
Correct answer: Exact results are unknown; check invariants or compare with a reference
Explanation
For complex calculations, compare with a previous version, a simpler implementation or relations between inputs (metamorphic testing).