Our first ASP.Net MVC/jQuery product is about to go to QA, and we're looking for a way for our QA guys to easily be able to simulate bad Ajax requests (without modifying the application code).
A typical integration/UI test plan might be:
- Load page, click button "DoStuff"
- "DoStuff" fails
- Attempt button "DoStuff" again
- "DoStuff" succeeds
- Verify application state
This is a simple test case - there will be cases with multiple failures and successes interspersed. Aside from "unplug your network cable" I'm looking for an easy way for our guys to simulate intermittent bad server responses.
I'm open to any ideas so I won't go into too many details about our application setup or dependencies. How have you handled this?