Simulating a response for an ajax call that a web page makes (web-testing)
问题 How can I test that a web app successfully falls back from one faulty back-end API to a secondary legacy API service? Could Firebug or Chrome, or Fiddler do it? How can I setup my client to return error responses for ajax calls to a certain URL pattern? Using HTTPS. I don't have control over the server-side. I want to err just certain ajax calls the remaining should work the same (pulling the network plug is not an option). 回答1: Yes, Fiddler can do this easily. In Fiddler, click the