{"id":43053,"date":"2016-12-26T16:04:50","date_gmt":"2016-12-26T10:34:50","guid":{"rendered":"https:\/\/tothenewco.pro\/blog\/?p=43053"},"modified":"2016-12-27T10:30:51","modified_gmt":"2016-12-27T05:00:51","slug":"how-to-add-screenshots-to-testng-report","status":"publish","type":"post","link":"https:\/\/tothenewco.pro\/blog\/how-to-add-screenshots-to-testng-report\/","title":{"rendered":"How to Add Screenshots to TestNG Report?"},"content":{"rendered":"<p style=\"text-align: justify;\">Taking screenshots during <a title=\"Automation Testing\" href=\"https:\/\/tothenewco.pro\/testing\/automated-independent-manual-testing\">testing<\/a>\u00a0is often considered a good practice. Adding a screenshot to the test reports provides complete clarity and visibility of the application such as if the application is working smoothly or something in the application needs to be fixed. It also makes the report meaningful and presentable.<\/p>\n<p style=\"text-align: justify;\">While carrying out <a title=\"Manual Testing\" href=\"https:\/\/tothenewco.pro\/testing\/automated-independent-manual-testing\">manual testing<\/a> one can take a screenshot by using &#8220;PrtScr&#8221; command or by using any screenshot capturing application. However, incase of <a title=\"What, When &amp; How of Automation Testing\" href=\"https:\/\/tothenewco.pro\/blog\/the-when-how-of-test-automation\/\">automation testing<\/a>, the process of taking screenshot and including it in the report is quite different.<\/p>\n<p style=\"text-align: justify;\">Read this blog to understand how to take a screenshot during automation testing and adding it it to the report.<\/p>\n<p style=\"text-align: justify;\"><strong>A brief about TestNG<\/strong><\/p>\n<p style=\"text-align: justify;\">T<a title=\"Soft Assertions in Selenium using TestNG\" href=\"https:\/\/tothenewco.pro\/blog\/soft-assertions-in-selenium-using-testng\/\">estNG is a powerful and easy-to-use testing framework<\/a>. It is designed in such a manner that it covers various categories of tests such as Unit, Integration, System etc. The official definition of TestNG is :<\/p>\n<blockquote>\n<p style=\"text-align: center;\"><strong><em>TestNG is a testing framework inspired from JUnit and NUnit, but introducing some new functionalities that make it more powerful and easier to use.<\/em><\/strong><\/p>\n<\/blockquote>\n<p><strong>A task to take screenshot<\/strong><\/p>\n<ol>\n<li>Access http:\/\/google.com<\/li>\n<li>Search for cars<\/li>\n<li>Verify if there is any link containing\u00a0the word &#8220;car&#8221;<\/li>\n<li>Take screenshot<\/li>\n<\/ol>\n<p><strong>Follow the below code to take screenshots\u00a0<\/strong><\/p>\n<pre title=\"Take Screenshot\"><em>File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\r\n\/\/The below method will save the screen shot in d drive with name \"screenshot.png\"\r\ntimeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(Calendar.getInstance().getTime());\r\nscreenShotName = new File(\"D:\\\\MyTest\\\\Screenshots\\\\\"+timeStamp+\".png\");\r\nFileUtils.copyFile(scrFile, screenShotName);<\/em><\/pre>\n<p><strong>Adding screenshots to the report<\/strong><\/p>\n<pre title=\"Add it to report\"><em>String filePath = screenShotName.toString();\r\nString path = \"&lt;img src=\"\\\"file:\/\/\"\" alt=\"\\\"\\\"\/\" \/&gt;\";\r\nReporter.log(path);<\/em><\/pre>\n<p><strong>Complete Working Code<\/strong><\/p>\n<pre><em>public class TestNGDefaultReport {\r\nstatic WebDriver driver;\r\n@BeforeSuite\r\npublic void setup(){\r\nSystem.setProperty(\"webdriver.chrome.driver\",\"D:\\\\MyTest\\\\chromedriver.exe\");\r\n\r\nSystem.setProperty(\"org.uncommons.reportng.escape-output\", \"false\");\r\ndriver = new ChromeDriver();\r\n}\r\n \r\n@BeforeMethod\r\npublic void beforeEachMethod(){\r\ndriver.get(\"http:\/\/google.com\");\r\n}\r\n \r\n\/\/Test case 1\r\n@Test\r\npublic void cars() throws Exception {\r\nSystem.out.println(\"I am Test method and I am searching for cars\");\r\ndriver.findElement(By.name(\"q\")).sendKeys(\"Cars\");\r\n \r\ndriver.findElement(By.name(\"btnG\")).click();\r\n \r\n\/\/Wait for the results to appear\r\nThread.sleep(2000);\r\ntakeScreenshot();\r\nif(driver.findElement(By.partialLinkText(\"car\")).isDisplayed()){\r\nAssert.assertTrue(true); \r\n}\r\nelse{\r\nAssert.assertTrue(false);\r\n}\r\n}\r\n \r\n@AfterSuite\r\npublic void endOfSuite(){\r\nSystem.out.println(\"I am the end of suite\");\r\ndriver.quit();\r\n}\r\n \r\npublic static void takeScreenshot() throws Exception {\r\nString timeStamp;\r\nFile screenShotName;\r\nFile scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\r\n\/\/The below method will save the screen shot in d drive with name \"screenshot.png\"\r\ntimeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(Calendar.getInstance().getTime()); \r\nscreenShotName = new File(\"D:\\\\MyTest\\\\Screenshots\\\\\"+timeStamp+\".png\");\r\nFileUtils.copyFile(scrFile, screenShotName);\r\n \r\nString filePath = screenShotName.toString();\r\nString path = \"&lt;img src=\"\\\"file:\/\/\"\" alt=\"\\\"\\\"\/\" \/&gt;\";\r\nReporter.log(path);\r\n \r\n}\r\n}\r\n<\/em><\/pre>\n<p><strong>TestNG Reports<\/strong><\/p>\n<p style=\"text-align: justify;\">TestNG provides certain predefined listeners. These listeners are by default added to any test execution. Hence, different HTML and XML reports are generated for any test execution. The report is generated by default under the folder named <strong>test-output<\/strong>. You can view the report by opening <strong>index.html.<\/strong><\/p>\n<p><strong>Conclusion<\/strong><\/p>\n<p>You make you reports more meaningful and presentable by adding screenshots to your reports.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Taking screenshots during testing\u00a0is often considered a good practice. Adding a screenshot to the test reports provides complete clarity and visibility of the application such as if the application is working smoothly or something in the application needs to be fixed. It also makes the report meaningful and presentable. While carrying out manual testing one [&hellip;]<\/p>\n","protected":false},"author":850,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":192,"footnotes":""},"categories":[1818,1],"tags":[2943,1561,3194,25,4330,3950,4329],"class_list":["post-43053","post","type-post","status-publish","format-standard","hentry","category-automation-testing-testing-2","category-technology","tag-application-testing","tag-automation-testing","tag-screenshots","tag-selenium","tag-test-report","tag-testng","tag-webdriver"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Read this blog to learn how to capture screenshots during automation testing and adding it to the report to make it more meaningful and presentable.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Ubaid Ahmed\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/tothenewco.pro\/blog\/how-to-add-screenshots-to-testng-report\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Adding screenshots to TestNG report | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Read this blog to learn how to capture screenshots during automation testing and adding it to the report to make it more meaningful and presentable.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/tothenewco.pro\/blog\/how-to-add-screenshots-to-testng-report\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Adding screenshots to TestNG report | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Read this blog to learn how to capture screenshots during automation testing and adding it to the report to make it more meaningful and presentable.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-add-screenshots-to-testng-report\\\/#article\",\"name\":\"Adding screenshots to TestNG report | TO THE NEW Blog\",\"headline\":\"How to Add Screenshots to TestNG Report?\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ubaid-ahmed\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2016-12-26T16:04:50+05:30\",\"dateModified\":\"2016-12-27T10:30:51+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":9,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-add-screenshots-to-testng-report\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-add-screenshots-to-testng-report\\\/#webpage\"},\"articleSection\":\"Automation Testing, Technology, Application testing, automation testing, Screenshots, selenium, Test Report, TestNG, WebDriver\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-add-screenshots-to-testng-report\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-add-screenshots-to-testng-report\\\/#listItem\",\"name\":\"How to Add Screenshots to TestNG Report?\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-add-screenshots-to-testng-report\\\/#listItem\",\"position\":3,\"name\":\"How to Add Screenshots to TestNG Report?\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ubaid-ahmed\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ubaid-ahmed\\\/\",\"name\":\"Ubaid Ahmed\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-add-screenshots-to-testng-report\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/8e4c992c-d72e-4d2f-81b2-96b11a3ebf25_273-Ubaid-Ahmed-PROFILEPICTURE.jpeg\",\"width\":96,\"height\":96,\"caption\":\"Ubaid Ahmed\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-add-screenshots-to-testng-report\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-add-screenshots-to-testng-report\\\/\",\"name\":\"Adding screenshots to TestNG report | TO THE NEW Blog\",\"description\":\"Read this blog to learn how to capture screenshots during automation testing and adding it to the report to make it more meaningful and presentable.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-add-screenshots-to-testng-report\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ubaid-ahmed\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ubaid-ahmed\\\/#author\"},\"datePublished\":\"2016-12-26T16:04:50+05:30\",\"dateModified\":\"2016-12-27T10:30:51+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Adding screenshots to TestNG report | TO THE NEW Blog","description":"Read this blog to learn how to capture screenshots during automation testing and adding it to the report to make it more meaningful and presentable.","canonical_url":"https:\/\/tothenewco.pro\/blog\/how-to-add-screenshots-to-testng-report\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/tothenewco.pro\/blog\/how-to-add-screenshots-to-testng-report\/#article","name":"Adding screenshots to TestNG report | TO THE NEW Blog","headline":"How to Add Screenshots to TestNG Report?","author":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/ubaid-ahmed\/#author"},"publisher":{"@id":"https:\/\/tothenewco.pro\/blog\/#organization"},"datePublished":"2016-12-26T16:04:50+05:30","dateModified":"2016-12-27T10:30:51+05:30","inLanguage":"en-US","commentCount":9,"mainEntityOfPage":{"@id":"https:\/\/tothenewco.pro\/blog\/how-to-add-screenshots-to-testng-report\/#webpage"},"isPartOf":{"@id":"https:\/\/tothenewco.pro\/blog\/how-to-add-screenshots-to-testng-report\/#webpage"},"articleSection":"Automation Testing, Technology, Application testing, automation testing, Screenshots, selenium, Test Report, TestNG, WebDriver"},{"@type":"BreadcrumbList","@id":"https:\/\/tothenewco.pro\/blog\/how-to-add-screenshots-to-testng-report\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog#listItem","position":1,"name":"Home","item":"https:\/\/tothenewco.pro\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/tothenewco.pro\/blog\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/how-to-add-screenshots-to-testng-report\/#listItem","name":"How to Add Screenshots to TestNG Report?"},"previousItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/how-to-add-screenshots-to-testng-report\/#listItem","position":3,"name":"How to Add Screenshots to TestNG Report?","previousItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/technology\/#listItem","name":"Technology"}}]},{"@type":"Organization","@id":"https:\/\/tothenewco.pro\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/tothenewco.pro\/blog\/"},{"@type":"Person","@id":"https:\/\/tothenewco.pro\/blog\/author\/ubaid-ahmed\/#author","url":"https:\/\/tothenewco.pro\/blog\/author\/ubaid-ahmed\/","name":"Ubaid Ahmed","image":{"@type":"ImageObject","@id":"https:\/\/tothenewco.pro\/blog\/how-to-add-screenshots-to-testng-report\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/8e4c992c-d72e-4d2f-81b2-96b11a3ebf25_273-Ubaid-Ahmed-PROFILEPICTURE.jpeg","width":96,"height":96,"caption":"Ubaid Ahmed"}},{"@type":"WebPage","@id":"https:\/\/tothenewco.pro\/blog\/how-to-add-screenshots-to-testng-report\/#webpage","url":"https:\/\/tothenewco.pro\/blog\/how-to-add-screenshots-to-testng-report\/","name":"Adding screenshots to TestNG report | TO THE NEW Blog","description":"Read this blog to learn how to capture screenshots during automation testing and adding it to the report to make it more meaningful and presentable.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/tothenewco.pro\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/tothenewco.pro\/blog\/how-to-add-screenshots-to-testng-report\/#breadcrumblist"},"author":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/ubaid-ahmed\/#author"},"creator":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/ubaid-ahmed\/#author"},"datePublished":"2016-12-26T16:04:50+05:30","dateModified":"2016-12-27T10:30:51+05:30"},{"@type":"WebSite","@id":"https:\/\/tothenewco.pro\/blog\/#website","url":"https:\/\/tothenewco.pro\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/tothenewco.pro\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Adding screenshots to TestNG report | TO THE NEW Blog","og:description":"Read this blog to learn how to capture screenshots during automation testing and adding it to the report to make it more meaningful and presentable.","og:url":"https:\/\/tothenewco.pro\/blog\/how-to-add-screenshots-to-testng-report\/","og:image":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Adding screenshots to TestNG report | TO THE NEW Blog","twitter:description":"Read this blog to learn how to capture screenshots during automation testing and adding it to the report to make it more meaningful and presentable.","twitter:image":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"43053","title":"Adding screenshots to TestNG report | #site_title","description":"Read this blog to learn how to capture screenshots during automation testing and adding it to the report to make it more meaningful and presentable.","keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"blog","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 12:04:56","updated":"2024-02-29 08:19:27","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/tothenewco.pro\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/tothenewco.pro\/blog\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to Add Screenshots to TestNG Report?\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/tothenewco.pro\/blog"},{"label":"Technology","link":"https:\/\/tothenewco.pro\/blog\/category\/technology\/"},{"label":"How to Add Screenshots to TestNG Report?","link":"https:\/\/tothenewco.pro\/blog\/how-to-add-screenshots-to-testng-report\/"}],"_links":{"self":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts\/43053","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/users\/850"}],"replies":[{"embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/comments?post=43053"}],"version-history":[{"count":0,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts\/43053\/revisions"}],"wp:attachment":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/media?parent=43053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/categories?post=43053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/tags?post=43053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}