Get started Bring yourself up to speed with our introductory content.

What does it mean to test APIs?

Expert Gerie Owen explains what it means to test APIs and why it is important to ensure that applications are working at peak performance level.

With APIs becoming increasingly popular among software platform providers, users must test APIs to ensure that...

applications are communicating to one another correctly.

An API is a way for one application to make use of the services of another. APIs can offer capabilities beyond enterprise software calls. Weather, sports scores, stock market quotes and many other types of data are available through commercial APIs. Enterprise software, such as SAP and Salesforce, rely on APIs, as well as other software that is intended to provide a service to different applications. Salesforce uses the Force.com platform to allow applications to talk to each other.

APIs often use a representational state transfer, or REST, interface. This enables an HTTP call to access a Universal Resource Identifier, commonly known as a URI, which executes a call into the service.

To test APIs, pass in legitimate in-range and out-of-range data, and observe the results. Are the results accurate? Do out-of-range inputs provide a useful error message and fail gracefully?

Many platforms are web-based, or in the cloud, so test APIs for network, geographic location and domain name system considerations. Send traffic from different locations around the world to ensure that access remains consistent across geographical regions.

Lastly, performance test APIs, particularly if it is a commercial service that has guaranteed availability and response time metrics. Test API performance by calling the interface and timing.

Load testing will also show if APIs are fit for use. If you are expecting high usage at certain times, look at peak load capabilities. While the format of API tests will look like web HTTP calls, the types of tests you conduct will resemble those for other applications.

This was last published in January 2018

Dig Deeper on Stress, Load and Software Performance Testing



Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Join the conversation

1 comment

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

How does your enterprise test APIs?