joshwa
joshwa

Reputation: 1683

What kinds of out-of-band failures am I forgetting to test?

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

Answers (2)

Chris
Chris

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

David Murray
David Murray

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:

  • A "valid" response with a couple bits flipped
  • A "valid" response with extra data you weren't expecting ({"result": 123, "extraStuff": {...}}) to simulate upgrades to the remote side
  • A syntactically-valid response that never ends ({"results":["lol", "lol", "lol", ..., or just a bunch of whitespace)

Upvotes: 2

Related Questions