API Testing · Senior · Question 32 of 75

What is the oracle problem in API testing, and a way around it?

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).

Further reading

Problem with a question

API Testing · Senior · question 32

Test yourself

Take the API Testing · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz