Our first ASP.Net MVC / jQuery product is about to switch to QA, and we are looking for a way for our QA guys to easily model bad Ajax requests (without changing application code).
A typical integration / UI testing plan might be:
- Load the page, click the "DoStuff" button
- "DoStuff" does not work
- Retry DoStuff.
- "DoStuff" successfully
- Check application status
This is a simple test case - there will be cases with multiple failures and successes alternating. Besides “disconnecting the network cable,” I’m looking for an easy way for our guys to simulate intermittent bad server responses.
I am open to any ideas, so I will not go into too detailed information about the application configuration or its dependencies. How did you handle this?
source share