Skip to content

Make Selenium Easy

And Keep It That Way

  • Home
  • Share
  • Toggle search form

API Testing Tutorial Part 2 – Why is API Testing Important?

Posted on 03/16/2025 By admin

Hello Folks,

In this post, we will learn why we should do API testing.

At a very high level, an application has three components:

  1. Back end (Data Layer) : Where data is stored and retrieved.
  2. Front end (Presentation Layer) :  User interface.
  3. Middle ware (Logic Layer) : It connects front end and back end of application.

Let’s understand above point with an example:

You must have heard about Gmail. If you want to create an email id, you visit to Signup page of Gmail where you provide all details like name, age, mobile number etc. You provided details using Front end or presentation layer of Gmail application. Once you enter all details and submit, An API creates a request with data provided by you and hits an end point which creates a new user and stores information to a specific table of database. This API is middle ware. Data provided by end user and credentials details are stored in database. This is back end. You can see how all layers are interconnected using middle ware i.e. API.

As per current development process, maximum functionalities are exposed/built as an API. For example: Consider a hospital application. This application provides below functionalities:

  1. Register a patient.
  2. Login to patient dashboard.
  3. Logout from patient dashboard.
  4. Retrieve list of patients.
  5. Delete a patient record.
  6. Book an appointment.

Developers will develop all these functionalities as APIs which will be integrated by back end and front end teams. When development of application is completed, you start testing. You launch applications front end and provide details to register a patient and find patient is not registered or wrong data is shown or something else.  Wow!! You found many defects. Now you will raise them and will be fixed by developers. Front end and back end team will also make some or more changes and once deployed you will test again using UI. It took lot of time, effort and Money.  Actually you could have found this defects at very early stage and saved a lot of time, effort and cost. This can be done using API testing.

An API for “Register a patient” will have logic to register a patient and all types of error or warnings if something goes wrong. You can test status, speed and data accuracy of an API independently. Suppose, you need to test “Register a patient” for a different sets of data. You need to keep entering data through front end and you can not cover all those. But API testing makes it easy for you as you don’t require an UI to test API.

You can start early testing and find major bugs at early stage. It will save a lot of time and defects will not move from back end and middle ware to front end. It will increase your application stability and performance.

API testing is beneficial as smoke testing as well. You can quickly check whether all APIs are up and responding quickly and providing correct information. An automated API testing is more powerful.

If you have any doubt, feel free to comment below.
If you like my posts, please like, comment, share and subscribe.
#ThanksForReading
#HappyAPITesting

Uncategorized

Post navigation

Previous Post: selenium webdriver
Next Post: How To Solve – IllegalArgumentException: Keys to send should be a not null CharSequence

Related Posts

image – Make Selenium Easy Uncategorized
September 4, 2017 – Make Selenium Easy Uncategorized
SkiPException – Make Selenium Easy Uncategorized
Log4j2 Tutorial 6 – Introduction to RollingFileAppender and its Triggers and Strategies Uncategorized
xpath Uncategorized
December 12, 2018 – Make Selenium Easy Uncategorized

Recent Posts

  • Getting Started with Selenium 4: What Is New and How to Upgrade from Selenium 3
  • Manual Testing
  • Baby Steps To Become Efficient Selenium-Java Automation Tester
  • Features of Selenium 4.0.0 Release – Java Binding
  • Part 1: Handling Drop-down Created Using SELECT Tag In Selenium

Recent Comments

No comments to show.

Archives

  • April 2026
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • April 2024
  • March 2024
  • February 2024
  • December 2023
  • October 2023
  • August 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • May 2022
  • March 2022
  • October 2021
  • April 2021
  • March 2021
  • January 2021
  • December 2020
  • October 2020
  • September 2020
  • August 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • May 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • January 2018

Categories

  • Getting Started
  • Uncategorized

Copyright © 2026 Make Selenium Easy.

Powered by PressBook Masonry Dark