{"id":102544,"date":"2019-09-26T09:27:28","date_gmt":"2019-09-26T09:27:28","guid":{"rendered":"https:\/\/www.softwaretestinghelp.com\/?page_id=102544"},"modified":"2025-04-01T08:12:59","modified_gmt":"2025-04-01T08:12:59","slug":"api-testing-using-postman","status":"publish","type":"page","link":"https:\/\/www.softwaretestinghelp.com\/api-testing-using-postman\/","title":{"rendered":"POSTMAN Tutorial: API Testing Using POSTMAN"},"content":{"rendered":"\n<p><strong>This Step By Step Tutorial Explains API Testing Using POSTMAN Including Basics of POSTMAN, Its Components and Sample Request and Response:<\/strong><\/p>\n\n\n\n<p>We had a look at the most commonly asked <a href=\"https:\/\/www.softwaretestinghelp.com\/asp-net-and-web-api-interview-questions\/\"><strong>ASP.Net and Web API Interview Questions<\/strong><\/a> in our previous tutorial. By going through this tutorial, you will learn how we approach API Testing through POSTMAN for any given URL.<\/p>\n\n\n\n<p>Postman is a very simple and intuitive API testing tool or application. Every component in POSTMAN is very important as it has its own significance.<\/p>\n\n\n\n<p><strong>=&gt; <a href=\"https:\/\/www.softwaretestinghelp.com\/api-testing-tutorial\/\">Read Through The Complete API Testing Series Here<\/a>.<\/strong><\/p>\n\n\n\n \n  \n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/API-Testing-Using-POSTMAN-1.png\"><img decoding=\"async\" width=\"650\" height=\"367\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/API-Testing-Using-POSTMAN-1.png\" alt=\"API Testing Using POSTMAN\" class=\"wp-image-105358\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/API-Testing-Using-POSTMAN-1.png 650w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/API-Testing-Using-POSTMAN-1-300x169.png 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/a><\/figure>\n\n\n\n<p><strong><span style=\"color: #ff6600;\">List Of All The Postman Tutorials In This Series<\/span><\/strong><\/p>\n\n\n\n<p><strong>Tutorial #1:<\/strong> <a href=\"https:\/\/www.softwaretestinghelp.com\/api-testing-using-postman\/\">Postman Introduction (This Tutorial)<\/a><br><strong>Tutorial #2:<\/strong> <a href=\"https:\/\/www.softwaretestinghelp.com\/how-to-use-postman\/\">How To Use Postman For Testing Diff API Formats<\/a><br><strong>Tutorial #3:<\/strong> <a href=\"https:\/\/www.softwaretestinghelp.com\/postman-variables\/\">Postman: Variable Scopes And Environment Files<\/a><br><strong>Tutorial #4:<\/strong> <a href=\"https:\/\/www.softwaretestinghelp.com\/postman-collections-import-export-generate-code\/\">Postman Collections: Import, Export And Generate Code Samples<\/a><br><strong>Tutorial #5:<\/strong> <a href=\"https:\/\/www.softwaretestinghelp.com\/postman-assertions-automating-response-validation\/\">Automating Response Validations with Assertions<\/a><br><strong>Tutorial #6:<\/strong> <a href=\"https:\/\/www.softwaretestinghelp.com\/postman-request-scripts\/\">Postman: Pre Request And Post Request Scripts<\/a><br><strong>Tutorial #7:<\/strong> <a href=\"https:\/\/www.softwaretestinghelp.com\/postman-advanced-scripting\/\">Postman Advanced Scripting<\/a><br><strong>Tutorial #8:<\/strong> <a href=\"https:\/\/www.softwaretestinghelp.com\/postman-newman\/\">Postman &#8211; Command-Line integration with Newman<\/a><br><strong>Tutorial #9:<\/strong> <a href=\"https:\/\/www.softwaretestinghelp.com\/newman-reporting-templates\/\">Postman &#8211; Reporting templates with Newman<\/a><br><strong>Tutorial #10:<\/strong> <a href=\"https:\/\/www.softwaretestinghelp.com\/postman-api-documentation\/\">Postman &#8211; Creating API Documentation<\/a><br><strong>Tutorial #11:<\/strong> <a href=\"https:\/\/www.softwaretestinghelp.com\/postman-interview-questions\/\">Postman Interview Questions<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><span style=\"color: #ff6600;\"><strong>Overview Of Tutorials In Postman Series<\/strong><\/span><\/p>\n\n\n\n<div id=\"tablepress-1239-scroll-wrapper\" class=\"tablepress-scroll-wrapper\">\n<table id=\"tablepress-1239\" class=\"tablepress tablepress-id-1239 tablepress-responsive\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">Tutorial_Num<\/th><th class=\"column-2\">What You Will Learn<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping row-hover\">\n<tr class=\"row-2\">\n\t<td class=\"column-1\"><strong>Tutorial #1<\/strong><br \/>\n<\/td><td class=\"column-2\"><strong><a href=\"https:\/\/www.softwaretestinghelp.com\/api-testing-using-postman\/\">Postman Introduction<\/a><\/strong><br \/>\n<br \/>\nThis Step By Step tutorial explains API Testing Using POSTMAN including Basics of POSTMAN, its Components and Sample Request and Response.<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\"><strong>Tutorial #2<\/strong><br \/>\n<\/td><td class=\"column-2\"><strong><a href=\"https:\/\/www.softwaretestinghelp.com\/how-to-use-postman\/\">How To Use Postman For Testing Diff API Formats<\/a><\/strong><br \/>\n<br \/>\nThis informative tutorial explains How To Use Postman For Testing Different API Formats like REST, SOAP and GraphQL with Examples.<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\"><strong>Tutorial #3<\/strong><br \/>\n<\/td><td class=\"column-2\"><strong><a href=\"https:\/\/www.softwaretestinghelp.com\/postman-variables\/\">Postman: Variable Scopes And Environment Files<\/a><\/strong><br \/>\n<br \/>\nThis Postman tutorial will explain the Different Types of Variables Supported by the Postman Tool and How they can be Used while Creating and Executing Postman Requests &amp; Collections.<\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\"><strong>Tutorial #4<\/strong><br \/>\n<\/td><td class=\"column-2\"><strong><a href=\"https:\/\/www.softwaretestinghelp.com\/postman-collections-import-export-generate-code\/\">Postman Collections: Import, Export And Generate Code Samples<\/a><\/strong><br \/>\n<br \/>\nThis tutorial will cover, What Are Postman Collections, How to Import and Export Collections into and from Postman and How to Generate Code Samples in Various Supported Languages Using Existing Postman Scripts.<\/td>\n<\/tr>\n<tr class=\"row-6\">\n\t<td class=\"column-1\"><strong>Tutorial #5<\/strong><br \/>\n<\/td><td class=\"column-2\"><strong><a href=\"https:\/\/www.softwaretestinghelp.com\/postman-assertions-automating-response-validation\/\">Automating Response Validations with Assertions<\/a><\/strong><br \/>\n<br \/>\nWe will Understand the Concept of Assertions in Postman Requests with the help of Examples here in this tutorial.<\/td>\n<\/tr>\n<tr class=\"row-7\">\n\t<td class=\"column-1\"><strong>Tutorial #6<\/strong><br \/>\n<\/td><td class=\"column-2\"><strong><a href=\"https:\/\/www.softwaretestinghelp.com\/postman-request-scripts\/\">Postman: Pre Request And Post Request Scripts<\/a><\/strong><br \/>\n<br \/>\nThis tutorial will explain How and When to Use Postman Pre-request Scripts and Post Request Scripts or Tests with the help of Simple Examples.<\/td>\n<\/tr>\n<tr class=\"row-8\">\n\t<td class=\"column-1\"><strong>Tutorial #7<\/strong><br \/>\n<\/td><td class=\"column-2\"><strong><a href=\"https:\/\/www.softwaretestinghelp.com\/postman-advanced-scripting\/\">Postman Advanced Scripting<\/a><\/strong><br \/>\n<br \/>\nWe will explore some examples of using advanced scripting with Postman tool that would enable us to run complex testing workflows here.<\/td>\n<\/tr>\n<tr class=\"row-9\">\n\t<td class=\"column-1\"><strong>Tutorial #8<\/strong><br \/>\n<\/td><td class=\"column-2\"><strong><a href=\"https:\/\/www.softwaretestinghelp.com\/postman-newman\/\">Postman &#8211; Command-Line integration with Newman<\/a><\/strong><br \/>\n<br \/>\nThis tutorial will explain How to Integrate or Execute Postman Collections Through the Command-line Integration Tool Newman.<\/td>\n<\/tr>\n<tr class=\"row-10\">\n\t<td class=\"column-1\"><strong>Tutorial #9<\/strong><br \/>\n<\/td><td class=\"column-2\"><strong><a href=\"https:\/\/www.softwaretestinghelp.com\/newman-reporting-templates\/\">Postman &#8211; Reporting templates with Newman<\/a><\/strong><br \/>\n<br \/>\nReporting Templates that can be used with the Newman Command Line Runner to Generate Templated Reports of Postman Test Execution are explained here in this tutorial.<\/td>\n<\/tr>\n<tr class=\"row-11\">\n\t<td class=\"column-1\"><strong>Tutorial #10<\/strong><br \/>\n<\/td><td class=\"column-2\"><strong><a href=\"https:\/\/www.softwaretestinghelp.com\/postman-api-documentation\/\">Postman &#8211; Creating API Documentation<\/a><\/strong><br \/>\n<br \/>\nGet to know How To Create Good Looking, Styled Documentation with Minimal Efforts Using the API Documentation Support Provided by Postman Tool in this tutorial.<\/td>\n<\/tr>\n<tr class=\"row-12\">\n\t<td class=\"column-1\"><strong>Tutorial #11<\/strong><br \/>\n<\/td><td class=\"column-2\"><strong><a href=\"https:\/\/www.softwaretestinghelp.com\/postman-interview-questions\/\">Postman Interview Questions<\/a><\/strong><br \/>\n<br \/>\nIn this tutorial, we will cover some of the most frequently asked Postman Interview Questions around the Postman tool and various API testing techniques.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<!-- #tablepress-1239 from cache -->\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">POSTMAN Introduction<\/h2>\n\n\n\n<p>POSTMAN is an API client used to develop, test, share and document APIs. It is used for backend testing where we enter the end-point URL, it sends the request to the server and receives the response back from the server. The same thing can be accomplished through API Templates like Swagger as well. In both Swagger and POSTMAN, we do not have to build a framework (unlike Parasoft) to fetch the response from the service.<\/p>\n\n\n\n<p>This is the main reason for which POSTMAN is used frequently by the developers and automation engineers to ensure that the service is up and running along with the build version of an API that is being deployed into the region.<\/p>\n\n\n\n<p>It essentially helps in hitting API endpoints by quickly creating requests as per the API specification and dissecting the various response parameters like the status code, headers, and the actual response body itself.<\/p>\n\n\n\n<p><span style=\"color: #ff6600;\"><strong>Here is a Video Tutorial:&nbsp;<\/strong><\/span><\/p>\n\n\n\n<p><iframe src=\"https:\/\/www.youtube.com\/embed\/h0CZ5V5kzEo\" width=\"650\" height=\"350\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">?<\/span><\/iframe><\/p>\n\n\n\n<p><strong>Postman offers a lot of advanced features like:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>API development.<\/li>\n\n\n\n<li>Setting up Mock endpoints for APIs that are still under development.<\/li>\n\n\n\n<li>API documentation.<\/li>\n\n\n\n<li>Assertions for the responses received from API endpoint execution.<\/li>\n\n\n\n<li>Integration with CI-CD tools like Jenkins, TeamCity, etc.<\/li>\n\n\n\n<li>Automating API tests execution etc.<\/li>\n<\/ul>\n\n\n\n<p>Now, we have gone through the formal introduction of the tool, let&#8217;s proceed to the installation part.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">POSTMAN Installation<\/h2>\n\n\n\n<p><strong>Postman is available in 2 options.<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>As a Chrome app (this is already deprecated and has no support from the Postman developers)<\/li>\n\n\n\n<li>Native App for different platforms like Windows, Mac OS, Linux, etc.<\/li>\n<\/ol>\n\n\n\n<p>As Chrome apps are being deprecated and have a tight coupling with Chrome browser (in a few cases the actual browser version), we will focus mostly using the Native application that gives us more control and has lesser external dependencies.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"color: #ff6600;\">Postman Native App<\/span><\/h3>\n\n\n\n<p>Postman Native app is a standalone app that is available for <a href=\"https:\/\/www.getpostman.com\/downloads\/\" target=\"_blank\" rel=\"noopener nofollow\">download<\/a> in various OS platforms like Windows, Mac OS, Linux, etc. This can be downloaded just like any other application depending upon the user\u2019s platform.<\/p>\n\n\n\n<p>The installation process is pretty straightforward as well. You simply need to double click on the downloaded installer (for Windows and Mac) and follow the instructions.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/Postman_installer.png\"><img decoding=\"async\" width=\"650\" height=\"264\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/Postman_installer.png\" alt=\"Postman Installation\" class=\"wp-image-107132\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/Postman_installer.png 650w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/Postman_installer-300x122.png 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/a><\/figure>\n\n\n\n<p>Once the installation is successful, simply open the Postman Application to get started with.<\/p>\n\n\n\n<p>We will see how to create a simple request for any available open-source API and see the various components of the request and response received when the request is executed using the Postman application.<\/p>\n\n\n\n<p>It\u2019s highly recommended, to sign-in\/sign-up into the Postman application using an existing email account. A signed-in account preserves all the Postman collections and requests that are saved during the session and ensures that the requests are still available to work with when the same user logs-in next time.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/Postman-Signup.png\"><img decoding=\"async\" width=\"650\" height=\"414\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/Postman-Signup.png\" alt=\"Postman-Sign up\" class=\"wp-image-107133\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/Postman-Signup.png 650w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/Postman-Signup-300x191.png 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/a><\/figure>\n\n\n\n<p>Please refer to the <strong>Note <\/strong>section to get details about the publicly available fake API endpoint.<\/p>\n\n\n\n<p>We will illustrate a sample GET request to this <a href=\"https:\/\/jsonplaceholder.typicode.com\/posts\" target=\"_blank\" rel=\"noopener nofollow\">URL<\/a> which would return 100 posts in response as a JSON Payload.<\/p>\n\n\n\n<p><strong>Let\u2019s get started and look at the steps that need to be followed:<\/strong><\/p>\n\n\n\n<p><strong>#1)<\/strong> Open the Postman Application (If not already logged in with the existing or new account, first log in with the appropriate credentials).<\/p>\n\n\n\n<p><strong> Given below is the image of the Postman UI initial screen:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/App-Screenshot1.png\"><img decoding=\"async\" width=\"740\" height=\"247\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/App-Screenshot1.png\" alt=\"Postman UI Initial screen\" class=\"wp-image-107135\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/App-Screenshot1.png 740w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/App-Screenshot1-300x100.png 300w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><\/a><\/figure>\n\n\n\n<p><strong>#2)<\/strong> Create a new request and fill in the details as per the endpoint that we will be using for our test or illustration. Let\u2019s test a get request for a REST API endpoint http:\/\/dummy.restapiexample.com\/api\/v1\/employees<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/Create-dummy-request.jpg\"><img decoding=\"async\" width=\"650\" height=\"351\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/Create-dummy-request.jpg\" alt=\"Create Dummy Request\" class=\"wp-image-107136\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/Create-dummy-request.jpg 650w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/Create-dummy-request-300x162.jpg 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/a><\/figure>\n\n\n\n<p><strong>#3)<\/strong> Once the request properties are filled in, hit SEND to execute the request to the server hosting the endpoint.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/Send-When-request-complete.jpg\"><img decoding=\"async\" width=\"740\" height=\"192\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/Send-When-request-complete.jpg\" alt=\"Send When Request is Complete\" class=\"wp-image-107137\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/Send-When-request-complete.jpg 740w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/Send-When-request-complete-300x78.jpg 300w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><\/a><\/figure>\n\n\n\n<p><strong>#4)<\/strong> Once the server responds, we can check the various data around the response.<\/p>\n\n\n\n<p><em><strong> Let\u2019s see each of them in detail.<\/strong><\/em><\/p>\n\n\n\n<p>By default, once the response completes, the response body tab is selected and displayed. Other parameters for a response like the response status code, the time taken for the request to complete, the size of the payload are shown just below the request headers (as in the below figure).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/various-data-around-the-response.png\"><img decoding=\"async\" width=\"740\" height=\"386\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/various-data-around-the-response.png\" alt=\"Various data around Response\" class=\"wp-image-107138\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/various-data-around-the-response.png 740w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/various-data-around-the-response-300x156.png 300w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><\/a><\/figure>\n\n\n\n<p>To get fine-grained details about the response parameters like Response size and Response time, you can simply hover over each of those values, and Postman will show you a detailed view with more fine-grained details for each of those properties.<\/p>\n\n\n\n<p><span style=\"text-decoration: underline;\"><strong>For example,<\/strong><\/span> for Request time &#8211; it will further dissect it into individual components like Connect time, Socket time, DNS lookup, Handshake, etc.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/request-time.png\"><img decoding=\"async\" width=\"384\" height=\"256\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/request-time.png\" alt=\"Request time\" class=\"wp-image-107140\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/request-time.png 384w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/request-time-300x200.png 300w\" sizes=\"(max-width: 384px) 100vw, 384px\" \/><\/a><\/figure>\n\n\n\n<p>Similarly, for Response size, it will show you a breakup of how much size the headers are constituted, and what is the actual response size.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/response-size.png\"><img decoding=\"async\" width=\"410\" height=\"326\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/response-size.png\" alt=\"Response size\" class=\"wp-image-107142\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/response-size.png 410w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/response-size-300x239.png 300w\" sizes=\"(max-width: 410px) 100vw, 410px\" \/><\/a><\/figure>\n\n\n\n<p>Now, let&#8217;s look at the other response tabs i.e. Cookies and Headers. In the web world, Cookies hold a lot of importance in terms of driving client-side experiences and lots of session related info to get all the information about the cookies that were returned from the server. You can switch to the cookies tab and see this.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/cookies-and-headers.png\"><img decoding=\"async\" width=\"740\" height=\"264\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/cookies-and-headers.png\" alt=\"Cookies and headers\" class=\"wp-image-107139\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/cookies-and-headers.png 740w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/cookies-and-headers-300x107.png 300w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><\/a><\/figure>\n\n\n\n<p>Similarly, response headers contain a lot of beneficial information about the request that got processed. Just navigate to the headers tab in the response section to take a look at the response headers.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/response-headers.png\"><img decoding=\"async\" width=\"727\" height=\"562\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/response-headers.png\" alt=\"Response headers\" class=\"wp-image-107141\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/response-headers.png 727w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/10\/response-headers-300x232.png 300w\" sizes=\"(max-width: 727px) 100vw, 727px\" \/><\/a><\/figure>\n\n\n\n<p>An important point to note here is that all the requests that you make to the server are stored in the Postman history for future reference (The History tab is available on the left side panel of the app).<\/p>\n\n\n\n<p>This helps in preventing the creation of requests every time when you need to get a response for the same request and also helps in avoiding mundane boilerplate tasks. If required, you can refer to the past requests (And responses as well) at a future point of time.<\/p>\n\n\n\n<p><strong>Note:<\/strong> To illustrate sample requests and responses, we will be using publicly available fake API servers that will allow all types of HTTP requests to be made and that return a valid HTTP response.<\/p>\n\n\n\n<p><strong>To name a few, we will be using the below fake API endpoint sites as a reference:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"http:\/\/dummy.restapiexample.com\/\" target=\"_blank\" rel=\"noopener nofollow\">Rest API Example<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/jsonplaceholder.typicode.com\/\" target=\"_blank\" rel=\"noopener nofollow\">JSON Placeholder Typicode<\/a><\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"color: #ff6600;\">Alternative Quick Postman Installation Guide<\/span><\/h3>\n\n\n\n<p>POSTMAN is an open tool and is available for anyone who surfs the internet. You can follow the below steps and get the POSTMAN tool installed in your local machine.<\/p>\n\n\n\n<p><strong>Step 1:<\/strong> Open <a href=\"http:\/\/www.google.com\" target=\"_blank\" rel=\"noopener nofollow\">Google<\/a> and search for the POSTMAN tool. You will get the below search-result. Then you can click on Download Postman App and you will be redirected to the getpostman website.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Search-for-POSTMAN.png\"><img decoding=\"async\" width=\"740\" height=\"565\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Search-for-POSTMAN.png\" alt=\"Google Search for POSTMAN\" class=\"wp-image-102554\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Search-for-POSTMAN.png 740w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Search-for-POSTMAN-300x229.png 300w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><\/a><\/figure>\n\n\n\n<p>Else, you can directly navigate to this <a href=\"https:\/\/www.getpostman.com\/downloads\/\" target=\"_blank\" rel=\"noopener nofollow\">URL<\/a> to get the POSTMAN tool.<\/p>\n\n\n\n<p><strong>Step 2:<\/strong> Select the POSTMAN version based on your operating system. In our case, we are going to use POSTMAN for Windows OS. Moreover, we are using Window-64 bit, so we will download and install POSTMAN for 64 bit.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Install-POSTMAN.png\"><img decoding=\"async\" width=\"740\" height=\"361\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Install-POSTMAN.png\" alt=\"Install POSTMAN\" class=\"wp-image-102555\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Install-POSTMAN.png 740w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Install-POSTMAN-300x146.png 300w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Step 3:<\/strong> Once you have clicked on the Download button, a postman.exe file will be download into your local. Click on that file. It&#8217;s a one-click installation just like any other application that will let you install the POSTMAN add-on for your browser.<\/p>\n\n\n\n<p><strong>Step 4:<\/strong> After you have installed the application, click on the application (which must be placed on your desktop). As you can see in the below image, we have six different entities for which you will basically need three building blocks i.e. Request, Collection, and Environment which will be discussed in the next section.<\/p>\n\n\n\n<p>That\u2019s it!! We have successfully installed and launched the POSTMAN application.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Application-Selection.png\"><img decoding=\"async\" width=\"740\" height=\"260\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Application-Selection.png\" alt=\"POSTMAN Installed\" class=\"wp-image-102556\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Application-Selection.png 740w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Application-Selection-300x105.png 300w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Building Blocks Of POSTMAN<\/strong><\/h3>\n\n\n\n<p>POSTMAN has a variety of building blocks but for our purpose, we are going to discuss the three major building blocks that are essential for every POSTMAN operation.<\/p>\n\n\n\n<p>These three major building blocks are:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span style=\"color: #ff6600;\">#1) Request<\/span><\/h4>\n\n\n\n<p>A request is nothing but a combination of the complete URL (which includes all parameters or keys), HTTP headers, body or payload. These attributes altogether form a request. POSTMAN lets you save your request and this is a good feature of the app that lets us use the same request as many times as we want.<\/p>\n\n\n\n<p>Click on <strong>New -&gt; Request<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/New-Request.png\"><img decoding=\"async\" width=\"590\" height=\"715\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/New-Request.png\" alt=\"New Request\" class=\"wp-image-102557\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/New-Request.png 590w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/New-Request-248x300.png 248w\" sizes=\"(max-width: 590px) 100vw, 590px\" \/><\/a><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><span style=\"color: #ff6600;\">#2) Collection<\/span><\/h4>\n\n\n\n<p>There must be something where you will save your bulk requests. This is the scenario where collection comes into the picture. We can say that a collection is a repository in which we can save all our requests. Generally, the requests that hit the same API are kept in the same collection.<\/p>\n\n\n\n<p>Click on <strong>New -&gt; Collection.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/New-Collection.png\"><img decoding=\"async\" width=\"740\" height=\"445\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/New-Collection.png\" alt=\"New Collection\" class=\"wp-image-102558\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/New-Collection.png 740w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/New-Collection-300x180.png 300w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><\/a><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><span style=\"color: #ff6600;\">#3) Environment<\/span><\/h4>\n\n\n\n<p>An Environment is a region where all your operations on an API will take place. It could be TUP, QA, Dev, UAT or PROD. Each project will already have the regions configured and you just have to declare your global variables such as URL, token\u2019s id and password, context keys, API keys, document keys and so on in it.<\/p>\n\n\n\n<p>Click on <strong>New -&gt; Environment.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/New-Environment.png\"><img decoding=\"async\" width=\"740\" height=\"397\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/New-Environment.png\" alt=\"New Environment\" class=\"wp-image-102559\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/New-Environment.png 740w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/New-Environment-300x161.png 300w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Saving A Request Into Collection<\/strong><\/h3>\n\n\n\n<p>Now we will try saving a sample request into a collection and we will use the same request to hit an API.<\/p>\n\n\n\n<p><strong>Step 1:<\/strong> In the top right corner, you will see the \u201c+New\u201d button. Click on this button and you will have the list of the building blocks that were shown when you launched the application for the first time.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/New-button.png\"><img decoding=\"async\" width=\"740\" height=\"52\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/New-button.png\" alt=\"New button\" class=\"wp-image-102560\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/New-button.png 740w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/New-button-300x21.png 300w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Step 2:<\/strong> Click on Request.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Click-on-Request.png\"><img decoding=\"async\" width=\"740\" height=\"143\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Click-on-Request.png\" alt=\"Click on Request\" class=\"wp-image-102561\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Click-on-Request.png 740w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Click-on-Request-300x58.png 300w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Step 3: <\/strong>Provide the request name which is a mandatory field. Then click on \u201c+ Create Collection\u201d.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Create-Collection.png\"><img decoding=\"async\" width=\"585\" height=\"713\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Create-Collection.png\" alt=\"Click on + Create Collection\" class=\"wp-image-102562\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Create-Collection.png 585w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Create-Collection-246x300.png 246w\" sizes=\"(max-width: 585px) 100vw, 585px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Step 4: <\/strong>Once you have clicked on \u201c+ Create Collection\u201d, it will ask for a name (say Sample Collection). Input the name of the collection and hit enter.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Sample-Collection.png\"><img decoding=\"async\" width=\"587\" height=\"726\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Sample-Collection.png\" alt=\"Sample Collection\" class=\"wp-image-102563\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Sample-Collection.png 587w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Sample-Collection-243x300.png 243w\" sizes=\"(max-width: 587px) 100vw, 587px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Step 5: <\/strong>Click on the <strong>\u201cSave to Sample Collection&#8221; <\/strong>button.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Sample Request And Response<\/h2>\n\n\n\n<p>This particular section will give you a deep insight into how to test an API in POSTMAN.<\/p>\n\n\n\n<p>As you can see in the below image, we have our Request which we have already created (Test for SoftwareTestingHelp). Moreover, you can see a drop-down (just beside the URL) which has the verbs or methods that are supported by the POSTMAN.<\/p>\n\n\n\n<p>These are called HTTP verbs. We will try to update something using the PUT method and then we will retrieve the same using the GET method. I assume readers are aware of the functionality of these HTTP verbs that are used in API testing.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Created-Request.png\"><img decoding=\"async\" width=\"740\" height=\"374\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Created-Request.png\" alt=\"Created Request\" class=\"wp-image-102564\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Created-Request.png 740w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Created-Request-300x152.png 300w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><\/a><\/figure>\n\n\n\n<p>Now, we have a URL and a request method. All we require is the headers and payload or body. In some cases, we need to generate tokens (based on the needs of an API).<\/p>\n\n\n\n<p>We will declare our HTTP headers i.e. Content-Type and Accept. Accept is not always compulsory as it decides the format in which we will retrieve our response. By default, the response is always JSON.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Declare-HTTP-headers.png\"><img decoding=\"async\" width=\"740\" height=\"346\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Declare-HTTP-headers.png\" alt=\"Declare HTTP headers\" class=\"wp-image-102566\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Declare-HTTP-headers.png 740w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Declare-HTTP-headers-300x140.png 300w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><\/a><\/figure>\n\n\n\n<p>There is no need to mug up the values of these headers as POSTMAN will provide you the suggestions when you type in the text areas of the key and value.<\/p>\n\n\n\n<p>Then, we will move on to the next mandatory section which is Body. Here we will provide the payload in the form of JSON. We are aware of how to write our own JSON, hence we will try to create our own JSON.<\/p>\n\n\n\n<p><strong>Sample Request<\/strong><\/p>\n\n\n\n<p><strong>URL:<\/strong> http:\/\/www.mocky.io\/v2\/5cd6c3f23000004b006061c5<\/p>\n\n\n\n<p><strong>Headers<\/strong><\/p>\n\n\n\n<p>Content-Type : application\/JSON<br>Accept = application\/JSON<\/p>\n\n\n\n<p><strong>Body<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n{\n    &amp;amp;amp;quot;testedby&amp;amp;amp;quot;:\n    {\n        &amp;amp;amp;quot;saket&amp;amp;amp;quot;:\n        {\n            &amp;amp;amp;quot;creator&amp;amp;amp;quot;:\n            {\n                &amp;amp;amp;quot;name&amp;amp;amp;quot;: &amp;amp;amp;quot;Software Testing Help&amp;amp;amp;quot;,\n                &amp;amp;amp;quot;location&amp;amp;amp;quot;:\n                &#x5B;\n                    &amp;amp;amp;quot;Pune&amp;amp;amp;quot;,\n                    &amp;amp;amp;quot;Bangalore&amp;amp;amp;quot;,\n                    &amp;amp;amp;quot;Ranchi&amp;amp;amp;quot;\n                ]\n            }\n        }\n    },\n\n    &amp;amp;amp;quot;booksToRead&amp;amp;amp;quot;:\n    &#x5B;\n        {\n            &amp;amp;amp;quot;title&amp;amp;amp;quot;: &amp;amp;amp;quot;7 habits of highly effective people&amp;amp;amp;quot;,\n            &amp;amp;amp;quot;price&amp;amp;amp;quot;: 120.00\n        },\n\n        {\n            &amp;amp;amp;quot;title2&amp;amp;amp;quot;: &amp;amp;amp;quot;the business of 21st century&amp;amp;amp;quot;,\n            &amp;amp;amp;quot;price2&amp;amp;amp;quot;: 125.00\n        }\n    ]\n}\n<\/pre><\/pre>\n\n\n\n<p><strong>Now Hit It<\/strong><\/p>\n\n\n\n<p>Once you have a complete request, click on the \u201cSend button\u201d and see the response code. A 200 OK code stands for successful operation. In the image below you can see that we have successfully hit the URL.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Successful-Operation.png\"><img decoding=\"async\" width=\"740\" height=\"418\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Successful-Operation.png\" alt=\"Successful Operation\" class=\"wp-image-102567\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Successful-Operation.png 740w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/Successful-Operation-300x169.png 300w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><\/a><\/figure>\n\n\n\n<p><strong>The Next Step<\/strong><\/p>\n\n\n\n<p>Now, we will perform another operation called GET. We will try to fetch the same record that we have just created.<\/p>\n\n\n\n<p>We don\u2019t require a body or payload for the GET operation. As we already have our sample request using the PUT method, all we require is to change the method to GET.<\/p>\n\n\n\n<p>Once we have changed to GET we will hit the service again. As you can see in the below image, we have exactly got what we passed and this is how POSTMAN works.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/GET-same-record.png\"><img decoding=\"async\" width=\"740\" height=\"416\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/GET-same-record.png\" alt=\"GET same record\" class=\"wp-image-102568\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/GET-same-record.png 740w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2019\/09\/GET-same-record-300x169.png 300w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><\/a><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Update: Additional Information<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">What is an API?<\/h3>\n\n\n\n<p>API (Application Programming Interface) is a jar file, which contains several methods and interfaces to perform a particular action.<\/p>\n\n\n\n<p><strong>Refer to the below Example and screenshot:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create a sum method, which adds two variables and returns the sum of two variables.<\/li>\n\n\n\n<li>Then create a calculator class that contains several other methods like addition, subtraction, multiplication, division and so on. There may be some helper classes as well. Now combine all the classes and interfaces and create a jar file called Calculator.jar and then publish it. Use Calculator API to access the methods present inside.<\/li>\n\n\n\n<li>Some APIs are open source (Selenium) which can be edited and some are licensed ones (UFT) which cannot be edited.<\/li>\n<\/ol>\n\n\n\n<p><strong><em>Suggested Read =&gt;<\/em> <a href=\"https:\/\/www.softwaretestinghelp.com\/api-management-tools\/\">Top API Management Tools<\/a><\/strong><\/p>\n\n\n\n<p><strong>How exactly are these methods getting called?<\/strong><\/p>\n\n\n\n<p>Developers will expose an interface, a platform to call the calculator API and we create the object of calculator class and call the sum method or any method.<\/p>\n\n\n\n<p>Suppose this calculator.jar file is created by some company and they use this utility through UI interface, then we test this calculator application using UI and automate it using QTP\/Selenium and this is called Front End Testing.<\/p>\n\n\n\n<p>Some applications don\u2019t have UI, thus in order to access these methods, we create an object of the class and pass on the arguments to test and this is called <a href=\"https:\/\/www.softwaretestinghelp.com\/how-to-perform-backend-testing\/\">Back-End Testing<\/a>. Sending the request and receiving back the response will happen through <a href=\"https:\/\/www.softwaretestinghelp.com\/json-tutorial\/\">JSON<\/a>\/XML files.<\/p>\n\n\n\n<p><strong>Refer to the below diagram:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/1.Sending-the-request-and-receiving-back-response.png\"><img decoding=\"async\" width=\"600\" height=\"463\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/1.Sending-the-request-and-receiving-back-response.png\" alt=\"API\" class=\"wp-image-39984\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/1.Sending-the-request-and-receiving-back-response.png 600w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/1.Sending-the-request-and-receiving-back-response-300x232.png 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">POSTMAN Client<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>POSTMAN is a REST client used for performing backend API testing.<\/li>\n\n\n\n<li>In POSTMAN, we pass the API call and check the API response, status codes and payload.<\/li>\n\n\n\n<li>Swagger is another HTTP Client tool where we create API documentation and through swagger, we can also hit the API and get the response.<\/li>\n\n\n\n<li>Refer the link https:\/\/swagger.io\/<\/li>\n\n\n\n<li>You Can use either Swagger or POSTMAN to test the APIs, and it depends on companies as which client to use.<\/li>\n\n\n\n<li>In POSTMAN mostly we use GET, POST, PUT and DELETE calls.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><span style=\"color: #ff6600;\">How to Download POSTMAN Client?<\/span><\/h4>\n\n\n\n<p>Open Google Chrome and download the POSTMAN app available in the Chrome app store.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/2.download-POSTMAN-app.png\"><img decoding=\"async\" width=\"556\" height=\"287\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/2.download-POSTMAN-app.png\" alt=\"download POSTMAN app\" class=\"wp-image-39985\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/2.download-POSTMAN-app.png 556w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/2.download-POSTMAN-app-300x155.png 300w\" sizes=\"(max-width: 556px) 100vw, 556px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"color: #000000;\">Call REST APIs Using POSTMAN Client<\/span><\/h3>\n\n\n\n<p>In POSTMAN we got many methods but we use only GET, PUT, POST and DELETE<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>POST<\/strong> &#8211; This Call creates a new entity.<\/li>\n\n\n\n<li><strong>GET<\/strong> \u2013 This call sends the request and receives the response.<\/li>\n\n\n\n<li><strong>PUT<\/strong> &#8211; This call creates a new entity and updates the existing entity.<\/li>\n\n\n\n<li><strong>DELETE <\/strong>&#8211; This call deletes the existing entity.<\/li>\n<\/ul>\n\n\n\n<p>API\u2019s can be accessed either by using UI like banking platform or where UI is not available like the backend systems where we use REST API client like POSTMAN.<\/p>\n\n\n\n<p>Other clients are also available like SOAP UI which is a REST and SOAP client, advanced REST clients like <a href=\"https:\/\/www.softwaretestinghelp.com\/jmeter-tutorials\/\">JMeter <\/a>can call the APIs directly from the browser. POSTMAN is the best tool for performing POST and GET operations.<\/p>\n\n\n\n<p><strong><em>Also Read =&gt;<\/em> <a href=\"https:\/\/www.softwaretestinghelp.com\/web-services-api-testing-tool-soapui-tutorial-1\/\">List of In-Depth SoapUI Tutorials<\/a><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/3.Methods-available-in-POSTMAN-client.png\"><img decoding=\"async\" width=\"600\" height=\"399\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/3.Methods-available-in-POSTMAN-client.png\" alt=\"Methods available in POSTMAN client\" class=\"wp-image-39986\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/3.Methods-available-in-POSTMAN-client.png 600w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/3.Methods-available-in-POSTMAN-client-300x200.png 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Send a request and get a response in POSTMAN Client:<\/strong><\/p>\n\n\n\n<p>For testing purpose, we use the API\u2019s provided <a href=\"https:\/\/reqres.in\/\" target=\"_blank\" rel=\"noopener nofollow\">here<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/4.Send-a-request-and-get-a-response-in-POSTMAN-Client.png\"><img decoding=\"async\" width=\"600\" height=\"530\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/4.Send-a-request-and-get-a-response-in-POSTMAN-Client.png\" alt=\"Send a request and get a response in POSTMAN Client\" class=\"wp-image-39987\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/4.Send-a-request-and-get-a-response-in-POSTMAN-Client.png 600w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/4.Send-a-request-and-get-a-response-in-POSTMAN-Client-300x265.png 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/figure>\n\n\n\n<p>Check each CRUD call in the POSTMAN client using the API\u2019s provided by the dummy site.<\/p>\n\n\n\n<p><strong>In API testing we mainly validate the below points:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The response status codes, refer <a href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes\" target=\"_blank\" rel=\"noopener nofollow\">wiki page<\/a> for details.<\/li>\n\n\n\n<li>The response message and the JSON response body.<\/li>\n\n\n\n<li>In API testing, first, ask the developer to give the endpoint URL. See this endpoint URL https:\/\/reqres.in\/.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><span style=\"color: #ff6600;\">#1) GET Call<\/span><\/h4>\n\n\n\n<p><span style=\"color: #000000;\"><strong>Sends the request and receives the response.<\/strong><\/span><\/p>\n\n\n\n<p><strong> Steps for testing REST API:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Pass <strong>https:\/\/reqres.in\/\/api\/users?page=2<\/strong> [? is a query parameter which filters out the result like print all the information of the user in page 2, the query parameter depends upon the developer as how they will define] as URI in the POSTMAN client.<\/li>\n\n\n\n<li>The query parameter is defined by (?) and the path parameter is defined by (\/).<\/li>\n\n\n\n<li>Select the GET method.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/5.-Select-GET-method.png\"><img decoding=\"async\" width=\"631\" height=\"245\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/5.-Select-GET-method.png\" alt=\"5. Select GET method\" class=\"wp-image-39988\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/5.-Select-GET-method.png 631w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/5.-Select-GET-method-300x116.png 300w\" sizes=\"(max-width: 631px) 100vw, 631px\" \/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Provide Headers (if required) like User-Agent: \u201cSoftware\u201d.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/6.-Provide-Headers-if-required-like-User-Agent-Software.png\"><img decoding=\"async\" width=\"588\" height=\"276\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/6.-Provide-Headers-if-required-like-User-Agent-Software.png\" alt=\"Provide Headers (if required) like User-Agent-Software\" class=\"wp-image-39989\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/6.-Provide-Headers-if-required-like-User-Agent-Software.png 588w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/6.-Provide-Headers-if-required-like-User-Agent-Software-300x141.png 300w\" sizes=\"(max-width: 588px) 100vw, 588px\" \/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click on the SEND button.<\/li>\n\n\n\n<li>If API is working fine, in response we get:\n<ul class=\"wp-block-list\">\n<li>Status 200 \u2013 OK, this means that the response is received successfully.<\/li>\n\n\n\n<li>Response JSON Payload.<\/li>\n\n\n\n<li>String Message<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/7.response-received-successfully.png\"><img decoding=\"async\" width=\"650\" height=\"419\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/7.response-received-successfully.png\" alt=\"Response received successfully\" class=\"wp-image-39990\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/7.response-received-successfully.png 650w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/7.response-received-successfully-300x193.png 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Another <span style=\"text-decoration: underline;\"><strong>Example<\/strong><\/span> of the GET METHOD, where we searched for information about a specific user i.e. user id =3. Enter URI = https:\/\/reqres.in\/api\/users\/3<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/8.we-searched-for-information-about-a-specific-user.png\"><img decoding=\"async\" width=\"650\" height=\"356\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/8.we-searched-for-information-about-a-specific-user.png\" alt=\"Search information about a specific user\" class=\"wp-image-39991\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/8.we-searched-for-information-about-a-specific-user.png 650w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/8.we-searched-for-information-about-a-specific-user-300x164.png 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If data is not available against our search, we get blank JSON and 404 status message.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/9.blank-JSON-and-404-status-message.png\"><img decoding=\"async\" width=\"600\" height=\"403\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/9.blank-JSON-and-404-status-message.png\" alt=\"Blank JSON and 404 status message\" class=\"wp-image-39992\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/9.blank-JSON-and-404-status-message.png 600w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/9.blank-JSON-and-404-status-message-300x202.png 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><span style=\"color: #ff6600;\">#2) POST Call<\/span><\/h4>\n\n\n\n<p><span style=\"color: #000000;\"><strong>Create a new user or an entity.<\/strong><\/span><\/p>\n\n\n\n<p><strong>Steps to Execute:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Select a POST from the dropdown and use this service URL \u201chttps:\/\/reqres.in\/api\/users\/100\u201d<br><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/10.Create-a-new-user-or-an-entity.png\"><img decoding=\"async\" class=\"alignnone wp-image-39993 size-full\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/10.Create-a-new-user-or-an-entity.png\" alt=\"10.Create a new user or an entity\" width=\"395\" height=\"38\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/10.Create-a-new-user-or-an-entity.png 395w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/10.Create-a-new-user-or-an-entity-300x29.png 300w\" sizes=\"(max-width: 395px) 100vw, 395px\" \/><\/a><\/li>\n\n\n\n<li>Go to Body &#8211; &gt; select RAW -&gt; As we are passing JSON.<\/li>\n\n\n\n<li>Select JSON from the dropdown and paste the payload script.<\/li>\n\n\n\n<li>Pass this payload {\u201cname\u201d: \u201dMorpheus\u201d, \u201djob\u201d: \u201dleader\u201d}<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/11.-Select-JSON-from-the-dropdown-and-paste-the-payload-script.png\"><img decoding=\"async\" width=\"492\" height=\"161\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/11.-Select-JSON-from-the-dropdown-and-paste-the-payload-script.png\" alt=\"Select JSON from the dropdown\" class=\"wp-image-39994\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/11.-Select-JSON-from-the-dropdown-and-paste-the-payload-script.png 492w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/11.-Select-JSON-from-the-dropdown-and-paste-the-payload-script-300x98.png 300w\" sizes=\"(max-width: 492px) 100vw, 492px\" \/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>JSON starts with curly braces and stores data in the key, value format.<\/li>\n\n\n\n<li>Pass the header content type = application\/json.<\/li>\n\n\n\n<li>Press the SEND button.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/12.-Create-a-new-user-or-an-entity.png\"><img decoding=\"async\" width=\"496\" height=\"249\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/12.-Create-a-new-user-or-an-entity.png\" alt=\"12. Create a new user or an entity\" class=\"wp-image-39995\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/12.-Create-a-new-user-or-an-entity.png 496w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/12.-Create-a-new-user-or-an-entity-300x151.png 300w\" sizes=\"(max-width: 496px) 100vw, 496px\" \/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>On successful request, we get the below response:\n<ul class=\"wp-block-list\">\n<li>Status 201 \u2013 Created, the response is received successfully.<\/li>\n\n\n\n<li>Response Payload<\/li>\n\n\n\n<li>Header<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/13.successful-request.png\"><img decoding=\"async\" width=\"589\" height=\"129\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/13.successful-request.png\" alt=\"New Entity added\" class=\"wp-image-39996\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/13.successful-request.png 589w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/13.successful-request-300x66.png 300w\" sizes=\"(max-width: 589px) 100vw, 589px\" \/><\/a><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><span style=\"color: #ff6600;\">#3) PUT Call<\/span><\/h4>\n\n\n\n<p>Updates or creates a new entity.<\/p>\n\n\n\n<p><strong>Steps to create PUT call:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use this service URL \u201chttps:\/\/reqres.in\/api\/users\/206\u201d and payload {&#8220;name&#8221;: &#8220;Morpheus&#8221;,&#8221;job&#8221;: &#8220;Manager&#8221;<\/li>\n\n\n\n<li>Go to POSTMAN client and select PUT method -&gt; Go to Body &#8211; &gt; Select RAW &gt; pass JSON and select JSON from the dropdown and paste the payload script.<\/li>\n\n\n\n<li>JSON starts with curly braces and stores data in the key-value format.<\/li>\n\n\n\n<li>Press the SEND button, for a successful request, you will get the below response.\n<ul class=\"wp-block-list\">\n<li>Status 200 \u2013 Ok, the response is received successfully.<\/li>\n\n\n\n<li>Response Payload<\/li>\n\n\n\n<li>Header<\/li>\n\n\n\n<li>Job updated to \u201cmanager\u201d<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"600\" height=\"255\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/14.Updates-or-creates-a-new-entity.png\" alt=\"Updates or creates a new entity\" class=\"wp-image-39997\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/14.Updates-or-creates-a-new-entity.png 600w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/14.Updates-or-creates-a-new-entity-300x128.png 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><span style=\"color: #ff6600;\">#4) Delete Call<\/span><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Delete the user, use this service URL \u201c\/api\/users\/423\u201d and this payload {&#8220;name&#8221;: &#8220;Naveen&#8221;,&#8221;job&#8221;: &#8220;QA&#8221;}.<\/li>\n\n\n\n<li>Go to POSTMAN and select DELETE method, payload not required.<\/li>\n\n\n\n<li>Deletes user id =423 if available in the system.\n<ul class=\"wp-block-list\">\n<li>Status 204 \u2013 No Content, the response received successfully.<\/li>\n\n\n\n<li>No Payload received, user id deleted.<\/li>\n\n\n\n<li>Header<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/15.Delete-the-user.png\"><img decoding=\"async\" width=\"600\" height=\"163\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/15.Delete-the-user.png\" alt=\"15.Delete the user\" class=\"wp-image-39998\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/15.Delete-the-user.png 600w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/10\/15.Delete-the-user-300x82.png 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Challenges in API Testing<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Test cases should be designed in such a way that it should cover test coverage.<\/li>\n\n\n\n<li>Designing test cases are simple when the API carries fewer parameters but the complexity increases when the number of parameters is large.<\/li>\n\n\n\n<li>Regularly update your test coverage with a change in the business requirement. If a new parameter is added increase the test harness suite<\/li>\n\n\n\n<li>Sequencing API calls properly.<\/li>\n\n\n\n<li>Explore boundary conditions and performance.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>In this tutorial, we discussed the important pointers to get started with the Postman API testing tool. We learned to install the Postman tool as a standalone application and discussed how we can go about creating a simple request and look at the response generated.<\/p>\n\n\n\n<p>We saw how to navigate to the different parts of the response information as well as how to review and retrieve the requests from the history tab.<\/p>\n\n\n\n<p>We believe that by now, you can carry out a successful operation on an API. Successful operation on an API does not mean copy and paste of the entire body, headers, and other necessary blocks and making the test execution successful.<\/p>\n\n\n\n<p>It\u2019s about how comfortable you are in writing your own JSON, navigating to any particular field in a JSON with the help of the document key or params, understanding arrays in JSON, etc.<\/p>\n\n\n\n<p>POSTMAN client tool is used for performing back-end testing and mainly to perform GET, PUT, POST, DELETE calls.<\/p>\n\n\n\n<p>From this tutorial, we learned how to hit the calls from the POSTMAN client and how to validate the response which we get back from the server and also covered the challenges in API testing.<\/p>\n\n\n\n<p>API testing is very important to find loopholes in APIs as hackers will exploit them and cause financial losses. API testing seems simple but we should be very cautious and try testing with every possible combination.<\/p>\n\n\n\n<p><em><strong>In our upcoming tutorial, we will learn how to use the Postman tool for Diff API Formats!<\/strong><\/em><\/p>\n\n\n\n<p><strong><a href=\"https:\/\/www.softwaretestinghelp.com\/asp-net-and-web-api-interview-questions\/\">PREV Tutorial<\/a> | <a href=\"https:\/\/www.softwaretestinghelp.com\/how-to-use-postman\/\">NEXT Tutorial<\/a><\/strong><\/p>\n\r\n\t\t\t<div id=\"daexthefup-container\"\r\n\t\t\t\tclass=\"daexthefup-container daexthefup-layout-stacked daexthefup-alignment-center\"\r\n\t\t\t\tdata-post-id=\"102544\">\r\n\r\n\t\t\t\t<div class=\"daexthefup-feedback\">\r\n\t\t\t\t\t<div class=\"daexthefup-text\">\r\n\t\t\t\t\t\t<h3 class=\"daexthefup-title\">Was this helpful?<\/h3>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"daexthefup-buttons-container\">\r\n\t\t\t\t\t\t<div class=\"daexthefup-buttons\">\r\n\t\t\t\t\t\t\t\r\n\t\t\t<div class=\"daexthefup-yes daexthefup-button daexthefup-button-type-icon\" data-value=\"1\">\r\n\t\t\t\t\r\n                <svg>\r\n                    <defs>\r\n                        <style>.thumb-up-cls-1{fill:#c9c9c9;}.thumb-up-cls-2{fill:#e1e1e1;}.thumb-up-cls-3{fill:#676767;}<\/style>\r\n                    <\/defs>\r\n                    <g id=\"thumb_up\">\r\n                        <path class=\"thumb-up-cls-2 daexthefup-icon-circle\" d=\"m24,3c11.58,0,21,9.42,21,21s-9.42,21-21,21S3,35.58,3,24,12.42,3,24,3m0-1C11.85,2,2,11.85,2,24s9.85,22,22,22,22-9.85,22-22S36.15,2,24,2h0Z\" \/>\r\n                        <g>\r\n                            <rect class=\"thumb-up-cls-3 daexthefup-icon-secondary-color\" x=\"10\" y=\"20\" width=\"6\" height=\"15\" rx=\"1.5\" ry=\"1.5\" \/>\r\n                            <path class=\"thumb-up-cls-1 daexthefup-icon-primary-color\" d=\"m30.57,9.06l-.49-.1c-.81-.17-1.61.35-1.78,1.16l-5.3,11.74c-.17.81,3.16,1.61,3.97,1.78l1.96.41c.81.17,1.61-.35,1.78-1.16l2.18-10.27c.34-1.61-.7-3.21-2.31-3.56Z\" \/>\r\n                            <path class=\"thumb-up-cls-1 daexthefup-icon-primary-color\" d=\"m38.17,20h-18.67c-.83,0-1.5.67-1.5,1.5v12c0,.83.67,1.5,1.5,1.5h16.27c.71,0,1.33-.5,1.47-1.21l2.4-12c.19-.93-.53-1.8-1.47-1.8Z\" \/>\r\n                        <\/g>\r\n                    <\/g>\r\n                <\/svg>\t\t\t<\/div>\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t<div class=\"daexthefup-no daexthefup-button daexthefup-button-type-icon\" data-value=\"0\">\r\n\t\t\t\t\r\n                <svg>\r\n                    <defs>\r\n                        <style>.thumb-down-cls-1{fill:#c9c9c9;}.thumb-down-cls-2{fill:#e1e1e1;}.thumb-down-cls-3{fill:#676767;}<\/style>\r\n                    <\/defs>\r\n                    <g id=\"thumb_down\">\r\n                        <path class=\"thumb-down-cls-2 daexthefup-icon-circle\" d=\"m24,3c11.58,0,21,9.42,21,21s-9.42,21-21,21S3,35.58,3,24,12.42,3,24,3m0-1C11.85,2,2,11.85,2,24s9.85,22,22,22,22-9.85,22-22S36.15,2,24,2h0Z\" \/>\r\n                        <g>\r\n                            <rect class=\"thumb-down-cls-3 daexthefup-icon-secondary-color\" x=\"10\" y=\"13\" width=\"6\" height=\"15\" rx=\"1.5\" ry=\"1.5\" \/>\r\n                            <path class=\"thumb-down-cls-1 daexthefup-icon-primary-color\" d=\"m30.57,38.94l-.49.1c-.81.17-1.61-.35-1.78-1.16l-5.3-11.74c-.17-.81,3.16-1.61,3.97-1.78l1.96-.41c.81-.17,1.61.35,1.78,1.16l2.18,10.27c.34,1.61-.7,3.21-2.31,3.56Z\" \/>\r\n                            <path class=\"thumb-down-cls-1 daexthefup-icon-primary-color\" d=\"m38.17,28h-18.67c-.83,0-1.5-.67-1.5-1.5v-12c0-.83.67-1.5,1.5-1.5h16.27c.71,0,1.33.5,1.47,1.21l2.4,12c.19.93-.53,1.8-1.47,1.8Z\" \/>\r\n                        <\/g>\r\n                    <\/g>\r\n                <\/svg>\t\t\t<\/div>\r\n\r\n\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t\t<div class=\"daexthefup-comment\">\r\n\t\t\t\t\t<div class=\"daexthefup-comment-top-container\">\r\n\t\t\t\t\t\t<label id=\"daexthefup-comment-label\" class=\"daexthefup-comment-label\"><\/label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"daexthefup-comment-character-counter-container\">\r\n\t\t\t\t\t\t\t\t<div id=\"daexthefup-comment-character-counter-number\"\r\n\t\t\t\t\t\t\t\t\tclass=\"daexthefup-comment-character-counter-number\"><\/div>\r\n\t\t\t\t\t\t\t\t<div class=\"daexthefup-comment-character-counter-text\"><\/div>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<textarea id=\"daexthefup-comment-textarea\" class=\"daexthefup-comment-textarea\"\r\n\t\t\t\t\t\t\t\tplaceholder=\"Type your message\"\r\n\t\t\t\t\t\t\t\tmaxlength=\"\r\n\t\t\t\t\t\t\t\t400\t\t\t\t\t\t\t\t\t\"><\/textarea>\r\n\t\t\t\t\t<div class=\"daexthefup-comment-buttons-container\">\r\n\t\t\t\t\t\t<button class=\"daexthefup-comment-submit daexthefup-button\">Submit<\/button>\r\n\t\t\t\t\t\t<button class=\"daexthefup-comment-cancel daexthefup-button\">Cancel<\/button>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t\t<div class=\"daexthefup-successful-submission-text\">Thanks for your feedback!<\/div>\r\n\r\n\t\t\t<\/div>\r\n\r\n\t\t\t","protected":false},"excerpt":{"rendered":"<p>This Step By Step Tutorial Explains API Testing Using POSTMAN Including Basics of POSTMAN, Its Components and Sample Request and Response: We had a look at the most commonly asked ASP.Net and Web API Interview Questions in our previous tutorial. By going through this tutorial, you will learn how we &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"POSTMAN Tutorial: API Testing Using POSTMAN\" class=\"read-more button\" href=\"https:\/\/www.softwaretestinghelp.com\/api-testing-using-postman\/#more-102544\" aria-label=\"Read more about POSTMAN Tutorial: API Testing Using POSTMAN\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":105358,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_helpful_pro_status":1,"footnotes":""},"categories":[543],"tags":[],"class_list":{"0":"post-102544","1":"page","2":"type-page","3":"status-publish","4":"has-post-thumbnail","6":"category-api-testing"},"acf":[],"_links":{"self":[{"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/pages\/102544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/comments?post=102544"}],"version-history":[{"count":0,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/pages\/102544\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/media\/105358"}],"wp:attachment":[{"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/media?parent=102544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/categories?post=102544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/tags?post=102544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}