API Testing

API testing is a type of software testing where application programming interfaces are tested to determine if they meet expectations for functionality, reliability, performance, and security. The API Testing is performed for the system, which has a collection of API that ought to be tested. 

 

What Needs to be checked?

  • Authorization
  • Error codes if API returns
  • Data accuracy.
  • Response time.
  • Duplicate functionality.
  • Security Testing
  • Performance Testing

 

Tests performed on API’s

  • Return Value based on input condition 
  • Verify if the API does not return anything.
  • Verify if the API triggers some other event or calls another API. 
  • Verify if the API is updating any data structure.

 

Flow of API Testing

Flow of API Testing

API testing Types:

  • Unit Testing
  • Integration Testing
  • Performance Testing
  • Functional testing
  • Security Testing
  • Load testing
  • Penetration testing
  • Reliability testing