API Testing via Postman
Introduction
In my previous post, we have seen some few things to know before starting API testing. It's recommended to go though my previous post before proceeding with this article. Here is the link for your quick reference.
https://bit.ly/2KjFqYN
Postman is a popular API Development and testing tool. It is available for Windows, Mac OS , Linux. Postman can be downloaded as a chrome plugin (
which is deprecated now) hence its recommended to switch to the
Native Postman App. You can download the native app from
Postman Website.
Initial Steps
- Download latest version of Postman native app and Launch the application.
- Once you Launch the application, you'll see a window having an option to login / signup.
- Or if you are thinking to skip this signup step, then at the bottom of the page you'll see an option "Skip signing in and take me straight to the app", by choosing this option you can continue using the app without creating an account with Postman.
- But, it's good to create an account / sign in initially so that all your work progress can be synced to your account and you'll not loose anything.
- Once you sign in you'll taken straight to the application.
- Here you'll see many options and you can de-select the checkbox at the bottom left corner (shown in the image above) so that this window will not appear again when you launch the Postman app.
Making our First Request
Once you close the pop-up you'll see a screen similar to a one you see below.
In the above image, there are some areas marked with numbers. The area which is marked as "1." there we can give a "Name to the request". "2." is where we need to enter the "Request URL" and "3." is the "Send" button which will help to build the request.
For testing purpose, we have used https://httpbin.org/ to make request.
Here we have made a GET request and after clicking on Send the request has been built and we got the response back from the server i.e the user-agnet in this particular case.
In next article we'll learn about more HTTP requests and related information.