Currently, I ran into a situation where we are having constant Backend/API issues and because of the same, I can't continue with the testing. I was wondering if it is somehow possible to use a server or a proxy which gets the API request and I can send it as a response. (Basically I wanna manually send a response to see if the app behaves as it is supposed to)

So we will create a "new" app that is just running against my local machine and I can send the responses that I'm not able to test. I would rather test some of these cases myself. I wonder if it even possible.

Or should this be left for the developer to handle.

Any insight and ideas would be helpful.

  • Your description of the system is not totally clear, are you looking for a something to run on a PC and reply to REST requests coming from the Android app?
    – Rsf
    Commented Sep 30, 2015 at 8:00
  • Sorry for the vague description. Yeah I would like to reply to rest requests coming from android app. Commented Sep 30, 2015 at 8:01
  • 1
    There are endless options to set up a simple REST web server, choose the one in your favorite language and change the app's server IP to be your PC.
    – Rsf
    Commented Sep 30, 2015 at 8:10
  • How do you write your automation tests? Are you using any framework/tools like Espresso?
    – masood ghz
    Commented Jan 28, 2016 at 16:18

2 Answers 2


It should be realtively easy to setup a server that behaves as your API, but always returns the same values so you can test against it.

You just need to make sure you can redirect the traffic from your mobile app to this server. Simplest way is to make it configurable in the app itself. Alternately you can point the production hostname to your test server.

For a JSON/REST api server have a look at:


We used NodeJS to help as out of a similar situation. We designed a mock server on NodeJS and configured REST API to hit Node sever and fetch responses.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.