{"id":828,"date":"2011-12-10T03:25:06","date_gmt":"2011-12-09T21:55:06","guid":{"rendered":"http:\/\/www.automationrepository.com\/?p=828"},"modified":"2011-12-10T03:29:16","modified_gmt":"2011-12-09T21:59:16","slug":"how-to-turn-off-or-disable-qtp-results","status":"publish","type":"post","link":"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/how-to-turn-off-or-disable-qtp-results\/","title":{"rendered":"3 ways on How to Turn Off or Disable QTP Results"},"content":{"rendered":"<div style=\"font-family: Verdana; text-align: justify;\">\n<p>Consider a situation where you want to &#8220;turn off&#8221; or disable QTP Results (some part of the result or the entire result itself) that is generated at the end of the test run. There may be many reasons why you may want to do this, few of which have been listed <!--more-->at the end of the post. Let us see the 3 different ways by which you can disable\/turn off QTP results.<\/p>\n<div style=\"width: 431px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" title=\"3 Ways to Disable \/ Turn Off QTP Results\" src=\"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/disable-turn-off-qtp-results.PNG\" alt=\"3 Ways to Disable \/ Turn Off QTP Results\" width=\"421\" height=\"411\" \/><p class=\"wp-caption-text\">3 Ways to Disable \/ Turn Off QTP Results<\/p><\/div>\n<p><span style=\"text-decoration: underline;\"><br \/>\n<strong>1. Display only certain steps in the Test Run Results.<\/strong><\/span> Using this method, you can control what all you want to display in the test run results. For example, you may want to display only the failed steps &amp; not the passed ones. To do so, you would need to use the <strong>Filter Property of the Reporter Object<\/strong>. You can use any of the below mentioned values in the Reporter.Filter property &#8211;<\/p>\n<table width=\"584\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"187\"><strong>Mode<\/strong><\/td>\n<td valign=\"top\" width=\"397\"><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"187\">0 or <strong>rfEnableAll<\/strong><\/td>\n<td valign=\"top\" width=\"397\"><strong>Default<\/strong>. All reported events are displayed in the Run Results<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\" valign=\"top\" width=\"187\"><strong>1 <\/strong>or <strong>rfEnableErrorsAndWarnings<\/strong><\/td>\n<td valign=\"top\" width=\"397\">Only event with a warning or fail status are displayed in the Run Results.<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"187\"><strong>2<\/strong> or <strong>rfEnableErrorsOnly<\/strong><\/td>\n<td valign=\"top\" width=\"397\">Only events with a fail status are displayed in the Run Results.<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"187\"><strong>3 <\/strong>or <strong>rfDisableAll<\/strong><\/td>\n<td valign=\"top\" width=\"397\">No events are displayed in the Run Results.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span><br \/>\nLet us see an example on how this concept can be used &#8211;<\/span><\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\r\nReporter.ReportEvent micPass, &quot;Step 1&quot;, &quot;Passed&quot;\r\nReporter.ReportEvent micFail, &quot;Step 2&quot;, &quot;Failed&quot;\r\n\r\n'Disable all the Results\r\nReporter.Filter = rfDisableAll\r\nReporter.ReportEvent micPass, &quot;Step 3&quot;, &quot;Passed&quot;\r\nReporter.ReportEvent micFail, &quot;Step 4&quot;, &quot;Failed&quot;\r\n\r\n'Enable Result Display\r\nReporter.Filter = rfEnableAll\r\nReporter.ReportEvent micWarning, &quot;Step 5&quot;, &quot;Warning&quot;\r\n\r\n'Enable only Errors and Warnings\r\nReporter.Filter = rfEnableErrorsAndWarnings\r\nReporter.ReportEvent micPass, &quot;Step 6&quot;, &quot;Passed&quot;\r\nReporter.ReportEvent micFail, &quot;Step 7&quot;, &quot;Failed&quot;\r\nReporter.ReportEvent micWarning, &quot;Step 8&quot;, &quot;Warning&quot;\r\n<\/pre>\n<p><span>The test run result for the above code is shown in below figure. <\/span>You can notice that Step 3 &amp; Step 4 are not displayed in the result due to rfDisableAll, and Step 6 is not displayed due to rfEnableErrorsAndWarnings which displays only Errors and Warning messages in the Run Report.<\/p>\n<div style=\"width: 719px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" title=\"Reporter.Filter property\" src=\"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/reporter-filter-property.PNG\" alt=\"Reporter.Filter property\" width=\"709\" height=\"275\" \/><p class=\"wp-caption-text\">Reporter.Filter property<\/p><\/div>\n<p><span style=\"text-decoration: underline;\"><br \/>\n<strong>2. Turn Off the display of Results at the end of test case run.<\/strong><\/span> Here you would see how you can prevent the Run Results from getting displayed every time you run a test case. Let&#8217;s see the steps involved &#8211;<\/p>\n<p>a. Go to Tools -&gt; Options.<\/p>\n<p>b. Select &#8216;Run&#8217; node from the left hand side pane. Deselect the check box &#8211; &#8216;View results when run session ends&#8217;.<\/p>\n<p>c. Click on &#8216;Apply&#8217; and then &#8216;OK&#8217; button.<\/p>\n<div style=\"width: 650px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" title=\"View Results When Run Session Ends\" src=\"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/view-results-when-run-session-ends.PNG\" alt=\"View Results When Run Session Ends\" width=\"640\" height=\"511\" \/><p class=\"wp-caption-text\">View Results When Run Session Ends<\/p><\/div>\n<p>Now when you run a test case, the run results would not appear at the end of the run session. <span style=\"text-decoration: underline;\">Please note that this option just prevents the run results from getting displayed, but it doesn&#8217;t prevent the run results from being generated (and saved in your system)<\/span>.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>3. Prevent the creation of Test Run Result<\/strong><strong>s.<\/strong><\/span> Using this method you can actually prevent the run results from being generated. Thus there is no way your test results will get displayed. To do so, you can follow the below steps &#8211;<\/p>\n<p>a) <strong>Go to Start -&gt; Run. Enter regedit<\/strong> in the text field and click on OK button to open the <strong>Registry Editor.<\/strong><\/p>\n<p>b) Navigate to <strong>HKEY_LOCAL_MACHINE \\ SOFTWARE \\ Mercury Interactive \\ QuickTest Professional \\ Logger \\ Media \\ Report<\/strong> node in the Registry Editor.<\/p>\n<p>c) From the right hand side pane, double click on <strong>Active<\/strong> option and change the value from 1 to 0.<\/p>\n<div style=\"width: 646px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" title=\"Turn Off QTP Results from Registry Editor\" src=\"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/registry-editor-qtp-results.PNG\" alt=\"Turn Off QTP Results from Registry Editor\" width=\"636\" height=\"437\" \/><p class=\"wp-caption-text\">Turn Off QTP Results from Registry Editor<\/p><\/div>\n<p>Since you have seen the 3 ways to disable QTP Results, you might be wondering as to why is there a need to turn off\/disable the run results. Listed below are 3 scenarios where you might want to suppress QTP results.<\/p>\n<table width=\"672\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"168\"><strong>Mode<\/strong><\/td>\n<td valign=\"top\" width=\"448\"><strong>Scenario<\/strong><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"168\">Disable certain parts of the run result.<\/td>\n<td valign=\"top\" width=\"448\">Let us suppose that you are using GetCellData function on a table with a large number of rows. In this situation QTP Results will display one step for each GetCellData function call (which you might want to avoid)<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"168\">Prevent QTP Results from appearing after a run session ends.<\/td>\n<td valign=\"top\" width=\"448\">There might be several cases where you would be running a small script multiple number of times for debugging purposes. In such situations, it becomes bit distracting &amp; irritating to have the results screen displayed after every run.<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"168\">Prevent QTP Results from being created.<\/td>\n<td valign=\"top\" width=\"448\">In some of your automation framework, you might want to go with custom reporting rather than the standard QTP reporting. In such cases it\u2019s always better to prevent the creation of QTP results. This would definitely help you save some disk space.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span><br \/>\n<strong> Would you like to share any other scenario where you would suppress\/disable the QTP Results? Please use the comments section to share your scenarios with us.<\/strong><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>If you enjoyed this article, you can join our blog to get new articles delivered directly in your inbox. You can also share this article with your friends &amp; check out other articles in our website.<\/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>Consider a situation where you want to &#8220;turn off&#8221; or disable QTP Results (some part of the result or the entire result itself) that is generated at the end of the test run. There may be many reasons why you may want to do this, few of which have been listed<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[46],"class_list":["post-828","post","type-post","status-publish","format-standard","hentry","category-qtp-concepts","tag-test-results"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>3 ways on How to Turn Off or Disable QTP Results - XX<\/title>\n<meta name=\"description\" content=\"Use Registry Editor (HKEY_LOCAL..) to disable QTP Results creation. Use Reporter.Filter &amp; View results when run session ends to turn off QTP results.\" \/>\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\/2011\/12\/how-to-turn-off-or-disable-qtp-results\/\" \/>\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=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/how-to-turn-off-or-disable-qtp-results\/\",\"url\":\"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/how-to-turn-off-or-disable-qtp-results\/\",\"name\":\"3 ways on How to Turn Off or Disable QTP Results - XX\",\"isPartOf\":{\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/how-to-turn-off-or-disable-qtp-results\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/how-to-turn-off-or-disable-qtp-results\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/disable-turn-off-qtp-results.PNG\",\"datePublished\":\"2011-12-09T21:55:06+00:00\",\"dateModified\":\"2011-12-09T21:59:16+00:00\",\"author\":{\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/#\/schema\/person\/7a35710e1ce89e5fb481be88fcd6cd20\"},\"description\":\"Use Registry Editor (HKEY_LOCAL..) to disable QTP Results creation. Use Reporter.Filter & View results when run session ends to turn off QTP results.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/how-to-turn-off-or-disable-qtp-results\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/how-to-turn-off-or-disable-qtp-results\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/how-to-turn-off-or-disable-qtp-results\/#primaryimage\",\"url\":\"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/disable-turn-off-qtp-results.PNG\",\"contentUrl\":\"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/disable-turn-off-qtp-results.PNG\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/how-to-turn-off-or-disable-qtp-results\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.automationrepository.com\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"3 ways on How to Turn Off or Disable QTP Results\"}]},{\"@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":"3 ways on How to Turn Off or Disable QTP Results - XX","description":"Use Registry Editor (HKEY_LOCAL..) to disable QTP Results creation. Use Reporter.Filter & View results when run session ends to turn off QTP results.","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\/2011\/12\/how-to-turn-off-or-disable-qtp-results\/","twitter_misc":{"Written by":"Anish Pillai","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/how-to-turn-off-or-disable-qtp-results\/","url":"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/how-to-turn-off-or-disable-qtp-results\/","name":"3 ways on How to Turn Off or Disable QTP Results - XX","isPartOf":{"@id":"https:\/\/www.automationrepository.com\/wordpress\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/how-to-turn-off-or-disable-qtp-results\/#primaryimage"},"image":{"@id":"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/how-to-turn-off-or-disable-qtp-results\/#primaryimage"},"thumbnailUrl":"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/disable-turn-off-qtp-results.PNG","datePublished":"2011-12-09T21:55:06+00:00","dateModified":"2011-12-09T21:59:16+00:00","author":{"@id":"https:\/\/www.automationrepository.com\/wordpress\/#\/schema\/person\/7a35710e1ce89e5fb481be88fcd6cd20"},"description":"Use Registry Editor (HKEY_LOCAL..) to disable QTP Results creation. Use Reporter.Filter & View results when run session ends to turn off QTP results.","breadcrumb":{"@id":"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/how-to-turn-off-or-disable-qtp-results\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/how-to-turn-off-or-disable-qtp-results\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/how-to-turn-off-or-disable-qtp-results\/#primaryimage","url":"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/disable-turn-off-qtp-results.PNG","contentUrl":"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/disable-turn-off-qtp-results.PNG"},{"@type":"BreadcrumbList","@id":"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/how-to-turn-off-or-disable-qtp-results\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.automationrepository.com\/wordpress\/"},{"@type":"ListItem","position":2,"name":"3 ways on How to Turn Off or Disable QTP Results"}]},{"@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\/828","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=828"}],"version-history":[{"count":11,"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/posts\/828\/revisions"}],"predecessor-version":[{"id":879,"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/posts\/828\/revisions\/879"}],"wp:attachment":[{"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/media?parent=828"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/categories?post=828"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/tags?post=828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}