How To Use Postman

In this blog, I am going to explain the testing technique of Web Services, Web API, MVC controller, using Postman.
Postman is open source, free to install in your system and is used to test Web API. Using Postman, you can test any type of Services, controller, or Web Application after setting your configuration.
 
Now, Postman can be added on only Chrome, Window and MAC.  Latest version of Postman is 4.4.3
 
Features of Postman
  1. Web API
  2. Web Services
  3. WCF Services
  4. Rest & Soap based Services
  5. Mvc Controller
  6. Web Application
  7. HTTP & HTTPS based Services.
  8. Proxy based Services.
  9. Authentication & Authorize based Services.
  10. Form Data input. 
Using the steps, given below, you can use Postman to test any type of Web URL.
 
Step 1: Open Google Chrome Browser=>Settings=>Extensions=>Get more extension=>Type Postman in search textbox, which is given left top corner. See the image, given below:

Extensions
 
According this screen, I have already added Postman in the Browser, but you search and click the add button thereafter installed in your system. You can see Postman tool in Chrome extension. Open Postman and you can see the screen, which is given in the next step.
 
OR 

You can download directly from postman site.
 
Step 2: There will be many methods to select e.g GET,POST,PUT,DELETE.etc. You will select according to the Service request type. See the image, given below:

method

You can create and save your request details in the collection, according to your project. You can also check the previous history of the request, which did not respond with all the configuration.
 
Step 3: After selecting your request method, you'll set the request header type, UserToken (if any). See the image, given below:

method

In this screen, you had seen:

Authorization:- In this panel, you can set if your Application is following any type of an authentication.
Body:-This panel will not enable, when you use GET method.
form-data:- You can upload an image and send to the Server.

Body
raw:- In this, you'll set your request parameter in formats like JSON, XML,text etc..
 
Step 4: Configure all the configurations, according your Service requirement like this and click Send.You will see the output given below. See the image, given below:

Configure

You can select your response type. In this example, I am consuming a Web API to get a response in JSON format,
using a single parameter.
Ebook Download
View all
Learn
View all