Wherever you are, you can help Ukraine

Act Now! Flag Ukraine

API testing: What? Why? How?

TestFortExpert by TestFortExpert on 09/22/2015

API testing: What? Why? How?

If you are a tech-savvy person, you must have definitely heard of API. In fact, it is a common thing. You have probably been using it since 1990, copying and pasting a chunk of Microsoft Word to Excel Spreadsheet, for instance. However, the realm of Social media and ballooning number of web-based applications have revolutionized our world and the way we communicate making our life more and more Internet-dependent and calling for effective ways of interacting between various web-based solutions.

And these days APIs are especially handy and crucial because they help developers to create new apps which fit into social networks like Facebook or Instagram. For example, you are looking through Instagram photos and you want to see how these places look in real time, using Google Maps. Or you are watching a Youtube video and you want to share it via Facebook. API make this possible without you even noticing what lies behind .It works like invisible magic.

What is API?

API (Application Programming Interface) works as an interface between two separate software systems enabling them to interact with each other. Some of the internal code (limited amount) of the system is exposed to the world so that a program can communicate with other programs.

Why to test API?

Testing API is like testing any other interface into the software. You have to make sure that it is bug-free before shipping.

It resembles testing on the UI level but instead of just using data input and output, API tester makes calls to the API, receives output and puts down the actual result as opposed to the expected one. You can perform it using special test solutions (for instance, Postman) or as API testers frequently have to do, write API test code.

The purpose of API test code is to issue a request to the API, output and note down the expected, actual results, and the time within which the response was delivered.

How to test API?

We use cookies to ensure your best experience. By continuing to browse this site, you accept the use of cookies and "third-party" cookies. For more information or to refuse consent to some cookies, please see our Privacy Policy and Cookie Policy