Testing Application Interaction with Unavailable Web Service – Mock Servers

While the applications are being developed, there are several states when the dependencies are not yet available. But the applications are built with certain assumptions (or published design) about the dependent third party behavior. It is very common in today’s micro service based architecture where interfacing micro services are being developed in parallel and testing requires the other service to be available. It is preferable to have the application tested during the development phase itself so as to eliminate the obvious failure scenarios and tackle unexpected responses.

If the developer is familiar with writing unit tests, such dependencies are generally met using mock objects. Synonymous equivalent of mock objects in end to end testing are mock servers. Mock servers are those dummies which are programmed to behave like a real application in order to achieve the timely testing of a given application when the dependency is still unavailable. Continue reading “Testing Application Interaction with Unavailable Web Service – Mock Servers”

Google Photos / Picasa Web Albums Data API Beginner’s Guide

Google’s Picasa Web Albums Data API is the approach one can take to programmatically play with content on the Google Photos. Be it browsing the content of the album or upload a new photo from the mobile application, all has to be done through this API if not preferred to be done through the Google’s native apps or web browser. Continue reading “Google Photos / Picasa Web Albums Data API Beginner’s Guide”