Reputation: 1683
I came across an amazing presentation years ago (which of course I can't find) that listed a bunch of kinds of failures for remote services that people usually don't test for.
In addition to timeout, 4xx, 5xx, etc, it listed things like:
What are some types of "out-of-band failures" you've encountered that developers don't usually (but should) test for?
(extra bonus points if you can find the original presentation)
Upvotes: 3
Views: 91
Reputation: 7278
Low-frequency failures. In other words, test that some response is correct not just once, but every time out of a thousand tries. You'll get random Internet breakage if you're going over a network, but you might expose some process is stochastic when you thought it was fixed.
Upvotes: 0
Reputation: 4893
The ones you listed are great; I'd love to see the original presentation if you dig it up! A couple other favorites:
{"result": 123, "extraStuff": {...}}
) to simulate upgrades to the remote side{"results":["lol", "lol", "lol", ...
, or just a bunch of whitespace)Upvotes: 2