What is Postman?
Postman is currently one of the most popular tools used in API
testing. It started in 2012 as a side project by Abhinav Asthana to
simplify API workflow in testing and development. API stands for
Application Programming Interface which allows software
applications to communicate with each other via API calls.
In this training course, you will learn:
- What is Postman?
- Why Use Postman?
- How to use Postman
- Working with GET Requests
- Working with POST Requests
- How to Parameterize Requests
- How to Create Postman Tests
- How to Create Collections
- How to Run Collections using Collection Runner
- How to Run Collections using Newman
Why Use Postman?
With over 4 million users nowadays, Postman has become a tool of
choice for the following reasons:
- Accessibility - To use Postman, one would just need to log-in to
their own accounts making it easy to access files anytime, anywhere
as long as a Postman application is installed on the computer.
- Use of Collections - Postman lets users create collections for
their API calls. Each collection can create subfolders and multiple
requests. This helps in organizing your test suites.
- Collaboration - Collections and environments can be imported or
exported making it easy to share files. A direct link can also be
used to share collections.
- Creating Environments - Having multiple environments aids in less
repetition of tests as one can use the same collection but for a
different environment. This is where parameterization will take
place which we will discuss in further lessons.
- Creation of Tests - Test checkpoints such as verifying for
successful HTTP response status can be added to each API calls
which help ensure test coverage.
- Automation Testing - Through the use of the Collection Runner or
Newman, tests can be run in multiple iterations saving time for
- Debugging - Postman console helps to check what data has been
retrieved making it easy to debug tests.
- Continuous Integration - With its ability to support continuous
integration, development practices are maintained.
How to Download and Install POSTMAN
Being an Open Source tool, Postman can be easily downloaded. Here
are the steps to install:
Step 1) Go to https://www.getpostman.com/downloads/ and choose your
desired platform among Mac, Windows or Linux. Click Download.
Step 2) Your download is in progress message should now display on the
Apps page. Once the download has completed, click on Run.
Step 3) Installation Starts
Step 4) In the next window, Signup for a Postman Account
NOTE: There are two ways to sign up for a Postman account. One is
to create an own Postman account, and the other is to use a Google
account. Though Postman allows users to use the tool without
logging in, signing up ensures that your collection is saved and
can be accessed for later use.
Step 5) Select the workspace tools you need and click Save My Preferences
Step 6) You will see the Startup Screen
How to use Postman
Below is the Postman Workspace. Let's explore the different
features of the tool!
- New - This is where you will create a new request, collection or
- Import - This is used to import a collection or environment. There
are options such as import from file, folder, link or paste raw
- Runner - Automation tests can be executed through the Collection
Runner. This will be discussed further in the next lesson.
- Open New - Open a new tab, Postman Window or Runner Window by
clicking this button.
- My Workspace - You can create a new workspace individually or as a
- Invite - Collaborate on a workspace by inviting team members.
- History - Past requests that you have sent will be displayed in
History. This makes it easy to track actions that you have done.
- Collections - Organize your test suite by creating collections.
Each collection may have subfolders and multiple requests. A
request or folder can also be duplicated as well.
- Request tab - This displays the title of the request you are
working on. By default, "Untitled Request" would be displayed for
requests without titles.
- HTTP Request - Clicking this would display a dropdown list of
different requests such as GET, POST, COPY, DELETE, etc. In
testing, the most commonly used requests are GET and POST.
- Request URL - Also known as an endpoint, this is where you will
identify the link to where the API will communicate with.
- Save - If there are changes to a request, clic