POSTMAN is a tool for testing API. The POSTMAN software is available on the internet for different platforms such as Windows, Linux, and Mac. The software is easy to use, and API requests can be created, tested and also can be shared.
POSTMAN is an API client that is used to develop, share, test APIs. It is also used for creating documentation for APIs. Test suites can be quickly designed using Postman, and also it can store test information to be used in other tests. It is integrated with Plugins, such as Jenkins, which makes it more powerful.
There are various reasons for using POSTMAN, some are listed below :
xml, etc. This way the output can also be used in different software. Also, the collection can be shared among various software or entities. Also, the direct link of the collection can also be shared.
POSTMAN can be installed as a native software in your local machine or it can be added as a chrome extension. The POSTMAN software is available for different Operating systems, such as Windows, MAC, and Linux.
In this section, I will show you, how to install POSTMAN as Native software and as a chrome extension in a Windows OS.
After you visit the above page, you should see a Sign in button in the top right corner.
Now click the Sign-in button on the website and you will be navigated to the free account creation page.
Create your account after filling the necessary details.
Now after signing in, you must see the page as below:
Now, check your email, and you might have received the confirmation email from POSTMAN.
Now after confirming the email, you must see a confirmation page like as below:
You may click on the head to profile to visit your account, but that not the proper way.
To download the POSTMAN software visit the official page of POSTMAN https://www.getpostman.com/downloads/
Now, click on the Download button and select the OS in which you want to install the software. I have chosen the 64-bit option. You may choose the 32 bit if you are using a 32 bit OS.
After you select the OS, the software should start downloading, as shown below:
Now, once the download completes, open the file and start installing the software. By default, the software should be inside the
downloads folder, if you are using the windows and have not customized your download location on your computer.
Right-click on the software and choose open to install the software.
Once installed, sign in with the username and the password, which you used at the time of creating the POSTMAN account. Once signed in, you should see the following page. This is the interface, you must see when it opens for the first time.
To install POSTMAN as a chrome extension, Visit the link:
And add the postman extension into your chrome.
Just click into the Add to Chrome button the extension will be added into your chrome browser after the below confirmation:
After you confirm by clicking the Add app, the extension will be added into your chrome browser.
After you click into the POSTMAN icon (which is the chrome extension now), you will see the same interface as you see in the POSTMAN native software.
I will be explaining everything on the basis of the Native Chrome App and not the extension.
To Get started with POSTMAN, you must understand sections in the interface of the software. The sections in the POSTMAN interface are:
Once you start the software a dialog box will appear which contains different shortcuts such as, Inside the Create New tab -> Request, Collection, Environment, API Documentation, Mock server, and the Monitor.
Then inside the Templates tab, you have different options like Categories which is a scroll listing of details related to POSTMAN. And in the right side section, there are different shortcuts like SOAP, Reverse Engineering, etc.
Then you will find the API Network tab. Inside there are different categories, you select one, and can easily import an API into your Native POSTMAN software and can start sending a request and so on.
There are only four header options in the top-left corner of POSTMAN.
Below the header, there is a dropdown button, New. This button can be used to create a new request, new folder, new collections and provide shortcuts to environments, collections. etc. It has two parts, Building Blocks & Advanced.
The next option is Import. It is used to import any file or folder. There are different options which you can import such as:
The next option is Runner. Clicking on the Runner button will automatically open the Collection Runner window. Inside the collection runner, there are different buttons, for mentioning the number of iterations, setting different delays between the iterations, adding a request script file, etc.
There are some buttons in the top right corner of the software interface.
Below the above options, you will see an environment dropdown button, which is for selecting the environment. Then you have the eye button and the gear-shaped button.
The Request tabs are used to perform different operations on different request APIs. Tabs allow us to have individual space for individual requests.
The Request URL bar is used to input the address of the request. In the below image, you can see the Request type is GET and the name of the request is Untitled Request. You can click on the plus(+) button on the right side of the tab to create a new tab.
Below the name of the tab name, you have the Request URL Bar and a dropdown button to display all the different types of requests available or is allowed in POSTMAN.
As, in the above image, you can see that the type of the request is POST and the Request URL is empty. By clicking the dropdown button, you will be able to select the type of request. The usually available requests are:
Below all these comes with Request:
Environment in POSTMAN is the set up of variables, parameters and all the settings which are set fixed and are dedicated to a particular request, collection, or folders. An environment in POSTMAN can also be applied in the collection level, and thus the sub-folders or the requests can access the environment parameters.
There may be different requests which need to be tested within a short interval of time. Therefore, it is not easy to change all the credentials and perform the next API test.
In such a case, different environments are to be set up so that, just by changing the environment, the parameters such as- credentials, variables, etc can be changed.
As, in the above image, you can see, that the environment option is a dropdown button which can be clicked to see all the different environment you create and can be selected.
This button can be used to create a new request, collection, environment, etc. Also, inside the button, that is an advanced option which is for the documentation, Mock Server and the Monitor.
POSTMAN Collections are groups of pre-built request that can be organized into folders so that, that can be run independently. Collection can also be shared with other collections. All the APIs requests can be stored and saved inside a collection.
Pre-scripts are the small code snippets that are executed before the request is sent to the server. There is a text editor in the POSTMAN for writing pre-scripts which can be used to write codes.
Pre-request can be added into different levels such as in the request level, folder level or the collection level. There is also the option to SET and GET variables in the pre-scripts.