Simulating Ajax failures for QA testing
Posted
by womp
on Stack Overflow
See other posts from Stack Overflow
or by womp
Published on 2010-04-07T17:15:41Z
Indexed on
2010/04/07
17:23 UTC
Read the original article
Hit count: 271
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?
© Stack Overflow or respective owner