Image for post
Image for post
https://youtu.be/CYkD-LAZDqE

API testing focuses on testing the business logic or the functionality of the application, using API testing you are also validating the data responses, as well as ensuring whether your APIs are performant and secure.

So you are testing the core functionality of the application without touching the UI or worrying about the look and feel of the application. With API testing you can either test a single request or the integration between multiple requests and validate the response that’s being returned by the server.

Validate an API response:

Let’s say you are testing this ‘users’ API -> https://jsonplaceholder.typicode.com/users. You’ll see a response similar to this on a GET call:

{
id: 1,
name: "Leanne Graham",
username: "Bret",
email: "Sincere@april.biz",
...
},

You can validate the following scenarios:

Similarly, you can create and verify many such scenarios per your business requirement.

Types of API Testing:

Advantages of API Testing:

Check out the video below to see how to perform API Testing using a REST API console:

https://youtu.be/CYkD-LAZDqE

Follow @automationbro on Twitter for latest updates
Subscribe to my YouTube channel to see more content like this

Written by

I enjoy discussing topics related to Test Automation | Quality Assurance | Web Dev. Check out my Youtube channel — AutomationBro

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store