{"id":947,"date":"2019-12-06T14:53:47","date_gmt":"2019-12-06T09:23:47","guid":{"rendered":"http:\/\/http:\/\/artoftesting.com\/\/?p=947"},"modified":"2023-04-29T20:13:30","modified_gmt":"2023-04-29T14:43:30","slug":"mongodbautomation","status":"publish","type":"post","link":"https:\/\/artoftesting.com\/mongodbautomation","title":{"rendered":"Connect to MongoDB in Java"},"content":{"rendered":"\n<p>MongoDB is an open-source, NoSQL database that stores data in the form of documents. Being a NoSQL database, it is not relational and does not comply with ACID properties &#8211; Atomicity, Consistency, Isolation, and Durability.<br><br><\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_73 counter-flat ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">Content<\/p>\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/artoftesting.com\/mongodbautomation\/#MongoDB_Driver\" title=\"MongoDB Driver\">MongoDB Driver<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/artoftesting.com\/mongodbautomation\/#MongoDB_Automation_with_Java\" title=\"MongoDB Automation with Java\">MongoDB Automation with Java<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/artoftesting.com\/mongodbautomation\/#Code_snippet\" title=\"Code snippet\">Code snippet<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"MongoDB_Driver\"><\/span>MongoDB Driver<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>For connecting to MongoDB, we need a MongoDB java driver. The Java driver can be downloaded from&nbsp;<a href=\"https:\/\/mongodb.github.io\/mongo-java-driver\/\">here<\/a>.&nbsp;It is required to be added to the classpath or as a dependency in your maven project&#8217;s POM file.<br><br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"MongoDB_Automation_with_Java\"><\/span>MongoDB Automation with Java<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>First, we will connect to the MongoClient using the below line of code.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: java; gutter: false; title: ; notranslate\" title=\"\">\nMongoClient mongoClient = new MongoClient( &quot;localhost&quot; , 27017);\n<\/pre><\/div>\n\n\n<p><br>Then we will select the DB and collection, we want to query on.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: java; title: ; notranslate\" title=\"\">\nDB db = mongoClient.getDB(&quot;dbName&quot;);\nDBCollection dbCollection = db.getCollection(&quot;collectionName&quot;);\n<\/pre><\/div>\n\n\n<p><br>After that, we will create a search query and fire it to get the DBCursor object.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nBasicDBObject searchQuery = new BasicDBObject();\nsearchQuery.put(&quot;key&quot;, &quot;value&quot;);\nDBCursor cursor = dbCollection.find(searchQuery);\n<\/pre><\/div>\n\n\n<p>Now, we can get the response from the DBCursor object and use the desired assertions to carry out the <a href=\"http:\/\/artoftesting.com\/database-testing\">database testing<\/a>.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Code_snippet\"><\/span>Code snippet<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In the following sample code, we will connect to a mongoDB database, execute a find query and then assert the fetched result with expected value.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: java; title: ; notranslate\" title=\"\">\npackage com.artOfTesting.mongo;\n\nimport com.mongodb.MongoClient;\nimport com.mongodb.DB;\nimport com.mongodb.DBCollection;\nimport com.mongodb.BasicDBObject;\nimport com.mongodb.DBCursor;\nimport org.testng.Assert;\n\npublic class MongoAutomation{\n   public static void main( String args&#x5B;] ){\n      try{   \n       \n \/\/Connecting to the mongoDB instance\n        MongoClient mongoClient = new MongoClient( &quot;localhost&quot; , 27017 );\n        \n \/\/Selecting the database\n        DB db = mongoClient.getDB(&quot;dbName&quot;);\n \n        \/\/Selecting the collection\n DBCollection dbCollection = db.getCollection(&quot;collectionName&quot;);\n        \n \/\/Setting search query with the required key-value pair\n BasicDBObject searchQuery = new BasicDBObject();\n searchQuery.put(&quot;key&quot;, &quot;value&quot;);\n  \n \/\/DBCursor with the find query result\n DBCursor cursor = dbCollection.find(searchQuery);\n \n        \/\/Fetching the response\n String response = null; \n try {\n     while(cursor.hasNext()) {\n     response = response.concat(cursor.next().toString());\n    }\n } \n finally { \n    cursor.close();\n }\n \n \/\/Asserting the fetched response with expected value\n Assert.assertTrue(response.contains(&quot;ExpectedValue&quot;));\n }\n      catch(Exception e){\n     System.out.println(e.getMessage());\n      }\n   }\n}\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>MongoDB is an open-source, NoSQL database that stores data in the form of documents. Being a NoSQL database, it is not relational and does not comply with ACID properties &ndash; Atomicity, Consistency, Isolation, and Durability. MongoDB Driver For connecting to MongoDB, we need a MongoDB java driver. The Java driver can be downloaded from&nbsp;here.&nbsp;It is &#8230; <a title=\"Connect to MongoDB in Java\" class=\"read-more\" href=\"https:\/\/artoftesting.com\/mongodbautomation\" aria-label=\"Read more about Connect to MongoDB in Java\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":1669,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-947","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-automation-testing"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>MongoDB Automation in Java<\/title>\n<meta name=\"description\" content=\"For connecting to MongoDB, we need a MongoDB java driver. It is required to be added to the classpath or as dependency in your maven project&#039;s POM file.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/artoftesting.com\/mongodbautomation\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MongoDB Automation in Java\" \/>\n<meta property=\"og:description\" content=\"For connecting to MongoDB, we need a MongoDB java driver. It is required to be added to the classpath or as dependency in your maven project&#039;s POM file.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/artoftesting.com\/mongodbautomation\" \/>\n<meta property=\"og:site_name\" content=\"ArtOfTesting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/artoftesting\" \/>\n<meta property=\"article:published_time\" content=\"2019-12-06T09:23:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-29T14:43:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/artoftesting.com\/wp-content\/uploads\/2019\/12\/MongoDB-Automation-in-Java.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Kuldeep Rana\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@theartoftesting\" \/>\n<meta name=\"twitter:site\" content=\"@theartoftesting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kuldeep Rana\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/artoftesting.com\/mongodbautomation#article\",\"isPartOf\":{\"@id\":\"https:\/\/artoftesting.com\/mongodbautomation\"},\"author\":{\"name\":\"Kuldeep Rana\",\"@id\":\"https:\/\/artoftesting.com\/#\/schema\/person\/7846d06225b52c778d160becf65996a5\"},\"headline\":\"Connect to MongoDB in Java\",\"datePublished\":\"2019-12-06T09:23:47+00:00\",\"dateModified\":\"2023-04-29T14:43:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/artoftesting.com\/mongodbautomation\"},\"wordCount\":175,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/artoftesting.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/artoftesting.com\/mongodbautomation#primaryimage\"},\"thumbnailUrl\":\"https:\/\/artoftesting.com\/wp-content\/uploads\/2019\/12\/MongoDB-Automation-in-Java.jpg\",\"articleSection\":[\"Automation Testing\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/artoftesting.com\/mongodbautomation#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/artoftesting.com\/mongodbautomation\",\"url\":\"https:\/\/artoftesting.com\/mongodbautomation\",\"name\":\"MongoDB Automation in Java\",\"isPartOf\":{\"@id\":\"https:\/\/artoftesting.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/artoftesting.com\/mongodbautomation#primaryimage\"},\"image\":{\"@id\":\"https:\/\/artoftesting.com\/mongodbautomation#primaryimage\"},\"thumbnailUrl\":\"https:\/\/artoftesting.com\/wp-content\/uploads\/2019\/12\/MongoDB-Automation-in-Java.jpg\",\"datePublished\":\"2019-12-06T09:23:47+00:00\",\"dateModified\":\"2023-04-29T14:43:30+00:00\",\"description\":\"For connecting to MongoDB, we need a MongoDB java driver. It is required to be added to the classpath or as dependency in your maven project's POM file.\",\"breadcrumb\":{\"@id\":\"https:\/\/artoftesting.com\/mongodbautomation#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/artoftesting.com\/mongodbautomation\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/artoftesting.com\/mongodbautomation#primaryimage\",\"url\":\"https:\/\/artoftesting.com\/wp-content\/uploads\/2019\/12\/MongoDB-Automation-in-Java.jpg\",\"contentUrl\":\"https:\/\/artoftesting.com\/wp-content\/uploads\/2019\/12\/MongoDB-Automation-in-Java.jpg\",\"width\":700,\"height\":400,\"caption\":\"MongoDB Automation in Java\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/artoftesting.com\/mongodbautomation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/artoftesting.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Automation Testing\",\"item\":\"https:\/\/artoftesting.com\/category\/automation-testing\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Connect to MongoDB in Java\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/artoftesting.com\/#website\",\"url\":\"https:\/\/artoftesting.com\/\",\"name\":\"ArtOfTesting\",\"description\":\"A Beginners Guide to Testing\",\"publisher\":{\"@id\":\"https:\/\/artoftesting.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/artoftesting.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/artoftesting.com\/#organization\",\"name\":\"ArtOfTesting\",\"url\":\"https:\/\/artoftesting.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/artoftesting.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/artoftesting.com\/wp-content\/uploads\/2019\/12\/Artoftesting_logo.png\",\"contentUrl\":\"http:\/\/artoftesting.com\/wp-content\/uploads\/2019\/12\/Artoftesting_logo.png\",\"width\":400,\"height\":60,\"caption\":\"ArtOfTesting\"},\"image\":{\"@id\":\"https:\/\/artoftesting.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/facebook.com\/artoftesting\",\"https:\/\/x.com\/theartoftesting\",\"https:\/\/www.linkedin.com\/groups\/4797819\/\",\"https:\/\/in.pinterest.com\/artoftesting\/\",\"https:\/\/www.youtube.com\/channel\/UCQ9PUVenvvyrUdDQ9yKn31Q\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/artoftesting.com\/#\/schema\/person\/7846d06225b52c778d160becf65996a5\",\"name\":\"Kuldeep Rana\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/artoftesting.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cb5979a4b81ca7739c75080e473fad391a8665364e72abaddec9002dd4553326?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cb5979a4b81ca7739c75080e473fad391a8665364e72abaddec9002dd4553326?s=96&d=mm&r=g\",\"caption\":\"Kuldeep Rana\"},\"description\":\"Kuldeep is the founder and lead author of ArtOfTesting. He is skilled in test automation, performance testing, big data, and CI-CD. He brings his decade of experience to his current role where he is dedicated to educating the QA professionals.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MongoDB Automation in Java","description":"For connecting to MongoDB, we need a MongoDB java driver. It is required to be added to the classpath or as dependency in your maven project's POM file.","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:\/\/artoftesting.com\/mongodbautomation","og_locale":"en_US","og_type":"article","og_title":"MongoDB Automation in Java","og_description":"For connecting to MongoDB, we need a MongoDB java driver. It is required to be added to the classpath or as dependency in your maven project's POM file.","og_url":"https:\/\/artoftesting.com\/mongodbautomation","og_site_name":"ArtOfTesting","article_publisher":"https:\/\/facebook.com\/artoftesting","article_published_time":"2019-12-06T09:23:47+00:00","article_modified_time":"2023-04-29T14:43:30+00:00","og_image":[{"width":700,"height":400,"url":"https:\/\/artoftesting.com\/wp-content\/uploads\/2019\/12\/MongoDB-Automation-in-Java.jpg","type":"image\/jpeg"}],"author":"Kuldeep Rana","twitter_card":"summary_large_image","twitter_creator":"@theartoftesting","twitter_site":"@theartoftesting","twitter_misc":{"Written by":"Kuldeep Rana","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/artoftesting.com\/mongodbautomation#article","isPartOf":{"@id":"https:\/\/artoftesting.com\/mongodbautomation"},"author":{"name":"Kuldeep Rana","@id":"https:\/\/artoftesting.com\/#\/schema\/person\/7846d06225b52c778d160becf65996a5"},"headline":"Connect to MongoDB in Java","datePublished":"2019-12-06T09:23:47+00:00","dateModified":"2023-04-29T14:43:30+00:00","mainEntityOfPage":{"@id":"https:\/\/artoftesting.com\/mongodbautomation"},"wordCount":175,"commentCount":2,"publisher":{"@id":"https:\/\/artoftesting.com\/#organization"},"image":{"@id":"https:\/\/artoftesting.com\/mongodbautomation#primaryimage"},"thumbnailUrl":"https:\/\/artoftesting.com\/wp-content\/uploads\/2019\/12\/MongoDB-Automation-in-Java.jpg","articleSection":["Automation Testing"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/artoftesting.com\/mongodbautomation#respond"]}]},{"@type":"WebPage","@id":"https:\/\/artoftesting.com\/mongodbautomation","url":"https:\/\/artoftesting.com\/mongodbautomation","name":"MongoDB Automation in Java","isPartOf":{"@id":"https:\/\/artoftesting.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/artoftesting.com\/mongodbautomation#primaryimage"},"image":{"@id":"https:\/\/artoftesting.com\/mongodbautomation#primaryimage"},"thumbnailUrl":"https:\/\/artoftesting.com\/wp-content\/uploads\/2019\/12\/MongoDB-Automation-in-Java.jpg","datePublished":"2019-12-06T09:23:47+00:00","dateModified":"2023-04-29T14:43:30+00:00","description":"For connecting to MongoDB, we need a MongoDB java driver. It is required to be added to the classpath or as dependency in your maven project's POM file.","breadcrumb":{"@id":"https:\/\/artoftesting.com\/mongodbautomation#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/artoftesting.com\/mongodbautomation"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/artoftesting.com\/mongodbautomation#primaryimage","url":"https:\/\/artoftesting.com\/wp-content\/uploads\/2019\/12\/MongoDB-Automation-in-Java.jpg","contentUrl":"https:\/\/artoftesting.com\/wp-content\/uploads\/2019\/12\/MongoDB-Automation-in-Java.jpg","width":700,"height":400,"caption":"MongoDB Automation in Java"},{"@type":"BreadcrumbList","@id":"https:\/\/artoftesting.com\/mongodbautomation#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/artoftesting.com\/"},{"@type":"ListItem","position":2,"name":"Automation Testing","item":"https:\/\/artoftesting.com\/category\/automation-testing"},{"@type":"ListItem","position":3,"name":"Connect to MongoDB in Java"}]},{"@type":"WebSite","@id":"https:\/\/artoftesting.com\/#website","url":"https:\/\/artoftesting.com\/","name":"ArtOfTesting","description":"A Beginners Guide to Testing","publisher":{"@id":"https:\/\/artoftesting.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/artoftesting.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/artoftesting.com\/#organization","name":"ArtOfTesting","url":"https:\/\/artoftesting.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/artoftesting.com\/#\/schema\/logo\/image\/","url":"http:\/\/artoftesting.com\/wp-content\/uploads\/2019\/12\/Artoftesting_logo.png","contentUrl":"http:\/\/artoftesting.com\/wp-content\/uploads\/2019\/12\/Artoftesting_logo.png","width":400,"height":60,"caption":"ArtOfTesting"},"image":{"@id":"https:\/\/artoftesting.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/artoftesting","https:\/\/x.com\/theartoftesting","https:\/\/www.linkedin.com\/groups\/4797819\/","https:\/\/in.pinterest.com\/artoftesting\/","https:\/\/www.youtube.com\/channel\/UCQ9PUVenvvyrUdDQ9yKn31Q"]},{"@type":"Person","@id":"https:\/\/artoftesting.com\/#\/schema\/person\/7846d06225b52c778d160becf65996a5","name":"Kuldeep Rana","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/artoftesting.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cb5979a4b81ca7739c75080e473fad391a8665364e72abaddec9002dd4553326?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cb5979a4b81ca7739c75080e473fad391a8665364e72abaddec9002dd4553326?s=96&d=mm&r=g","caption":"Kuldeep Rana"},"description":"Kuldeep is the founder and lead author of ArtOfTesting. He is skilled in test automation, performance testing, big data, and CI-CD. He brings his decade of experience to his current role where he is dedicated to educating the QA professionals."}]}},"_links":{"self":[{"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/posts\/947","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/comments?post=947"}],"version-history":[{"count":2,"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/posts\/947\/revisions"}],"predecessor-version":[{"id":6953,"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/posts\/947\/revisions\/6953"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/media\/1669"}],"wp:attachment":[{"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/media?parent=947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/categories?post=947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/tags?post=947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}