API Testing with Postman

Payal Gaur
2 min readSep 23, 2020

What do you mean by API testing?

It’s a type of software testing that involves testing application programming interfaces (APIs) directly and as part of integration testing to determine if they meet expectations for functionality, reliability, performance, and security.

Postman

Postman is a powerful HTTP client for testing web services. Postman makes it easy to test, develop, and document APIs by allowing users to quickly put together both simple and complex HTTP requests.

Click the link and download the application and follow the steps prompted to successfully install the Postman application.

You can find the demo APIs using https://reqres.in/

Postman Collections

Postman Collections are a group of saved requests you can organize into folders.

How to make a collection in postman?

Click on New
>> Collection
>> Collection_Name(e.g. Demo APIs)
>>Create

Testing GET Request

  1. Click on New >> Request >>Get_Request (e.g. Get User List) >>Select the Collection name >> Save to Demo APIs
  2. Enter request URL- https://reqres.in/api/users?page=2
  3. Click on the Send button.
  4. Now observe the response code and response body.
  5. Click on the Save button to save the updated parameters.
Fetch user list

Testing POST Request

  1. Click on New >> Request >>POST_Request (e.g. Create User) >>Select the Collection name >> Save to Demo APIs.
  2. From the Dropdown select POST.
  3. Send Request URL- https://reqres.in/api/users
  4. Click on Body Tab and select the “Raw” radio button.
  5. In the text box, paste :

{
“name”: “Payal Gaur”,
“job”: “Quality Engineer”
}

6. Click on the Send button.

7. Now observe the response code and response body.

8. Click on the Save button to save the updated parameters.

Create a new user

Similarly, you can try your hands with PUT, PATCH, DELETE, etc

Thank you for reading.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response