Mugen Mugen - 1 year ago 62
JSON Question

Mock GET http requests for a web app when testing using Selenium

I have an

application and I'm using
to do UI testing using

My web app is sending GET requests to a specific server (say

What would be the best way to mock the response of these requests? I don't want my server to run for these tests, and also for testing purposes it would be best to setup the returned JSON.

Answer Source

one way to do it is with fiddler- all you need to do is setting fiddler as a proxy, and configure an auto responder. take a look at:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download