{"id":1951,"date":"2013-07-06T21:38:07","date_gmt":"2013-07-06T16:08:07","guid":{"rendered":"http:\/\/www.automationrepository.com\/?p=1951"},"modified":"2013-07-28T04:22:00","modified_gmt":"2013-07-27T22:52:00","slug":"prevent-windows-lock-during-qtp-batch-run","status":"publish","type":"post","link":"https:\/\/www.automationrepository.com\/wordpress\/2013\/07\/prevent-windows-lock-during-qtp-batch-run\/","title":{"rendered":"Quick Tip: How to prevent windows from getting locked during QTP batch run"},"content":{"rendered":"<p>I guess many of you folks would have faced the situation where, when you run your test scripts in batch mode, the scripts start to fail after a while as your windows machine gets locked.<\/p>\n<p><em> <\/em><br \/>\nMostly this happens because the organizations you work for have certain security rules which <!--more-->automatically locks down your windows machine when it is idle for a certain duration of time. And many a times you would not able to get past this, as this a org-level policy and it&#8217;s pretty difficult to get an exception.<\/p>\n<p><em> <\/em><br \/>\nThere are many different types of solutions to this &#8211; the most common one is to install and run some sort of &#8220;key-presser&#8221; application, which simulates some sort of key press event every 5-10 minutes thereby preventing the windows from getting locked. These sort of applications work well, but again it might be difficult to install these as your company&#8217;s software division might put some sort of restriction to download and use these applications.<\/p>\n<p><em> <\/em><br \/>\nWell, there is another solution to this. And that too, a very easy one. All that you have to do is &#8211; <span style=\"text-decoration: underline;\"><strong>Open Windows Media Player -&gt; run some song or video on it in a loop -&gt; and then leave the media player in minimized state.<\/strong><\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"QTP - Execute Test Scripts in Batch Mode\" alt=\"QTP - Execute Test Scripts in Batch Mode\" src=\"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/wmplayer-qtp.png\" width=\"320\" height=\"249\" \/><\/p>\n<p><em> <\/em><br \/>\nAs long as the song\/video runs continuously in loop in the media player, it would prevent your machine from getting locked. This is as simple as it gets.<\/p>\n<p><em> <\/em><br \/>\nAnd since windows media player is available by default on all the windows machines and it also comes with few default songs, it shouldn&#8217;t be a problem to try this out. And yes, don&#8217;t forget to put the player on mute. ;&#8211;)<\/p>\n<p><em> <\/em><br \/>\nWere you aware of this tip already? And has this been useful to you? Let us know your thoughts using the comments section.<br \/>\n<span><br \/>\n<\/span><\/p>\n<div style=\"border: 1px solid #C8B560; padding: 3mm; background: #FFF8C6; text-align: center;\">\n<p><strong>Interested in more tips and tricks about QTP? <\/strong>Join our blog to get new articles delivered directly in your inbox.<\/p>\n<form style=\"text-align: center;\" action=\"http:\/\/feedburner.google.com\/fb\/a\/mailverify\" method=\"post\" target=\"popupwindow\" onsubmit=\"window.open('http:\/\/feedburner.google.com\/fb\/a\/mailverify?uri=automationrepository\/feeds', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true\"><input style=\"width: 160px; height: 20px;\" type=\"text\" value=\"Enter Your Email Address\" onfocus=\"if (this.value == 'Enter Your Email Address') {this.value = '';}\" onblur=\"if (this.value == '') {this.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<\/form>\n<\/div>\n<p style=\"border: 1px solid #C38EC7; padding: 3mm; background: #EBDDE2;\">For more QTP Tutorials, you can visit our <strong><a title=\"QTP Tutorials\" href=\"http:\/\/www.automationrepository.com\/tutorials-for-qtp-beginners\/\" target=\"_blank\">QTP Tutorials<\/a><\/strong> page. You can also visit our <a title=\"Download\" href=\"http:\/\/www.automationrepository.com\/download\/\"><strong>Download<\/strong><\/a> Page to view all the downloadable content.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I guess many of you folks would have faced the situation where, when you run your test scripts in batch mode, the scripts start to fail after a while as your windows machine gets locked. Mostly this happens because the organizations you work for have certain security rules which<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[77,23],"tags":[126,127],"class_list":["post-1951","post","type-post","status-publish","format-standard","hentry","category-did-you-know","category-general","tag-qtp-batch-execution","tag-windows-lock"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Quick Tip: How to prevent windows from getting locked during QTP batch run - XX<\/title>\n<meta name=\"description\" content=\"Play a song\/video in a continuous loop in windows media player to prevent your system from getting locked during QTP batch run\" \/>\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\/2013\/07\/prevent-windows-lock-during-qtp-batch-run\/\" \/>\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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/2013\/07\/prevent-windows-lock-during-qtp-batch-run\/\",\"url\":\"https:\/\/www.automationrepository.com\/wordpress\/2013\/07\/prevent-windows-lock-during-qtp-batch-run\/\",\"name\":\"Quick Tip: How to prevent windows from getting locked during QTP batch run - XX\",\"isPartOf\":{\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/2013\/07\/prevent-windows-lock-during-qtp-batch-run\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/2013\/07\/prevent-windows-lock-during-qtp-batch-run\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/wmplayer-qtp.png\",\"datePublished\":\"2013-07-06T16:08:07+00:00\",\"dateModified\":\"2013-07-27T22:52:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/#\/schema\/person\/7a35710e1ce89e5fb481be88fcd6cd20\"},\"description\":\"Play a song\/video in a continuous loop in windows media player to prevent your system from getting locked during QTP batch run\",\"breadcrumb\":{\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/2013\/07\/prevent-windows-lock-during-qtp-batch-run\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.automationrepository.com\/wordpress\/2013\/07\/prevent-windows-lock-during-qtp-batch-run\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/2013\/07\/prevent-windows-lock-during-qtp-batch-run\/#primaryimage\",\"url\":\"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/wmplayer-qtp.png\",\"contentUrl\":\"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/wmplayer-qtp.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/2013\/07\/prevent-windows-lock-during-qtp-batch-run\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.automationrepository.com\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Quick Tip: How to prevent windows from getting locked during QTP batch run\"}]},{\"@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":"Quick Tip: How to prevent windows from getting locked during QTP batch run - XX","description":"Play a song\/video in a continuous loop in windows media player to prevent your system from getting locked during QTP batch run","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\/2013\/07\/prevent-windows-lock-during-qtp-batch-run\/","twitter_misc":{"Written by":"Anish Pillai","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.automationrepository.com\/wordpress\/2013\/07\/prevent-windows-lock-during-qtp-batch-run\/","url":"https:\/\/www.automationrepository.com\/wordpress\/2013\/07\/prevent-windows-lock-during-qtp-batch-run\/","name":"Quick Tip: How to prevent windows from getting locked during QTP batch run - XX","isPartOf":{"@id":"https:\/\/www.automationrepository.com\/wordpress\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.automationrepository.com\/wordpress\/2013\/07\/prevent-windows-lock-during-qtp-batch-run\/#primaryimage"},"image":{"@id":"https:\/\/www.automationrepository.com\/wordpress\/2013\/07\/prevent-windows-lock-during-qtp-batch-run\/#primaryimage"},"thumbnailUrl":"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/wmplayer-qtp.png","datePublished":"2013-07-06T16:08:07+00:00","dateModified":"2013-07-27T22:52:00+00:00","author":{"@id":"https:\/\/www.automationrepository.com\/wordpress\/#\/schema\/person\/7a35710e1ce89e5fb481be88fcd6cd20"},"description":"Play a song\/video in a continuous loop in windows media player to prevent your system from getting locked during QTP batch run","breadcrumb":{"@id":"https:\/\/www.automationrepository.com\/wordpress\/2013\/07\/prevent-windows-lock-during-qtp-batch-run\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.automationrepository.com\/wordpress\/2013\/07\/prevent-windows-lock-during-qtp-batch-run\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.automationrepository.com\/wordpress\/2013\/07\/prevent-windows-lock-during-qtp-batch-run\/#primaryimage","url":"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/wmplayer-qtp.png","contentUrl":"https:\/\/www.automationrepository.com\/wordpress\/wp-content\/uploads\/ar\/wmplayer-qtp.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.automationrepository.com\/wordpress\/2013\/07\/prevent-windows-lock-during-qtp-batch-run\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.automationrepository.com\/wordpress\/"},{"@type":"ListItem","position":2,"name":"Quick Tip: How to prevent windows from getting locked during QTP batch run"}]},{"@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\/1951","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=1951"}],"version-history":[{"count":17,"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/posts\/1951\/revisions"}],"predecessor-version":[{"id":2080,"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/posts\/1951\/revisions\/2080"}],"wp:attachment":[{"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1951"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1951"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}