Testing APIs Manually Using Postman

Posted By : Rahul Singh | 31-Mar-2021

testing

Loading...

API is an acronym for Application Programming Interface. It is a set of programming code that allows two applications to talk to each other. For this, software needs to access information or functionality from another software so it calls the respective API and specifies the requirements. Here, we exchange the information so it is mandatory to test that it is working properly and sending the required data and also test that there should be no loophole to prevent the loss of information.

Why The Postman Tool?

Postman is free and easy to use, its GUI is simple, making it easy to send HTTP requests and analyze the response. It helps users to perform various operations:

  1. Organize the APIs in the collection and in the folder
  2. Run the whole collection at a time using collection runner
  3. Integrate test suites into preferred CI/CD service with Newman

Install Postman Application

  • To install in your preferred OS
  • Go To https://www.postman.com/downloads/
  • Download and install the application it will look like this:

Testing APIs Manually Using Postman

Some Most commonly used HTTP methods are:

GET: It is used to request the data from the server, endpoint specified in URL

POST: It is used to send data to a server to create a resource

PUT: It is used to send data to a server to create/update resource

PATCH: It is used for partial modification to a resource

DELETE: It is used to delete the specified resource on the server

Test the Requests

GET Request: To test GET requests we must have an API having the GET method.

One can find sample requests from https://reqres.in

Steps to test any method

Step1: Get the URL of the API with the correct endpoints. Eg. - https://reqres.in/api/users/2

Step2: Enter the URL in textbox asks to enter request URL

Step3: Make sure you select the correct method type from the dropdown

Testing APIs Manually Using Postman

Step4: Click on the Send button to get the response in the body section. It should look like this.

Testing APIs Manually Using Postman

You have tested this GET request successfully. Similarly, you can test the other requests POST, PUT, PATCH, DELETE, etc.

For every request we need to look for:

  1. Check the response, is it the same as expected
  2. Check the status code, should be as expected
  3. Check the response time, should be as per business requirement

We, at Oodles, provide end-to-end Web application development services to solve complex business challenges. Our custom ERP development services render support for 360-degree software testing and quality assurance. We have experienced QA engineers to holistically test your software application to detect bugs and glitches for faster resolution. For more information, reach us out at [email protected].