What is API Testing ?

Selen Gönen
Koçfinans Tech
Published in
3 min readNov 15, 2021

Hi everyone,

In this article, I will give some information about API testing and its advantages in software life cycle. First, let’s better understand what API testing is.

What is API Testing?

API (Application Programming Interface) testing is a kind of software testing and it is written to verify the APIs still meet the expectations of functionality, reliability, performance, and security after a code change. Below, I will give some API testing examples by using data accuracy, HTTP status codes, data format, and error codes.

Why do we need to perform API testing?

API testing verifies that the services still return successful responses after the development teams push a new code to the service and that means API testing provides less maintenance effort to UI automation and manual testing.

Postman for API Testing

We prefer Postman for API testing. It is a browser plugin, which is available for both Windows and Mac operating systems. It is excellent for QA team that are not interested in dealing with integrated development environment coding, the same language that the developers used.

API Testing Examples

API testing requires both positive and negative tests to ensure that the API is working correctly.

The response of web service

Lets see some tests according the response above :

  • Verification the response status code. Here, you can check either it returns a 2xx as positive or error code as negative.
  • Verification the requirement of a data.
  • Verification the type of a data.
  • Verification true/false situation of a data.
  • Verification the response time is less than 200ms

--

--