{"id":6864,"date":"2021-07-09T11:19:21","date_gmt":"2021-07-09T05:49:21","guid":{"rendered":"https:\/\/www.innovationm.com\/blog\/?p=6864"},"modified":"2021-07-09T11:21:52","modified_gmt":"2021-07-09T05:51:52","slug":"create-tests-in-postman","status":"publish","type":"post","link":"https:\/\/www.innovationm.com\/blog\/create-tests-in-postman\/","title":{"rendered":"Create Tests in Postman"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p><b>Postman<\/b><span style=\"font-weight: 400;\"> is an API client that helps to create, share, test, and document APIs.\u00a0 <\/span><span style=\"font-weight: 400;\">This is done by allowing users to create and save HTTP requests and their responses. <\/span><span style=\"font-weight: 400;\">An overview of a simple request in Postman would look something like this<\/span><\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-6865 size-full\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-3.png\" alt=\"pasted image 0 (3)\" width=\"947\" height=\"304\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-3.png 947w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-3-300x96.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-3-768x247.png 768w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-3-624x200.png 624w\" sizes=\"(max-width: 947px) 100vw, 947px\" \/><\/p>\n<h2><b>Where it has<\/b><\/h2>\n<ul>\n<li><strong>Request URL<\/strong><\/li>\n<li><strong>Parameters<\/strong><\/li>\n<li><strong>Authorization\u00a0<\/strong><\/li>\n<li><strong>Request Headers<\/strong><\/li>\n<li><strong>Request Body<\/strong><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">&amp; the response would look like this<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-6866 size-full\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-4.png\" alt=\"\" width=\"947\" height=\"222\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-4.png 947w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-4-300x70.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-4-768x180.png 768w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-4-624x146.png 624w\" sizes=\"(max-width: 947px) 100vw, 947px\" \/><\/p>\n<h2><b>Where it has<\/b><\/h2>\n<ul>\n<li><strong>Response Body<\/strong><\/li>\n<li><strong>Response Headers<\/strong><\/li>\n<li><strong>Response Status Code<\/strong><\/li>\n<li><strong>Response Time\u00a0<\/strong><\/li>\n<li><strong>Response Size etc<\/strong><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">All these fields need to be tested out but manually verifying each and every entity when there are a bunch of requests, could lead to human error sometimes. Hence for obvious reasons, tests can be created using Postman to verify most of the things in an API.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">For example, When a request is made, the Response status code is always the first thing that is checked when testing APIs, so instead of checking every time which status code the request throws, we can add a test that will check if the response code is correct.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The same thing can be applied to various other aspects as well, to verify the JSON Schema, to check Response Code, to check Response Time, to check Response Body, etc.<\/span><\/p>\n<h3><b>Here is one simple example of a test to check status code and how to create it-\u00a0<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Simply go to the section named Tests and add the following snippet<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-6867 size-full\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/unnamed-5.png\" alt=\"\" width=\"512\" height=\"258\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/unnamed-5.png 512w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/unnamed-5-300x151.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">This test here is expecting Request to return 200 status code. If it does so, this test would mark itself as Pass in the Test Results section.<\/span><\/p>\n<p><strong>Else it would be marked as a failed test case.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-6868 size-full\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/unnamed-6.png\" alt=\"\" width=\"512\" height=\"160\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/unnamed-6.png 512w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/unnamed-6-300x94.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/p>\n<p><strong>Like this N number of tests can be created for a request.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-6869 size-full\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-5.png\" alt=\"\" width=\"941\" height=\"449\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-5.png 941w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-5-300x143.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-5-768x366.png 768w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-5-624x298.png 624w\" sizes=\"(max-width: 941px) 100vw, 941px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">All sorts of tests can be created using simple code snippets already present in postman(Column named snippets) with very few changes.<\/span><\/p>\n<p><b>For Example:\u00a0<\/b><\/p>\n<p><strong>For JSON Schema, we simply have to fetch the schema of the response.<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">Next, we have to store that schema in a variable in the Tests column itself and then it can be used in the assert statements as in the image attached above.<\/span><\/p>\n<p><b>Var schema = {<\/b><\/p>\n<p><b>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0json schema as in the image below<\/b><\/p>\n<p><b>\u00a0\u00a0};<\/b><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-6872 size-full\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-8.png\" alt=\"\" width=\"569\" height=\"307\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-8.png 569w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-8-300x162.png 300w\" sizes=\"(max-width: 569px) 100vw, 569px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">For JSON Body, instead of putting hard-coded values every time in the test, a pre-request Script can be created for fields to be used in the request.<\/span><\/p>\n<p><strong>For example, here\u2019s a sample of the request body<\/strong><\/p>\n<p><b>{<\/b><\/p>\n<p><b>\u201cname\u201d: \u201ctestName\u201d,<\/b><\/p>\n<p><b>\u201cEmail\u201d: \u201ctestEmail\u201d<\/b><\/p>\n<p><b>}<\/b><\/p>\n<p><span style=\"font-weight: 400;\">If we were to write a test to verify that the given <\/span><b>email <\/b><span style=\"font-weight: 400;\">is present in the response body or not. A general test could something be like\u00a0<\/span><\/p>\n<h3><b>pm.expect(expected, actual)\u00a0<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Where expected would be \u201ctestEmail\u201d and the actual would be the one we get in the response.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">So to minimize the effort to change values at multiple places, we could create a variable using a pre-request script, where all those values which we need to change will have one variable each.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In our case, we can create a variable email and then store whatever value we want in there. To do this, Postman provides code snippets as<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-6870 size-full\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-6.png\" alt=\"\" width=\"689\" height=\"290\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-6.png 689w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-6-300x126.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-6-624x263.png 624w\" sizes=\"(max-width: 689px) 100vw, 689px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Now in the request body section, instead of writing it as\u00a0<\/span><\/p>\n<p><b>{<\/b><\/p>\n<p><b>\u201cname\u201d: \u201ctestName\u201d,<\/b><\/p>\n<p><b>\u201cEmail\u201d: \u201ctestEmail\u201d<\/b><\/p>\n<p><b>}<\/b><\/p>\n<p><span style=\"font-weight: 400;\">We can write<\/span><\/p>\n<p><b>{<\/b><\/p>\n<p><b>\u201cName\u201d:\u00a0 \u201c{{Name}}\u201d,<\/b><\/p>\n<p><b>\u201cEmail\u201d:\u00a0 \u201c{{email}}\u201d<\/b><\/p>\n<p><b>}<\/b><\/p>\n<p><span style=\"font-weight: 400;\">As for the test, everything will remain the same except for the value expected.<\/span><\/p>\n<h3><b>pm.expect(expected, actual)<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Expected would be written as {{email}}<\/span><\/p>\n<p><span style=\"font-weight: 400;\">With this approach, we won\u2019t have to change the value of the expected result in every iteration.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Now to elaborate on where it is useful, it can be used in a number of situations, when a large collection of Requests is run via Collection Runner, or multiple parameters need to be checked which could be complex and hard to read every time after a call.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Also in the case of schema validation, it can be hard to verify the whole schema manually when an abundance of information is present in the response body.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In collection Runner, to reduce the monotonous work of checking every response code, body parameters, headers, etc we add tests and Postman simply shows us a summarized report as<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-6871 size-full\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-7.png\" alt=\"\" width=\"981\" height=\"537\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-7.png 981w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-7-300x164.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-7-768x420.png 768w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/pasted-image-0-7-624x342.png 624w\" sizes=\"(max-width: 981px) 100vw, 981px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Postman is an API client that helps to create, share, test, and document APIs.\u00a0 This is done by allowing users to create and save HTTP requests and their responses. An overview of a simple request in Postman would look something like this Where it has Request URL Parameters Authorization\u00a0 Request Headers Request Body &amp; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6874,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[661],"tags":[674,673,676,675],"class_list":["post-6864","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-testing","tag-api-testing-with-postman","tag-automate-api-testing-with-postman","tag-automated-api-testing-postman","tag-create-tests-in-postman"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Create Tests in Postman - API Testing<\/title>\n<meta name=\"description\" content=\"To set up an automated testing pipeline for your API tests, you will need to create an environment in Postman.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.innovationm.com\/blog\/create-tests-in-postman\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create Tests in Postman - API Testing\" \/>\n<meta property=\"og:description\" content=\"To set up an automated testing pipeline for your API tests, you will need to create an environment in Postman.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.innovationm.com\/blog\/create-tests-in-postman\/\" \/>\n<meta property=\"og:site_name\" content=\"InnovationM - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-09T05:49:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-09T05:51:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/Postman.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"InnovationM Admin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InnovationM Admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/create-tests-in-postman\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/create-tests-in-postman\\\/\"},\"author\":{\"name\":\"InnovationM Admin\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#\\\/schema\\\/person\\\/a831bf4602d69d1fa452e3de0c8862ed\"},\"headline\":\"Create Tests in Postman\",\"datePublished\":\"2021-07-09T05:49:21+00:00\",\"dateModified\":\"2021-07-09T05:51:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/create-tests-in-postman\\\/\"},\"wordCount\":679,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/create-tests-in-postman\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/Postman.png\",\"keywords\":[\"API Testing With Postman\",\"Automate API Testing With Postman\",\"Automated API Testing - Postman\",\"Create Tests in Postman\"],\"articleSection\":[\"Testing\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/create-tests-in-postman\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/create-tests-in-postman\\\/\",\"url\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/create-tests-in-postman\\\/\",\"name\":\"Create Tests in Postman - API Testing\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/create-tests-in-postman\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/create-tests-in-postman\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/Postman.png\",\"datePublished\":\"2021-07-09T05:49:21+00:00\",\"dateModified\":\"2021-07-09T05:51:52+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#\\\/schema\\\/person\\\/a831bf4602d69d1fa452e3de0c8862ed\"},\"description\":\"To set up an automated testing pipeline for your API tests, you will need to create an environment in Postman.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/create-tests-in-postman\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/create-tests-in-postman\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/create-tests-in-postman\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/Postman.png\",\"contentUrl\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/Postman.png\",\"width\":1200,\"height\":628},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/create-tests-in-postman\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Tests in Postman\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/\",\"name\":\"InnovationM - Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#\\\/schema\\\/person\\\/a831bf4602d69d1fa452e3de0c8862ed\",\"name\":\"InnovationM Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g\",\"caption\":\"InnovationM Admin\"},\"sameAs\":[\"http:\\\/\\\/www.innovationm.com\\\/\"],\"url\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/author\\\/innovationmadmin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create Tests in Postman - API Testing","description":"To set up an automated testing pipeline for your API tests, you will need to create an environment in Postman.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.innovationm.com\/blog\/create-tests-in-postman\/","og_locale":"en_US","og_type":"article","og_title":"Create Tests in Postman - API Testing","og_description":"To set up an automated testing pipeline for your API tests, you will need to create an environment in Postman.","og_url":"https:\/\/www.innovationm.com\/blog\/create-tests-in-postman\/","og_site_name":"InnovationM - Blog","article_published_time":"2021-07-09T05:49:21+00:00","article_modified_time":"2021-07-09T05:51:52+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/Postman.png","type":"image\/png"}],"author":"InnovationM Admin","twitter_misc":{"Written by":"InnovationM Admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.innovationm.com\/blog\/create-tests-in-postman\/#article","isPartOf":{"@id":"https:\/\/www.innovationm.com\/blog\/create-tests-in-postman\/"},"author":{"name":"InnovationM Admin","@id":"https:\/\/www.innovationm.com\/blog\/#\/schema\/person\/a831bf4602d69d1fa452e3de0c8862ed"},"headline":"Create Tests in Postman","datePublished":"2021-07-09T05:49:21+00:00","dateModified":"2021-07-09T05:51:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.innovationm.com\/blog\/create-tests-in-postman\/"},"wordCount":679,"commentCount":0,"image":{"@id":"https:\/\/www.innovationm.com\/blog\/create-tests-in-postman\/#primaryimage"},"thumbnailUrl":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/Postman.png","keywords":["API Testing With Postman","Automate API Testing With Postman","Automated API Testing - Postman","Create Tests in Postman"],"articleSection":["Testing"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.innovationm.com\/blog\/create-tests-in-postman\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.innovationm.com\/blog\/create-tests-in-postman\/","url":"https:\/\/www.innovationm.com\/blog\/create-tests-in-postman\/","name":"Create Tests in Postman - API Testing","isPartOf":{"@id":"https:\/\/www.innovationm.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.innovationm.com\/blog\/create-tests-in-postman\/#primaryimage"},"image":{"@id":"https:\/\/www.innovationm.com\/blog\/create-tests-in-postman\/#primaryimage"},"thumbnailUrl":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/Postman.png","datePublished":"2021-07-09T05:49:21+00:00","dateModified":"2021-07-09T05:51:52+00:00","author":{"@id":"https:\/\/www.innovationm.com\/blog\/#\/schema\/person\/a831bf4602d69d1fa452e3de0c8862ed"},"description":"To set up an automated testing pipeline for your API tests, you will need to create an environment in Postman.","breadcrumb":{"@id":"https:\/\/www.innovationm.com\/blog\/create-tests-in-postman\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.innovationm.com\/blog\/create-tests-in-postman\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.innovationm.com\/blog\/create-tests-in-postman\/#primaryimage","url":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/Postman.png","contentUrl":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/07\/Postman.png","width":1200,"height":628},{"@type":"BreadcrumbList","@id":"https:\/\/www.innovationm.com\/blog\/create-tests-in-postman\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.innovationm.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Create Tests in Postman"}]},{"@type":"WebSite","@id":"https:\/\/www.innovationm.com\/blog\/#website","url":"https:\/\/www.innovationm.com\/blog\/","name":"InnovationM - Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.innovationm.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.innovationm.com\/blog\/#\/schema\/person\/a831bf4602d69d1fa452e3de0c8862ed","name":"InnovationM Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g","caption":"InnovationM Admin"},"sameAs":["http:\/\/www.innovationm.com\/"],"url":"https:\/\/www.innovationm.com\/blog\/author\/innovationmadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/posts\/6864","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/comments?post=6864"}],"version-history":[{"count":0,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/posts\/6864\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/media\/6874"}],"wp:attachment":[{"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/media?parent=6864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/categories?post=6864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/tags?post=6864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}