API Testing · Middle · Question 10 of 75

Why simulate a slow dependency in an API test?

Show the answer

Correct answer: To check timeouts, retries and error messages

Explanation

A stub with a 10-second delay shows whether the service fails fast with a clear error or hangs until the client gives up.

Further reading

Problem with a question

API Testing · Middle · question 10

Test yourself

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

Take this quiz