Mugen Mugen - 7 months ago 37
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.


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: