The Special Case of Social APIs

Picture3Social APIs are omnipresent and create special cases for testing.

If you understand API testing, especially web service type APIs, testing social APIs is easy to grasp.

The use of social APIs makes them a special case. They are omnipresent and very well understood.

What this means is you need to have a good understanding of integrating and validating and also the test cases to be automated. You want these straightforward tests to be a “no brainer” and run automatically with each update and release of your product or service.

There is a move by some companies to write one standard API for all the social APIs. For example, you could use one web service to implement Facebook, Twitter, Linkedin, YouTube, Google+, Flikr and thousands of others with one standard call.

GNIP offers managed access to the public APIs of Facebook, YouTube, Instagram, Google+, Flickr and others.

Singly offers API integration management for health (FitBit to Runkeeper to BodyMedia), photos (Instagram to Facebook to Flickr to Picasa), and social (Foursquare Checkins, Facebook Likes, Favorite Tweets). This is not yet a common situation and I have doubts the various social web companies have any interest in standardizing their APIs. These “universal” social API integrations will need extra testing.

Take a look at a few of examples these API documents, especially looking for sandbox information, testing tools, data formats and boundaries:

Facebook Graph API

The Graph API is the primary way that data is retrieved or posted to Facebook.

https://developers.facebook.com/docs/graph-api

Twitter Embedded Tweets

You can take any tweet from your Twitter account and, as the name states, embed it directly into the content of your
website, or a page on your website.

https://dev.twitter.com/web/embedded-tweets

Google+ API

Google+ is a useful social network in some circles.

https://developers.google.com/+/web/api/rest

Yelp API

Add functionality to their app or website, to help users find up to the 40 best results for geographic searches.

https://www.yelp.com/developers/documentation

Foursquare API

Check-in based social media service Foursquare is one of the pioneers of geolocation-based marketing.

https://developer.foursquare.com/

Flickr API

Flickr is one of the leading image services on the web. Developers can use the API to organize, store and display their digital images, and even integrate them with other social apps. The API also allows them to share their content.

https://www.flickr.com/services/api/

In conclusion, focus on getting these tests automated and into your continuous integration (CI) suites.

Michael Hackett

Michael is a co-founder of LogiGear Corporation, and has over two decades of experience in software engineering in banking, securities, healthcare and consumer electronics. Michael is a Certified Scrum Master and has co-authored two books on software testing. Testing Applications on the Web: Test Planning for Mobile and Internet-Based Systems (Wiley, 2nd ed. 2003), and Global Software Test Automation (Happy About Publishing, 2006).
He is a founding member of the Board of Advisors at the University of California Berkeley Extension and has taught for the Certificate in Software Quality Engineering and Management at the University of California Santa Cruz Extension. As a member of IEEE, his training courses have brought Silicon Valley testing expertise to over 16 countries. Michael holds a Bachelor of Science in Engineering from Carnegie Mellon University.

Michael Hackett
Michael is a co-founder of LogiGear Corporation, and has over two decades of experience in software engineering in banking, securities, healthcare and consumer electronics. Michael is a Certified Scrum Master and has co-authored two books on software testing. Testing Applications on the Web: Test Planning for Mobile and Internet-Based Systems (Wiley, 2nd ed. 2003), and Global Software Test Automation (Happy About Publishing, 2006). He is a founding member of the Board of Advisors at the University of California Berkeley Extension and has taught for the Certificate in Software Quality Engineering and Management at the University of California Santa Cruz Extension. As a member of IEEE, his training courses have brought Silicon Valley testing expertise to over 16 countries. Michael holds a Bachelor of Science in Engineering from Carnegie Mellon University.

The Related Post

An API provides much of the functional capabilities in complex software systems. Most customers are accustomed to interacting with a graphical user interface on the computer. But, many do not realize that much of the functionality of a program comes from APIs in the operating system or the program’s dynamic-link libraries (DLL).
Lack of information and access to information isn’t an issue with web services. Web service documentation is widely available. Overview     One of the major persistent complaints from people who test is lack of information and lack of access to information. Luckily this is not the case with web services. If in the rare case with ...
APIs are the unsung hero of our connected world We live in an exciting age of intelligence, where progress moves at the speed of imagination. We are connected to the world and one another like never before. API (Application Programming Interface) is the unsung hero of our connected world. Here’s everything you need to know ...
An approach to secure maintainability and scalability for API testing projects One of the most important tasks in API testing is designing the input data whose quantum could explode due to the combination of a vast number of arguments. An experienced tester will inevitably figure out the advantages of the pairwise method in efficiently picking ...
Summary Remember that Agile is not an SDLC. Neither are Scrum and XP for that matter. Instead, these are frameworks for projects; they are built from practices (for example, XP has 12 core practices). Scrum and XP advocates will freely recommend that you pick a few practices to implement, then keep what works and discard ...
API testing has long been misunderstood as well-confined in the territory of developers. It’s natural to think that we must write code to test our code. However, it doesn’t have to be that way anymore. Business testers who have deep domain knowledge are now able to take on the challenges of API testing without coding. ...
Here are some books you might find useful when developing your web services API testing strategy. The Art of Application Performance Testing by Ian Molyneaux — This book was just released and I found it an outstanding conceptual overview of performance testing a web based application. The book does a great job of reviewing the ...
APIs are subtly altering our expectations that there should be an app for everything. The concept of disruption has been given regal status across businesses, startups, and tech circles in recent years. With such great emphasis placed on change, user experiences are inevitably facing evolution as well. Application programming interfaces or APIs have great transformative powers to disrupt business, but are ...
An overview of web service testing solutions for traditional or non-technical testers. Much has been written on the technical execution of API tests, yet there are gaps in the details of what tests to design and how to design them. The articles tend to either get too technical too fast, or are too vague and ...
These are the popular authentication methods in TestArchitect Authentication in API testing is usually a complicated subject for both developers and testers since it requires extensive knowledge on various types of security protocols and encryption algorithms.
API: An application programming interface (API) is a set of routines, protocols, and tools for building software applications. An API expresses a software component in terms of its operations, inputs, outputs, and underlying types. An API defines functionalities that are independent of their respective implementations, which allows definitions and implementations to vary without compromising the interface. Source: https://en.wikipedia.org/wiki/Application_programming_interface
LogiGear_Magazine–June_2015–All_About_API_Testing

Leave a Reply

Your email address will not be published.

Stay in the loop with the lastest
software testing news

Subscribe