Quality Testing

Quality is delighting customers

Hi,

What is API Testing? Can any one explain in detail with example?

Thanks in advance

-Ruchi

Views: 53

Reply to This

Replies to This Discussion

Ruchi,

What is API Testing?

An API (Application Programming Interface) is a collection of software functions and procedures, called API calls, that can be executed by other software applications. Application developers code that links to existing APIs to make use of their functionality. This link is seamless and end-users of the application are generally unaware of using a separately developed API.
During testing, a test harness-an application that links the API and methodically exercises its functionality-is constructed to simulate the use of the API by end-user applications. The interesting problems for testers are:
1. Ensuring that the test harness varies parameters of the API calls in ways that verify functionality and expose failures. This includes assigning common parameter values as well as exploring boundary conditions.
2. Generating interesting parameter value combinations for calls with two or more parameters.
3. Determining the content under which an API call is made. This might include setting external environment conditions (files, peripheral devices, and so forth) and also internal stored data that affect the API.
4. Sequencing API calls to vary the order in which the functionality is exercised and to make the API produce useful results from successive calls

I collected this information in this link : http://sqa.fyicenter.com/FAQ/Testing-Techniques/What_is_API_Testing...

Example take yahoo site you can see weather, map, news feeds, they will put that data in RSS feeds in XML, we can take that data from yahoo server and we can use that data in our application.

Hello,

If you want to learn about this topic, I would like to suggest you one of the best article, Please explore the Topic here:  What is API Testing and How to Perform API Testing?(

As per practices of security testing services, API is one of the most powerful testing techniques for code validation, finding bugs and ensuring test accuracy. It is also less time consuming than functional testing. API testing plays a major role in deciding the functionality, security and performance of the application.

Its main role revolves around the backend of the application where it determines the accuracy of requests sent and responses received by the application server. All the errors and responses of the application are handled by APIs itself.

If we take an example of Login page of any application, APIs comes into existence when we provide valid username/Password details on login page, API of that page validates it at the backend and then we moves further by making successful login attempt, however, with invalid/incorrect login API gets fail and throws errors.

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2021   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service