This tool is designed to make work with 3rd party APIs much more pleasant. It's responsible for emulating API used by application and it's launched on developer's machine so network connection is not required. It can be used for:
-
testing behaviour of the app while unusual circumstances like long waiting for response, server errors etc,
-
automate tests,
-
creating test data for task dev is working on and use it without need to connecting to remote server and preparing there fake data. This can be problematic if we want to reproduce complicated bug filed by users and it requires creating many user accounts and dummy tweets, posts, photos etc.
Each API is defined by config.json file:: { "url": "twitter", "actions": [ { "url": "users/show.json", "method": "GET", "parameters": { "screen_name": "mlowicki" }, "responseFile": "users|show.json?screen_name=mlowicki.json", "contentType": "text/plain" } ] }
Right now in repo there is only POC code. I'm still gathering requirements and ideas so if you want some please let me know.
-
web interface. Dev can e.g. change bevaiour of action directly from the browser (like from now on return server error or wait with response for 40 seconds),
-
support for oAuth and other authentication mechanism like xAuth from Twitter.