{"id":1254,"date":"2012-02-23T22:40:29","date_gmt":"2012-02-23T17:10:29","guid":{"rendered":"http:\/\/www.automationrepository.com\/?p=1254"},"modified":"2012-05-03T16:30:54","modified_gmt":"2012-05-03T11:00:54","slug":"how-qtp-identifies-test-result-folders","status":"publish","type":"post","link":"https:\/\/www.automationrepository.com\/wordpress\/2012\/02\/how-qtp-identifies-test-result-folders\/","title":{"rendered":"Did You Know: How QTP identifies Test Result Folders"},"content":{"rendered":"<div style=\"text-align: justify; font-family: Verdana;\">\n<p>In the previous article, we had seen <a title=\"Did You Know: How QTP identifies Test Folders?\" href=\"http:\/\/www.automationrepository.com\/2012\/02\/how-qtp-identifies-test-folders\/\" target=\"_blank\">how QTP identifies a test folder<\/a> and distinguishes it from a normal folder. On the same lines, we would see how QTP identifies a test results folder. We will use QTP&#8217;s <strong>Test Result Deletion tool<\/strong> to illustrate this concept.<\/p>\n<p>QTP checks for the presence of 3 different files\/sub-folders<!--more--> in order to differentiate a test results folder from a normal folder. These 3 items are as follows &#8211;<\/p>\n<ul>\n<li><strong>1) A file named &#8216;Mediainfo.ini&#8217; in the Test Results folder<\/strong><\/li>\n<li><strong>2) A sub-folder named &#8216;Report&#8217; in the Test Results folder<\/strong><\/li>\n<li><strong>3) A file named &#8216;Results.qtp&#8217; or &lt;anyname&gt;.qtp inside &#8216;Report&#8217; sub-folder<\/strong><\/li>\n<\/ul>\n<div style=\"width: 222px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" title=\"Test Results Folder Structure\" src=\"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/test-result-folder-structure.png\" alt=\"Test Results Folder Structure\" width=\"212\" height=\"197\" \/><p class=\"wp-caption-text\">Test Results Folder Structure<\/p><\/div>\n<p><em> <\/em><br \/>\nIf QTP finds all these 3 items in any folder, it treats that folder as a Test Results folder. If any of these items is missing, then it is treated as a normal folder. Even if the folder hierarchy of any of these items is changed, QTP would not recognize it as a Test Results folder.<\/p>\n<p><span style=\"text-decoration: underline;\">Please note that in case of Results.qtp file only the file\u00a0extention is required to decide whether the folder is a results folder or not. But in case of Mediainfo.ini file, the file name as well as the contents inside the file both decide the nature of the folder. In other words, you can have Results.qtp or &lt;somename&gt;.qtp\u00a0file with any content but the same is not true for Mediainfo.ini file.<\/span><\/p>\n<p><em><\/em><br \/>\nLet&#8217;s see an example to understand this concept clearly &#8211;<br \/>\n<em><\/em><br \/>\n<strong>1)<\/strong> We already have a Test Results folder named &#8216;Result1&#8217; saved in D:\\ drive. This Results folder contains all the 3 required items as shown in the below figure.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Test Results Folder Structure\" src=\"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/test-result-folder-structure-1.png\" alt=\"Test Results Folder Structure\" width=\"742\" height=\"426\" \/><\/p>\n<p><em><\/em><br \/>\n<strong>2)<\/strong> Open QTP&#8217;s Test Results Deletion tool. Browse using folders option and select the folder above &#8216;Result1&#8217; folder. QTP identifies &#8216;Result1&#8217; as as a test result folder and adds it to the Test Results Deletion tool.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Test Results Folder added in Test Results Deletion Tool\" src=\"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/test-results-deletion-tool-test-added.png\" alt=\"Test Results Folder added in Test Results Deletion Tool\" width=\"539\" height=\"341\" \/><\/p>\n<p><em><\/em><br \/>\n<strong>3)<\/strong> Delete any of the 3 items or change their hierarchy or rename any of them other than Results.qtp.<\/p>\n<p><em><\/em><br \/>\n<strong>4)<\/strong> Again select the folder above &#8216;Result1&#8217; in Test Results Deletion tool. This time you would notice that QTP doesn&#8217;t identify &#8216;Results1&#8217; folder as a test result folder and hence doesn&#8217;t add it to the Results Deletion tool.<\/p>\n<p><em><\/em><br \/>\n<strong>5)<\/strong> Create a new Dummy Results folder and do the following &#8211;<\/p>\n<p><span style=\"text-decoration: underline;\">a)<\/span>\u00a0Create a\u00a0new notepad file with the below contents\u00a0and save it as &#8216;Mediainfo.ini&#8217; in the Dummy Results folder.<br \/>\n<em>[Media]<\/em><br \/>\n<em>Report = Report<\/em><br \/>\n<em>IterDir = Row<\/em><\/p>\n<p><span style=\"text-decoration: underline;\">b)<\/span> Create a new sub-folder named &#8216;Report&#8217; inside the Dummy Results folder.<\/p>\n<p><span style=\"text-decoration: underline;\">c)<\/span> Create a new notepad file and save it as &#8216;Results.qtp&#8217; or &lt;anyfilename&gt;.qtp\u00a0inside the &#8216;Report&#8217; sub-folder.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Dummy Results Folder\" src=\"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/dummy-results-folder.png\" alt=\"Dummy Results Folder\" width=\"620\" height=\"337\" \/><\/p>\n<p><em><\/em><br \/>\n<strong>6)<\/strong> Select the folder above the Dummy Results folder in Test Result Deletion tool. You would see that QTP treats the Dummy results folder as a test results folder and adds it to the Results Deletion tool.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Test Results Deletion Tool\" src=\"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/test-results-deletion-tool-dummy-results-folder.png\" alt=\"Test Results Deletion Tool\" width=\"500\" height=\"302\" \/><\/p>\n<p><em><\/em><br \/>\nThis is how a Test Results folder is identified by QTP. You can use this information to create your own Test Results Deletion tool. Do let us know your comments on this. Happy Reading.. :&#8211;)<br \/>\n<span><br \/>\n<\/span><\/p>\n<\/div>\n<div style=\"font-family: Verdana,sans-serif; border: 1px solid #C8B560; padding: 3mm; background: #FFF8C6; text-align: center;\">\n<p><strong>If you enjoyed this article, you can join our blog to get new articles delivered directly in your inbox.<\/strong><\/p>\n<form style=\"text-align: center;\" action=\"http:\/\/feedburner.google.com\/fb\/a\/mailverify\" method=\"post\" onsubmit=\"window.open('http:\/\/feedburner.google.com\/fb\/a\/mailverify?uri=automationrepository\/feeds', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true\" target=\"popupwindow\"><input style=\"width: 160px; height: 20px;\" onfocus=\"if (this.value == 'Enter Your Email Address') {this.value = '';}\" onblur=\"if (this.value == '') {this.value = 'Enter Your Email Address';}\" type=\"text\" value=\"Enter Your Email Address\" \/> <input type=\"hidden\" name=\"uri\" value=\"automationrepository\/feeds\" \/> <input type=\"hidden\" name=\"loc\" value=\"en_US\" \/> <input type=\"submit\" value=\"Join Us\" \/><\/p>\n<p style=\"text-align: justify;\">\n<\/form>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In the previous article, we had seen how QTP identifies a test folder and distinguishes it from a normal folder. On the same lines, we would see how QTP identifies a test results folder. We will use QTP&#8217;s Test Result Deletion tool to illustrate this concept. QTP checks for the presence of 3 different files\/sub-folders<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,77,6],"tags":[82,81,80],"class_list":["post-1254","post","type-post","status-publish","format-standard","hentry","category-advanced-concepts","category-did-you-know","category-not-so-common-stuff","tag-mediainfo-ini","tag-results-qtp","tag-test-results-deletion-tool"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Did You Know: How QTP identifies Test Result Folders - XX<\/title>\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.automationrepository.com\/wordpress\/2012\/02\/how-qtp-identifies-test-result-folders\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Anish Pillai\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/2012\/02\/how-qtp-identifies-test-result-folders\/\",\"url\":\"https:\/\/www.automationrepository.com\/wordpress\/2012\/02\/how-qtp-identifies-test-result-folders\/\",\"name\":\"Did You Know: How QTP identifies Test Result Folders - XX\",\"isPartOf\":{\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/2012\/02\/how-qtp-identifies-test-result-folders\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/2012\/02\/how-qtp-identifies-test-result-folders\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/test-result-folder-structure.png\",\"datePublished\":\"2012-02-23T17:10:29+00:00\",\"dateModified\":\"2012-05-03T11:00:54+00:00\",\"author\":{\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/#\/schema\/person\/7a35710e1ce89e5fb481be88fcd6cd20\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/2012\/02\/how-qtp-identifies-test-result-folders\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.automationrepository.com\/wordpress\/2012\/02\/how-qtp-identifies-test-result-folders\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/2012\/02\/how-qtp-identifies-test-result-folders\/#primaryimage\",\"url\":\"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/test-result-folder-structure.png\",\"contentUrl\":\"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/test-result-folder-structure.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/2012\/02\/how-qtp-identifies-test-result-folders\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.automationrepository.com\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Did You Know: How QTP identifies Test Result Folders\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/#website\",\"url\":\"https:\/\/www.automationrepository.com\/wordpress\/\",\"name\":\"XX\",\"description\":\"\\r\\nasas\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.automationrepository.com\/wordpress\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/#\/schema\/person\/7a35710e1ce89e5fb481be88fcd6cd20\",\"name\":\"Anish Pillai\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8aa984de2295c3c4078fa48f6ba5d91e7c849b1a27a11dca24c6f11dd673ba14?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8aa984de2295c3c4078fa48f6ba5d91e7c849b1a27a11dca24c6f11dd673ba14?s=96&d=mm&r=g\",\"caption\":\"Anish Pillai\"},\"description\":\"Find more about Anish Pillai on Google+\",\"sameAs\":[\"http:\/\/www.automationrepository.com\"],\"url\":\"https:\/\/www.automationrepository.com\/wordpress\/author\/anish\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Did You Know: How QTP identifies Test Result Folders - XX","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.automationrepository.com\/wordpress\/2012\/02\/how-qtp-identifies-test-result-folders\/","twitter_misc":{"Written by":"Anish Pillai","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.automationrepository.com\/wordpress\/2012\/02\/how-qtp-identifies-test-result-folders\/","url":"https:\/\/www.automationrepository.com\/wordpress\/2012\/02\/how-qtp-identifies-test-result-folders\/","name":"Did You Know: How QTP identifies Test Result Folders - XX","isPartOf":{"@id":"https:\/\/www.automationrepository.com\/wordpress\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.automationrepository.com\/wordpress\/2012\/02\/how-qtp-identifies-test-result-folders\/#primaryimage"},"image":{"@id":"https:\/\/www.automationrepository.com\/wordpress\/2012\/02\/how-qtp-identifies-test-result-folders\/#primaryimage"},"thumbnailUrl":"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/test-result-folder-structure.png","datePublished":"2012-02-23T17:10:29+00:00","dateModified":"2012-05-03T11:00:54+00:00","author":{"@id":"https:\/\/www.automationrepository.com\/wordpress\/#\/schema\/person\/7a35710e1ce89e5fb481be88fcd6cd20"},"breadcrumb":{"@id":"https:\/\/www.automationrepository.com\/wordpress\/2012\/02\/how-qtp-identifies-test-result-folders\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.automationrepository.com\/wordpress\/2012\/02\/how-qtp-identifies-test-result-folders\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.automationrepository.com\/wordpress\/2012\/02\/how-qtp-identifies-test-result-folders\/#primaryimage","url":"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/test-result-folder-structure.png","contentUrl":"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/test-result-folder-structure.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.automationrepository.com\/wordpress\/2012\/02\/how-qtp-identifies-test-result-folders\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.automationrepository.com\/wordpress\/"},{"@type":"ListItem","position":2,"name":"Did You Know: How QTP identifies Test Result Folders"}]},{"@type":"WebSite","@id":"https:\/\/www.automationrepository.com\/wordpress\/#website","url":"https:\/\/www.automationrepository.com\/wordpress\/","name":"XX","description":"\r\nasas","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.automationrepository.com\/wordpress\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.automationrepository.com\/wordpress\/#\/schema\/person\/7a35710e1ce89e5fb481be88fcd6cd20","name":"Anish Pillai","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.automationrepository.com\/wordpress\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8aa984de2295c3c4078fa48f6ba5d91e7c849b1a27a11dca24c6f11dd673ba14?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8aa984de2295c3c4078fa48f6ba5d91e7c849b1a27a11dca24c6f11dd673ba14?s=96&d=mm&r=g","caption":"Anish Pillai"},"description":"Find more about Anish Pillai on Google+","sameAs":["http:\/\/www.automationrepository.com"],"url":"https:\/\/www.automationrepository.com\/wordpress\/author\/anish\/"}]}},"_links":{"self":[{"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/posts\/1254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1254"}],"version-history":[{"count":18,"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/posts\/1254\/revisions"}],"predecessor-version":[{"id":1558,"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/posts\/1254\/revisions\/1558"}],"wp:attachment":[{"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}