{"id":1923,"date":"2022-06-17T06:00:23","date_gmt":"2022-06-17T06:00:23","guid":{"rendered":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/2022\/06\/17\/clone-of-api-basics-and-architecture\/"},"modified":"2022-06-19T16:16:03","modified_gmt":"2022-06-19T16:16:03","slug":"getting-started-with-postman","status":"publish","type":"post","link":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/2022\/06\/17\/getting-started-with-postman\/","title":{"rendered":"Getting started with Postman"},"content":{"rendered":"<h3 id=\"t-1655535159816\"><b><u>Getting started with Postman<\/u><\/b>&nbsp;<\/h3>\n<p>Welcome you all to the brand new \u2018API Testing\u2019 blog series! In the previous blog, we had learned about the basics of REST API architectural elements. In this tutorial, we will start with Postman!! So let us begin!!!&nbsp;<\/p>\n<h3 id=\"t-1608133326002\"><b>2. What you will Learn in this blog?<\/b><\/h3>\n<ul>\n<li>Why do we use Postman?<\/li>\n<li>Setup Postman on our local machine<\/li>\n<li>Launch Postman<\/li>\n<li>Create account on Postman (local workspace)<\/li>\n<li>Create new workspace<\/li>\n<\/ul>\n<h3 id=\"t-1655535159817\"><b>3. <b><u>Why do we use Postman<\/u><\/b>?<\/b><\/h3>\n<p>In a typical software testing of a website, we start with writing the manual test cases and then execute these test cases manually. Later we automate and execute them as part of automation regression suite. &nbsp;<\/p>\n<p>Same thing is applicable for API testing as well. We use Postman tool to execute API test cases manually. Later we automate the test cases using Rest Assured + Java. Postman makes it very easy to execute the API test cases manually.<\/p>\n<p>As a best practice, we should not directly code our test cases. Instead, we should first execute the API test cases manually using Postman. Once we have stable manual test cases with test data, we should then automate the API test cases using Rest Assured. The below diagram is self-explanatory &nbsp;&nbsp;<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2099\" width=\"554\" data-init-width=\"300\" height=\"164\" data-init-height=\"89\" title=\"Image 1\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-1-3-300x89.jpg\" data-width=\"554\" data-height=\"164\" style=\"\"><\/span><\/p>\n<h3 id=\"t-1655535159818\"><b>4. <b><b>Setup Postman on our local machine<\/b><\/b><\/b><\/h3>\n<p>To setup Postman, launch <a href=\"https:\/\/www.postman.com\/downloads\/\" style=\"outline: none;\" target=\"_blank\" rel=\"noopener\">https:\/\/www.postman.com\/downloads\/<\/a><\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2100\" width=\"499\" data-init-width=\"296\" height=\"506\" data-init-height=\"300\" title=\"Image 2\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-2-3-296x300.jpg\" data-width=\"499\" data-height=\"506\" style=\"\"><\/span><\/p>\n<p>Download Windows 64-bit version exe file (if you have mac machine, mac OS link will automatically be seen in the above page)<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2101\" width=\"421\" data-init-width=\"192\" height=\"57\" data-init-height=\"26\" title=\"Image 3\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-3-3.jpg\" data-width=\"421\" data-height=\"57\" style=\"\"><\/span><\/p>\n<p>Do not try the web version since it has less features as compared to windows OS file.<\/p>\n<p>Install the above setup file to complete the postman app installation on your local machine.<\/p>\n<h3 id=\"t-1655535159819\"><b>5. <b><b><b>Launch Postman<\/b><\/b><\/b><\/b><\/h3>\n<p>After the installation, let us launch the Postman app. The below default window should come up<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2102\" width=\"516\" data-init-width=\"300\" height=\"461\" data-init-height=\"268\" title=\"Image 4\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-4-3-300x268.jpg\" data-width=\"516\" data-height=\"461\" style=\"\"><\/span><\/p>\n<p>Let us skip the postman app account creation as of now. Click \u2018Skip and go to the app\u2019 link, the default UI would come up as shown below<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2103\" width=\"521\" data-init-width=\"300\" height=\"217\" data-init-height=\"125\" title=\"Image 5\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-5-3-300x125.jpg\" data-width=\"521\" data-height=\"217\" style=\"\"><\/span><\/p>\n<p>On the left hand side, under Scratch Pad, we can see Collections, APIs, Environments etc.<\/p>\n<p>In the top menu, click Workspaces, the below pop-up would come up<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2104\" width=\"444\" data-init-width=\"215\" height=\"620\" data-init-height=\"300\" title=\"Image 6\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-6-3-215x300.jpg\" data-width=\"444\" data-height=\"620\" style=\"\"><\/span><\/p>\n<p>Right now, we do not have any workspace since we have not yet created the postman account.<\/p>\n<p>See below diagram. In the middle section, we can see that postman is recommending us to switch to a workspace. The reason being, we are currently working on the local app and we have not yet created the postman account &nbsp;<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2105\" width=\"539\" data-init-width=\"300\" height=\"117\" data-init-height=\"65\" title=\"Image 7\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-7-3-300x65.jpg\" data-width=\"539\" data-height=\"117\" style=\"\"><\/span><\/p>\n<p>It is always better to create a postman account (local workspace). This way, postman will automatically backup our data. So let us create postman account in next section.<\/p>\n<h3 id=\"t-1655535159820\"><b>6. <b><b><b><b>Create account on Postman (local workspace)<\/b><\/b><\/b><\/b><\/b><\/h3>\n<p>Click \u2018Create Account\u2019 (as shown in above diagram). Notice the message that is shown in postman app. It is asking us to create account via web browser<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2106\" width=\"553\" data-init-width=\"300\" height=\"275\" data-init-height=\"149\" title=\"Image 8\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-8-3-300x149.jpg\" data-width=\"553\" data-height=\"275\" style=\"\"><\/span><\/p>\n<p>The browser is launched automatically as shown below<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2107\" width=\"535\" data-init-width=\"300\" height=\"360\" data-init-height=\"202\" title=\"Image 9\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-9-3-300x202.jpg\" data-width=\"535\" data-height=\"360\" style=\"\"><\/span><\/p>\n<p>You can either create a free account or sign in using your google account.<\/p>\n<p>Let us sign in using google account, the below popup would be shown<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2108\" width=\"536\" data-init-width=\"300\" height=\"186\" data-init-height=\"104\" title=\"Image 10\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-10-3-300x104.jpg\" data-width=\"536\" data-height=\"186\" style=\"\"><\/span><\/p>\n<p>Click \u2018Open Postman\u2019 to switch back to Desktop Postman app. Notice below that we can see the account through which we logged in<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2109\" width=\"529\" data-init-width=\"300\" height=\"473\" data-init-height=\"268\" title=\"Image 11\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-11-3-300x268.jpg\" data-width=\"529\" data-height=\"473\" style=\"\"><\/span>Click Workspaces menu. Notice that the default workspace \u2018My Workspace\u2019 got created as shown below<span><img decoding=\"async\" alt=\"\" data-id=\"2110\" width=\"534\" data-init-width=\"300\" height=\"219\" data-init-height=\"123\" title=\"Image 12\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-12-3-300x123.jpg\" data-width=\"534\" data-height=\"219\" style=\"\"><\/span><\/p>\n<h3 id=\"t-1655535159821\"><b>7. <b><b><b><b><b>Create new workspace<\/b><\/b><\/b><\/b><\/b><\/b><\/h3>\n<p>Let us create a new workspace by clicking \u2018Create Workspace\u2019<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2113\" width=\"540\" data-init-width=\"300\" height=\"218\" data-init-height=\"121\" title=\"Image 13\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-13-3-300x121.jpg\" data-width=\"540\" data-height=\"218\" style=\"\"><\/span><\/p>\n<p>Enter desired worspace \u2018Name\u2019, select \u2018Personal\u2019 under Visibility and create a workpsace<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2114\" width=\"448\" data-init-width=\"230\" height=\"584\" data-init-height=\"300\" title=\"Image 14\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-14-3-230x300.jpg\" data-width=\"448\" data-height=\"584\" style=\"\"><\/span><\/p>\n<p>Notice below that new workspace got created<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2115\" width=\"519\" data-init-width=\"300\" height=\"232\" data-init-height=\"134\" title=\"Image 15\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-15-3-300x134.jpg\" data-width=\"519\" data-height=\"232\" style=\"\"><\/span><span><img decoding=\"async\" alt=\"\" data-id=\"2116\" width=\"537\" data-init-width=\"300\" height=\"204\" data-init-height=\"114\" title=\"Image 16\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-16-2-300x114.jpg\" data-width=\"537\" data-height=\"204\" style=\"\"><\/span><\/p>\n<p>In the next blog, we will see how to hit and execute API requests using postman.<\/p>\n<p>Thank you for reading!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Getting started with Postman&nbsp; Welcome you all to the brand new \u2018API Testing\u2019 blog series! In the previous blog, we had learned about the basics of REST API architectural elements. In this tutorial, we will start with Postman!! So let us begin!!!&nbsp; 2. What you will Learn in this blog? Why do we use Postman? [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2293,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1923","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","post-wrapper","thrv_wrapper"],"_links":{"self":[{"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1923","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=1923"}],"version-history":[{"count":12,"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1923\/revisions"}],"predecessor-version":[{"id":2303,"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1923\/revisions\/2303"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/media\/2293"}],"wp:attachment":[{"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=1923"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=1923"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=1923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}