<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;DEcAQXo5fip7ImA9WhRXEks.&quot;"><id>tag:blogger.com,1999:blog-6069755653761783193</id><updated>2011-12-18T19:40:40.426-08:00</updated><category term="Mail" /><category term="Register" /><category term="Hidden Method" /><category term="Object required: 'WScript'" /><category term="Outlook Automation" /><category term="MAPI" /><category term="Outlook" /><category term="QTP" /><category term="Send Mail" /><category term="Review" /><category term="Auto Locker" /><category term="QuickTest Automation" /><category term="SAPI" /><category term="Server side" /><category term="Client side" /><category term="On Error Resume Next" /><category term="And I Thought I knew QTP" /><category term="LockWorkStation" /><category term="Registry" /><category term="HTML Report" /><category term="Highlight Object" /><category term="API" /><category term="sync" /><category term="VBA" /><category term="Security Popup" /><category term="QTP-API" /><category term="Garbage" /><category term="QTP Send Mail" /><category term="WScript.Shell" /><category term="Mask Password" /><category term="Synchronization" /><category term="Debugger" /><category term="WScript" /><category term="HTML" /><category term="CLIP.exe" /><category term="Descriptive Programming" /><category term="Window" /><category term="Recording" /><category term="Jscript" /><category term="cmd" /><category term="JavaScript" /><category term="Copy cmd output" /><category term="MODULE" /><category term="Dictionary Object" /><category term="VBscript" /><title>My Experience With Test Automation</title><subtitle type="html" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://bughunterz.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://bughunterz.blogspot.com/" /><author><name>Hari Sreekanth Upadrasta</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="17" src="http://3.bp.blogspot.com/_edu3ERLixR4/SmBCCTeH1tI/AAAAAAAAAJg/ntD2obMDvOQ/S220/mypic2.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>22</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/MyExperienceWithTestAutomation" /><feedburner:info uri="myexperiencewithtestautomation" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;DEcAQXo_eip7ImA9WhRXEks.&quot;"><id>tag:blogger.com,1999:blog-6069755653761783193.post-7860790332836830114</id><published>2011-12-18T19:40:00.000-08:00</published><updated>2011-12-18T19:40:40.442-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-18T19:40:40.442-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Review" /><category scheme="http://www.blogger.com/atom/ns#" term="And I Thought I knew QTP" /><category scheme="http://www.blogger.com/atom/ns#" term="QTP" /><title>Yet Another Review: And I Thought I knew QTP By Tarun Lalwani</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/42KiOlEn06rjffDMl23Busq4ZwU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/42KiOlEn06rjffDMl23Busq4ZwU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/42KiOlEn06rjffDMl23Busq4ZwU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/42KiOlEn06rjffDMl23Busq4ZwU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;br /&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: inherit;"&gt;In Short the book is about a Test Automation Engineer who attends
an interview with a popular company. Nurat (The Test Automation Engineer) in
the process of attending the interview he is challenged continuously on different
aspects of QTP and Programming. Though he over comes most of the challenges, he
recollects/discovers a lot of things that he might have ignored before.&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: inherit;"&gt;The book is collection of a lot of challenges/myth busters.
It is for every one who has some working knowledge of QTP. Since the book is
not a structured collection of topics, if you are a beginner then it is
suggested to read QTP Unplugged (by Tarun Lalwani) before this book.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6069755653761783193-7860790332836830114?l=bughunterz.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MyExperienceWithTestAutomation/~4/x7XivohyPng" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://bughunterz.blogspot.com/feeds/7860790332836830114/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6069755653761783193&amp;postID=7860790332836830114&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/7860790332836830114?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/7860790332836830114?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MyExperienceWithTestAutomation/~3/x7XivohyPng/yet-another-review-and-i-thought-i-knew.html" title="Yet Another Review: And I Thought I knew QTP By Tarun Lalwani" /><author><name>Hari Sreekanth Upadrasta</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="17" src="http://3.bp.blogspot.com/_edu3ERLixR4/SmBCCTeH1tI/AAAAAAAAAJg/ntD2obMDvOQ/S220/mypic2.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://bughunterz.blogspot.com/2011/12/yet-another-review-and-i-thought-i-knew.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0QDRn4yeyp7ImA9WxBaEEo.&quot;"><id>tag:blogger.com,1999:blog-6069755653761783193.post-5903880170754590987</id><published>2010-02-02T01:25:00.000-08:00</published><updated>2010-03-20T03:02:57.093-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-20T03:02:57.093-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="cmd" /><category scheme="http://www.blogger.com/atom/ns#" term="Copy cmd output" /><category scheme="http://www.blogger.com/atom/ns#" term="CLIP.exe" /><title>A Utility called "CLIP"</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/zhFpq7zeKbKeqm0viVgBzyVnMy8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zhFpq7zeKbKeqm0viVgBzyVnMy8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/zhFpq7zeKbKeqm0viVgBzyVnMy8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zhFpq7zeKbKeqm0viVgBzyVnMy8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div align="justify"&gt;Some one in a&lt;a href="http://www.blogger.com/www.Advancedqtp.com/forums"&gt; forum&lt;/a&gt; asked about how to capture the output text of a command that is executed in commandline. After some search on web i came across a utility in windows called "CLIP.EXE". &lt;/div&gt;&lt;div align="justify"&gt;This captures the command output to clipboard. The way it works is very simple. Suppose we want to retrieve the output of &lt;strong&gt;help&lt;/strong&gt; command:&lt;/div&gt;&lt;div align="justify"&gt;C:\&gt;HELP   CLIP&lt;/div&gt;&lt;div align="justify"&gt;Now open any text editor other than Notepad(which is having a limitation) and paste.&lt;/div&gt;&lt;div align="justify"&gt;You can see that the output of command HELP is redirected to clipboard and you can paste it any where.&lt;/div&gt;&lt;div align="justify"&gt;The way in which you apply this tool can make it a really wonderful utility.&lt;/div&gt;&lt;div align="justify"&gt;regards,&lt;/div&gt;&lt;div align="justify"&gt;Hari Sreekanth Upadrasta&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6069755653761783193-5903880170754590987?l=bughunterz.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MyExperienceWithTestAutomation/~4/4KypVI_hdJ0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://bughunterz.blogspot.com/feeds/5903880170754590987/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6069755653761783193&amp;postID=5903880170754590987&amp;isPopup=true" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/5903880170754590987?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/5903880170754590987?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MyExperienceWithTestAutomation/~3/4KypVI_hdJ0/utility-called-clip.html" title="A Utility called &quot;CLIP&quot;" /><author><name>Hari Sreekanth Upadrasta</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="17" src="http://3.bp.blogspot.com/_edu3ERLixR4/SmBCCTeH1tI/AAAAAAAAAJg/ntD2obMDvOQ/S220/mypic2.jpg" /></author><thr:total>2</thr:total><feedburner:origLink>http://bughunterz.blogspot.com/2010/02/utility-called-clip.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0cNQHk_cCp7ImA9WxNUEkk.&quot;"><id>tag:blogger.com,1999:blog-6069755653761783193.post-6478919653912612084</id><published>2009-11-03T03:45:00.000-08:00</published><updated>2009-11-03T03:51:31.748-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-03T03:51:31.748-08:00</app:edited><title>Dotnetfactory 2: DATE/TIME format conversion</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/kDB29ga1dGxzM25e4kcG2tZOoZg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kDB29ga1dGxzM25e4kcG2tZOoZg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/kDB29ga1dGxzM25e4kcG2tZOoZg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kDB29ga1dGxzM25e4kcG2tZOoZg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Earlier i have created a .dll built in vb to convert the given date/time to a specified format. There are two problems with it:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Companies(most of them) won't allow people to use external dlls or exes to be used or downloaded.&lt;/li&gt;&lt;li&gt;There was no way to specify the input date format ie if the i/p date is in "MMyydd" format you can not convert it.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;So here is a work around:&lt;br /&gt;&lt;span style="color:#66ffff;"&gt;&lt;span style="color:#3333ff;"&gt;'Start of code*************************************************************************&lt;br /&gt;msgbox DateTimeConverter("670919","yyMMdd","dd-MMM-yyyy")&lt;br /&gt;Function DateTimeConverter(InputDate,InputFormat,OutputFormat)&lt;br /&gt;Set DateTime =DotNetFactory.CreateInstance("System.DateTime").ParseExact(InputDate, InputFormat, culture )&lt;br /&gt;DateTimeConverter = DateTime.tostring(OutputFormat)&lt;br /&gt;Set DateTime = Nothing : Set culture = Nothing&lt;br /&gt;End Function&lt;br /&gt;'End of code************************************************************************** &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;Enjoy...&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6069755653761783193-6478919653912612084?l=bughunterz.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MyExperienceWithTestAutomation/~4/8NBY_Vcq9AM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://bughunterz.blogspot.com/feeds/6478919653912612084/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6069755653761783193&amp;postID=6478919653912612084&amp;isPopup=true" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/6478919653912612084?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/6478919653912612084?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MyExperienceWithTestAutomation/~3/8NBY_Vcq9AM/dotnetfactory-2-datetime-format.html" title="Dotnetfactory 2: DATE/TIME format conversion" /><author><name>Hari Sreekanth Upadrasta</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="17" src="http://3.bp.blogspot.com/_edu3ERLixR4/SmBCCTeH1tI/AAAAAAAAAJg/ntD2obMDvOQ/S220/mypic2.jpg" /></author><thr:total>2</thr:total><feedburner:origLink>http://bughunterz.blogspot.com/2009/11/dotnetfactory-2-datetime-format.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0YFRHs-cSp7ImA9WxNUEkk.&quot;"><id>tag:blogger.com,1999:blog-6069755653761783193.post-6943677302571003871</id><published>2009-11-03T00:52:00.000-08:00</published><updated>2009-11-03T03:51:55.559-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-03T03:51:55.559-08:00</app:edited><title>Dotnetfactory 1: Searching Files in a directory/folder including the subdirectories</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/lakBDov3m7ApI9pUyAn0QSqD2_Y/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lakBDov3m7ApI9pUyAn0QSqD2_Y/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/lakBDov3m7ApI9pUyAn0QSqD2_Y/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lakBDov3m7ApI9pUyAn0QSqD2_Y/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;I have decided to post tips or my findings on using .net in QTP .So the first tip is searching files in side a folder. This piece of code retrieves the file names and the file path with the specified pattern even if they are in the subfolders.&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;'Start of code ************************************************************************* Set SearchOpt = DotNetFactory.CreateInstance( "System.IO.SearchOption")&lt;br /&gt;Set dirInfo = DotNetFactory.CreateInstance( "System.IO.Directoryinfo",,"C:\New Folder" )&lt;br /&gt;Set Ofiles= dirInfo.GetFiles( "*.pdf",SearchOpt.AllDirectories)&lt;br /&gt;For i = 0 to Cint(Ofiles.Length)-1&lt;br /&gt;Print Ofiles.getvalue(i).DirectoryName &amp;amp; "\" &amp;amp; Ofiles.getvalue(i).Name&lt;br /&gt;Next&lt;br /&gt;'End of Code *************************************************************************&lt;br /&gt;&lt;/span&gt;&lt;p&gt;Please help yourself by creating functions that you want.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6069755653761783193-6943677302571003871?l=bughunterz.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MyExperienceWithTestAutomation/~4/AVnx8Z4eWWE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://bughunterz.blogspot.com/feeds/6943677302571003871/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6069755653761783193&amp;postID=6943677302571003871&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/6943677302571003871?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/6943677302571003871?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MyExperienceWithTestAutomation/~3/AVnx8Z4eWWE/dotnetfactory-1-searching-files-in.html" title="Dotnetfactory 1: Searching Files in a directory/folder including the subdirectories" /><author><name>Hari Sreekanth Upadrasta</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="17" src="http://3.bp.blogspot.com/_edu3ERLixR4/SmBCCTeH1tI/AAAAAAAAAJg/ntD2obMDvOQ/S220/mypic2.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://bughunterz.blogspot.com/2009/11/dotnetfactory-1-searching-files-in.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkABQHYycSp7ImA9WxNSGU8.&quot;"><id>tag:blogger.com,1999:blog-6069755653761783193.post-7484843885668010429</id><published>2009-09-02T06:56:00.000-07:00</published><updated>2009-09-02T12:45:51.899-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-02T12:45:51.899-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="QTP" /><category scheme="http://www.blogger.com/atom/ns#" term="VBscript" /><category scheme="http://www.blogger.com/atom/ns#" term="On Error Resume Next" /><title>When not to place positive condition in "If"</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/V9w3j-PLESX2WST43-mm35NzMHM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/V9w3j-PLESX2WST43-mm35NzMHM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/V9w3j-PLESX2WST43-mm35NzMHM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/V9w3j-PLESX2WST43-mm35NzMHM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-family:arial;"&gt;It is general practice to keep positive conditions(some thing we are expecting to happen) in If part of the "If Else". But there will be situations which you have to be really careful about doing so. Consider a Test Automation Project where you want to run some 100 Test Script in a batch. So in this condition you may ask your Test not to stop if an error occours. So you use "On Error Resume Next" here is a sample script:&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;On Error Resume Next&lt;br /&gt;If Browser("brow").Page("pag").link("lnk").exist Then&lt;br /&gt;Reporter.reportevent micpass,"checking link","link lnk exists"&lt;br /&gt;Else&lt;br /&gt;Reporter.reportevent micfail,"checking link","link lnk does not exists"&lt;br /&gt;End If&lt;br /&gt;&lt;/span&gt;Just copy the code(no need of any object repository) and run it in QTP. WoW you will observe the your script passed(with out object repository or any thing). Similarly cpoy and run the below code:&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;On Error Resume Next&lt;br /&gt;If not(Browser("brow").Page("pag").link("lnk").exist)Then&lt;br /&gt;Reporter.reportevent micfail,"checking link","link lnk does not exists"&lt;br /&gt;Else&lt;br /&gt;Reporter.reportevent micpass,"checking link","link lnk exists"&lt;br /&gt;End If&lt;br /&gt;&lt;/span&gt;Now the script fails and it explains my statement.I know that i am not good at explaining things so i leave the rest to you.Thanks for reading&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6069755653761783193-7484843885668010429?l=bughunterz.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MyExperienceWithTestAutomation/~4/eMKn3lgX040" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://bughunterz.blogspot.com/feeds/7484843885668010429/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6069755653761783193&amp;postID=7484843885668010429&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/7484843885668010429?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/7484843885668010429?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MyExperienceWithTestAutomation/~3/eMKn3lgX040/when-not-to-place-positive-condition-in.html" title="When not to place positive condition in &quot;If&quot;" /><author><name>Hari Sreekanth Upadrasta</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="17" src="http://3.bp.blogspot.com/_edu3ERLixR4/SmBCCTeH1tI/AAAAAAAAAJg/ntD2obMDvOQ/S220/mypic2.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://bughunterz.blogspot.com/2009/09/when-not-to-place-positive-condition-in.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkMERXY-fSp7ImA9WxNSFUg.&quot;"><id>tag:blogger.com,1999:blog-6069755653761783193.post-41395027629996974</id><published>2009-08-11T08:27:00.000-07:00</published><updated>2009-08-29T07:00:04.855-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-29T07:00:04.855-07:00</app:edited><title>Skip the Page Object</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/M71v5V7itBE6sUX1_JZIuMnbtVk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/M71v5V7itBE6sUX1_JZIuMnbtVk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/M71v5V7itBE6sUX1_JZIuMnbtVk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/M71v5V7itBE6sUX1_JZIuMnbtVk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="color:#000000;"&gt;But why?&lt;br /&gt;Because i don't need it(Page).&lt;br /&gt;Use?&lt;br /&gt;Reduces time by a fraction of actual time.&lt;br /&gt;How to use?&lt;br /&gt;Just delete the Page Object&lt;br /&gt;&lt;img id="BLOGGER_PHOTO_ID_5368741891307806610" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 404px; CURSOR: hand; HEIGHT: 72px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_edu3ERLixR4/SoGaTiopH5I/AAAAAAAAAKA/toGe6uUml9A/s400/page.jpg" border="0" /&gt;Browser("Google").link("Advanced Search").click &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6069755653761783193-41395027629996974?l=bughunterz.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MyExperienceWithTestAutomation/~4/tQAYwmQtGuM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://bughunterz.blogspot.com/feeds/41395027629996974/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6069755653761783193&amp;postID=41395027629996974&amp;isPopup=true" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/41395027629996974?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/41395027629996974?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MyExperienceWithTestAutomation/~3/tQAYwmQtGuM/skip-page-object.html" title="Skip the Page Object" /><author><name>Hari Sreekanth Upadrasta</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="17" src="http://3.bp.blogspot.com/_edu3ERLixR4/SmBCCTeH1tI/AAAAAAAAAJg/ntD2obMDvOQ/S220/mypic2.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_edu3ERLixR4/SoGaTiopH5I/AAAAAAAAAKA/toGe6uUml9A/s72-c/page.jpg" height="72" width="72" /><thr:total>2</thr:total><feedburner:origLink>http://bughunterz.blogspot.com/2009/08/skip-page-object.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0EFR3g5fCp7ImA9WxJaFk8.&quot;"><id>tag:blogger.com,1999:blog-6069755653761783193.post-3168675995318609125</id><published>2009-06-06T07:01:00.000-07:00</published><updated>2009-08-06T23:13:36.624-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-06T23:13:36.624-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="QTP" /><category scheme="http://www.blogger.com/atom/ns#" term="Dictionary Object" /><category scheme="http://www.blogger.com/atom/ns#" term="Debugger" /><category scheme="http://www.blogger.com/atom/ns#" term="Garbage" /><title>On How i was fooled by Debugger using Dictionary Object in QTP</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/pDHSC8KZ86kJeDQOmsNQ8n1W3lg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pDHSC8KZ86kJeDQOmsNQ8n1W3lg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/pDHSC8KZ86kJeDQOmsNQ8n1W3lg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pDHSC8KZ86kJeDQOmsNQ8n1W3lg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;Recently i was working on a project where i have been using Dictionary object a lot. In a function i had to retrieve the number of Items that i have added to the Dictionary.&lt;br /&gt;But to my utter dismay I found that the number of items in the dictionary turned out to be two more than the items actually added to it. So I tried to find out of how did that happened, when I was not able to, I googled a lot (thinking that dictionary objects may be collecting some garbage value)but found nothing that could satisfy me. So I just left it there.&lt;br /&gt;The other day I started working on other things where I had to add some variables to debug viewer and verify their values in runtime. After the second run of the test I found that the values of the variables that I added to the debug viewer are having value as EMPTY. Then I realized the real culprit for making me and my dictionary object go bonkers is THE DEBUG VIEWER&lt;br /&gt;&lt;br /&gt;How did this happen:&lt;br /&gt;I entered two dictionary items in to the debug viewer for which the keys are non existent.&lt;br /&gt;And the next time I ran my script, the items got initialized to empty (Dictionary can take Empty values).&lt;br /&gt;So as a victim of the Debug Viewer I just want to tell you a few things.&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:Arial;"&gt;Points that should be kept in mind while using debugger while debugging&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;Remove all the items from the debug viewer after debugging.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;QTP can hang if you have placed exist statement in the debug viewer and start your script.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;QTP can be very slow if you debug your scripts with lot of “Exist” statements in it(debug viewer).&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;And Finally don’t do the mistake I have done(Dictionary can take Empty values)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style="font-family:arial;"&gt;With Regards,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:arial;"&gt;AVictim&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6069755653761783193-3168675995318609125?l=bughunterz.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MyExperienceWithTestAutomation/~4/RZ3JlPacNuk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://bughunterz.blogspot.com/feeds/3168675995318609125/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6069755653761783193&amp;postID=3168675995318609125&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/3168675995318609125?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/3168675995318609125?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MyExperienceWithTestAutomation/~3/RZ3JlPacNuk/on-how-i-got-fooled-by-debugger-using.html" title="On How i was fooled by Debugger using Dictionary Object in QTP" /><author><name>Hari Sreekanth Upadrasta</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="17" src="http://3.bp.blogspot.com/_edu3ERLixR4/SmBCCTeH1tI/AAAAAAAAAJg/ntD2obMDvOQ/S220/mypic2.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://bughunterz.blogspot.com/2009/06/on-how-i-got-fooled-by-debugger-using.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUEARn0yfSp7ImA9WxNSFUg.&quot;"><id>tag:blogger.com,1999:blog-6069755653761783193.post-3384586077229815671</id><published>2009-03-18T03:56:00.000-07:00</published><updated>2009-08-29T07:54:07.395-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-29T07:54:07.395-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MODULE" /><category scheme="http://www.blogger.com/atom/ns#" term="VBA" /><category scheme="http://www.blogger.com/atom/ns#" term="QTP" /><category scheme="http://www.blogger.com/atom/ns#" term="VBscript" /><title>Creating/Using VBA function Library in QTP/VBscript</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/NnscX_UetJY9ZH-diLhafHgekIo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NnscX_UetJY9ZH-diLhafHgekIo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/NnscX_UetJY9ZH-diLhafHgekIo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NnscX_UetJY9ZH-diLhafHgekIo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="TEXT-ALIGN: justify"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Hi,&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="TEXT-ALIGN: justify"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="TEXT-ALIGN: justify"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="font-family:arial;"&gt;So finally i broke the shackles and started posting in my blog.&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;I&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt; have been working on some issues Recently.In the process i came to know that vba is somewhat superior to vbscript in Test Automation scripts development(Check this &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/30593abb(VS.85).aspx"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(0,0,0)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;link&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;).So i started creating a function library in vba for use in vbscript and succeded upto an extent.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"&gt;&lt;div style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 3px; PADDING-LEFT: 3px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 3px; MARGIN: 0px; FONT: 100% Georgia, serif; WIDTH: auto; PADDING-TOP: 3px; TEXT-ALIGN: left; BORDER-RIGHT-WIDTH: 0px"&gt;&lt;div style="TEXT-ALIGN: justify"&gt;&lt;span class="Apple-style-span" style="FONT-WEIGHT: bold"&gt;&lt;span class="Apple-style-span" style="FONT-WEIGHT: normal"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Here is my procedure:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div id="__ss_1184558" style="WIDTH: 425px; TEXT-ALIGN: left"&gt;&lt;br /&gt;&lt;embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=" stripped_title="creating-a-vba-function-library-for-use-in-qtpvbscript" width="425" height="355" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"&gt;&lt;/embed&gt;&lt;div style="FONT-SIZE: 11px; PADDING-TOP: 2px; FONT-FAMILY: tahoma,arial; HEIGHT: 26px"&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="TEXT-ALIGN: justify"&gt;&lt;/div&gt;&lt;div style="TEXT-ALIGN: justify"&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="FONT-WEIGHT: bold"&gt;&lt;span class="Apple-style-span" style="FONT-WEIGHT: normal"&gt;There &lt;/span&gt;&lt;span class="Apple-style-span" style="FONT-WEIGHT: normal"&gt;are lots of Advantages of using a vba function library in qtp/vbscript which will be mentioned in my next post until then happy scripting.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6069755653761783193-3384586077229815671?l=bughunterz.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MyExperienceWithTestAutomation/~4/1tfaJsq4AYU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://bughunterz.blogspot.com/feeds/3384586077229815671/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6069755653761783193&amp;postID=3384586077229815671&amp;isPopup=true" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/3384586077229815671?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/3384586077229815671?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MyExperienceWithTestAutomation/~3/1tfaJsq4AYU/creatingusing-vba-function-library-in.html" title="Creating/Using VBA function Library in QTP/VBscript" /><author><name>Hari Sreekanth Upadrasta</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="17" src="http://3.bp.blogspot.com/_edu3ERLixR4/SmBCCTeH1tI/AAAAAAAAAJg/ntD2obMDvOQ/S220/mypic2.jpg" /></author><thr:total>1</thr:total><feedburner:origLink>http://bughunterz.blogspot.com/2009/03/creatingusing-vba-function-library-in.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUACQH09cCp7ImA9WxNSFUg.&quot;"><id>tag:blogger.com,1999:blog-6069755653761783193.post-9071257817449639692</id><published>2008-10-08T05:34:00.000-07:00</published><updated>2009-08-29T07:56:01.368-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-29T07:56:01.368-07:00</app:edited><title>Convert any DATE/TIME format to any DATE/TIME format.</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5PwifuaA95AKJtcYViNFeX8L8-c/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5PwifuaA95AKJtcYViNFeX8L8-c/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/5PwifuaA95AKJtcYViNFeX8L8-c/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5PwifuaA95AKJtcYViNFeX8L8-c/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span class="Apple-style-span"&gt;&lt;div style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 3px; PADDING-LEFT: 3px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 3px; MARGIN: 0px; FONT: 100% Georgia, serif; WIDTH: auto; PADDING-TOP: 3px; TEXT-ALIGN: left; BORDER-RIGHT-WIDTH: 0px"&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="Apple-style-span"&gt;Hi,&lt;/span&gt; &lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="TEXT-ALIGN: justify"&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="Apple-style-span"&gt;Finally i think i have done what i have &lt;/span&gt;&lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_0"&gt;&lt;span class="Apple-style-span"&gt;thought&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"&gt; of doing from long time. This has been bugging me from a long time.Now we can convert almost any DATE/TIME format to any required DATE/TIME format.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="TEXT-ALIGN: justify"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Suppose you want to convert 12,jan 2008 to january,08-12. you can just do that as simple as this: &lt;/span&gt;&lt;/div&gt;&lt;div style="TEXT-ALIGN: justify"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="FONT-WEIGHT: bold;font-family:arial;" &gt;reformat = DTFormat("12,jan 2008","MMMM,YY-DD")&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="TEXT-ALIGN: justify"&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="Apple-style-span"&gt; &lt;/span&gt;&lt;span class="Apple-style-span"&gt;Procedure:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li style="TEXT-ALIGN: justify"&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="Apple-style-span"&gt;Download the Zip File &lt;/span&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;a href="http://www.box.net/shared/55ycsorjcm"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,51,255)"&gt;&lt;span class="Apple-style-span" style="FONT-WEIGHT: bold"&gt;DTFormat&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"&gt; to your QTP's Bin folder(or any where you want).&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="TEXT-ALIGN: justify"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Unzip it (The folder contains three files DTFormat.dll , DTFormat.vbs and DTFormat.Doc).&lt;/span&gt;&lt;/li&gt;&lt;li style="TEXT-ALIGN: justify"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Double click on DTFormat.vbs file.&lt;/span&gt;&lt;/li&gt;&lt;li style="TEXT-ALIGN: justify"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Enter the name with which you want to use this functionality in QTP.&lt;/span&gt;&lt;/li&gt;&lt;li style="TEXT-ALIGN: justify"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Click OK button.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="Apple-style-span"&gt;This is very powerful indeed Read the Document in the zip file to know the power of it.&lt;/span&gt; &lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;This is also a powerful time converter as well.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;regards,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6069755653761783193-9071257817449639692?l=bughunterz.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MyExperienceWithTestAutomation/~4/Z5UjTTpsF38" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://bughunterz.blogspot.com/feeds/9071257817449639692/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6069755653761783193&amp;postID=9071257817449639692&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/9071257817449639692?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/9071257817449639692?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MyExperienceWithTestAutomation/~3/Z5UjTTpsF38/convert-any-datetime-format-to-any.html" title="Convert any DATE/TIME format to any DATE/TIME format." /><author><name>Hari Sreekanth Upadrasta</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="17" src="http://3.bp.blogspot.com/_edu3ERLixR4/SmBCCTeH1tI/AAAAAAAAAJg/ntD2obMDvOQ/S220/mypic2.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://bughunterz.blogspot.com/2008/10/convert-any-datetime-format-to-any.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkcCQn08fCp7ImA9WxNSFUg.&quot;"><id>tag:blogger.com,1999:blog-6069755653761783193.post-5839854647861554916</id><published>2008-10-07T04:03:00.000-07:00</published><updated>2009-08-29T08:01:03.374-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-29T08:01:03.374-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Mask Password" /><category scheme="http://www.blogger.com/atom/ns#" term="QTP" /><category scheme="http://www.blogger.com/atom/ns#" term="HTML" /><title>Masking Passwords</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/h2jIo_CR2A7-57q3bfbeYnEE8Yg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/h2jIo_CR2A7-57q3bfbeYnEE8Yg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/h2jIo_CR2A7-57q3bfbeYnEE8Yg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/h2jIo_CR2A7-57q3bfbeYnEE8Yg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span class="Apple-style-span" style="LINE-HEIGHT: 19px;font-size:13;" &gt;&lt;div style="TEXT-ALIGN: justify"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"   style="font-family:arial;font-size:medium;"&gt;Today i had a weird situation.i had to enter my password in a driver script before my project mates and my manager, to show them a demo of how it works.The situation is so weird that i can't ask them to turn to the other side nor was i capable of entering passwords faster(i have to enter password in a inputbox).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="TEXT-ALIGN: justify"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="TEXT-ALIGN: justify"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"   style="font-family:arial;font-size:medium;"&gt;So, i thought of exploring it a bit and did some Google search and got some piece of code it uses the property of the password element of the HTML.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"   style="font-family:arial;font-size:medium;"&gt;Here is the code:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,51,255)"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&amp;lt;SCRIPT LANGUAGE="VBScript"&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Sub RunScript&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;    OKClicked.Value = "OK"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;End Sub&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Sub CancelScript&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;    OKClicked.Value = "Cancelled"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;End Sub&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&amp;lt;/SCRIPT&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&amp;lt;BODY&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&amp;lt;font size="2" face="Arial"&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;Password: &amp;lt;/font&amp;gt;&amp;lt;font face="Arial"&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&amp;lt;input type="password" name="UserPassword" size="40"&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&amp;lt;input type="hidden" name="OKClicked" size = "20"&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&amp;lt;input id=runbutton class="button" type="button" value=" OK " &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;name="ok_button" onClick="RunScript"&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&amp;lt;input id=runbutton class="button" type="button" value="Cancel" &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;name="cancel_button" onClick="CancelScript"&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&amp;lt;/BODY&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,153,153)"&gt;C&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;opy the code and paste it in note pad and save it in your C drive as "Password.htm"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"   style="font-family:arial;font-size:medium;"&gt;Now open another notepad, paste the code below and save it as Password.vbs&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Set &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;objExplorer&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt; = &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;WScript&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;CreateObject&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt; _&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"   style="font-family:arial;font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;    ("&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;InternetExplorer&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;.Application", "IE_")&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;objExplorer&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;.Navigate "file:///C:\Scripts\password.htm"   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;objExplorer&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;ToolBar&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt; = 0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;objExplorer&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;StatusBar&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt; = 0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;objExplorer&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;.Width = 400&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;objExplorer&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;.Height = 350 &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;objExplorer&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;.Left = 300&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;objExplorer&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;.Top = 200&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;objExplorer&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;.Visible = 1             &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"   style="font-family:arial;font-size:medium;"&gt;Do While (objExplorer.Document.Body.All.OKClicked.Value = "")&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Wscript&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;.Sleep 250                 &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"   style="font-family:arial;font-size:medium;"&gt;Loop &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;strPassword&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt; = objExplorer.Document.Body.All.UserPassword.Value&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;strButton&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt; = objExplorer.Document.Body.All.OKClicked.Value&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;objExplorer&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;.Quit&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Wscript&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;.Sleep 250&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;If &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;strButton&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt; = "Cancelled" Then&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Wscript&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;.Quit&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"   style="font-family:arial;font-size:medium;"&gt;End If&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"   style="font-family:arial;font-size:medium;"&gt;'Now you can use the entered password&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;msgbox&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;strPassword&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"   style="font-family:arial;font-size:medium;"&gt;Now double click on the Password.vbs file&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"   style="font-family:arial;font-size:medium;"&gt;Remember there are other ways of doing it even more effectively but this is the most robust way(it works independent of O/S).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"   style="font-family:arial;font-size:medium;"&gt;Regards,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6069755653761783193-5839854647861554916?l=bughunterz.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MyExperienceWithTestAutomation/~4/PzMNZngUnmw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://bughunterz.blogspot.com/feeds/5839854647861554916/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6069755653761783193&amp;postID=5839854647861554916&amp;isPopup=true" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/5839854647861554916?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/5839854647861554916?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MyExperienceWithTestAutomation/~3/PzMNZngUnmw/masking-passwords-in-driver-scripts.html" title="Masking Passwords" /><author><name>Hari Sreekanth Upadrasta</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="17" src="http://3.bp.blogspot.com/_edu3ERLixR4/SmBCCTeH1tI/AAAAAAAAAJg/ntD2obMDvOQ/S220/mypic2.jpg" /></author><thr:total>2</thr:total><feedburner:origLink>http://bughunterz.blogspot.com/2008/10/masking-passwords-in-driver-scripts.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0cCRns-fip7ImA9WxVbF0g.&quot;"><id>tag:blogger.com,1999:blog-6069755653761783193.post-5411885635955523858</id><published>2008-09-04T01:24:00.000-07:00</published><updated>2009-04-03T04:44:27.556-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-04-03T04:44:27.556-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Outlook Automation" /><category scheme="http://www.blogger.com/atom/ns#" term="MAPI" /><category scheme="http://www.blogger.com/atom/ns#" term="QTP" /><category scheme="http://www.blogger.com/atom/ns#" term="Outlook" /><category scheme="http://www.blogger.com/atom/ns#" term="Mail" /><title>Automation Outlook:Verify Mail in Outlook</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/HNIiPaLc3iKqf-4XmKJ3kLU57OE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HNIiPaLc3iKqf-4XmKJ3kLU57OE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/HNIiPaLc3iKqf-4XmKJ3kLU57OE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HNIiPaLc3iKqf-4XmKJ3kLU57OE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;Hi,&lt;br /&gt;We have seen in my previous post on howto send email no lets look at how to verify them.&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 102, 255);"&gt;olFolderInbox = 6&lt;br /&gt;varSubject = "Test Mail"        'The subject of your mail&lt;br /&gt;Set objOutlook = CreateObject("outlook.application")&lt;br /&gt;Set objNameSpace = objOutlook.GetNameSpace("MAPI")&lt;br /&gt;Set Inbox = objNameSpace.GetDefaultFolder(olFolderInbox)&lt;br /&gt;Set Mail = Inbox.Items.Restrict("[Subject] = " &amp;amp; Chr(34) &amp;amp; varSubject &amp;amp; Chr(34) )&lt;br /&gt;'The above line is used to filter mails by subject similarly u can use "From" in place of subject.&lt;br /&gt;if Mail.Count = 1 then&lt;br /&gt; Msgbox "Mail Found"&lt;br /&gt;Else&lt;br /&gt;Msgbox "Mail Not present or there are More than one mail with same subject"&lt;br /&gt;End if&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 102, 255);"&gt;&lt;br /&gt;&lt;/span&gt;Thats it for now .&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6069755653761783193-5411885635955523858?l=bughunterz.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MyExperienceWithTestAutomation/~4/jpjMytPOdY4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://bughunterz.blogspot.com/feeds/5411885635955523858/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6069755653761783193&amp;postID=5411885635955523858&amp;isPopup=true" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/5411885635955523858?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/5411885635955523858?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MyExperienceWithTestAutomation/~3/jpjMytPOdY4/automation-outlookverify-mail-in.html" title="Automation Outlook:Verify Mail in Outlook" /><author><name>Hari Sreekanth Upadrasta</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="17" src="http://3.bp.blogspot.com/_edu3ERLixR4/SmBCCTeH1tI/AAAAAAAAAJg/ntD2obMDvOQ/S220/mypic2.jpg" /></author><thr:total>5</thr:total><feedburner:origLink>http://bughunterz.blogspot.com/2008/09/automation-outlookverify-mail-in.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0UDSXwyfCp7ImA9WxJaFEo.&quot;"><id>tag:blogger.com,1999:blog-6069755653761783193.post-5756771826326958340</id><published>2008-08-27T03:45:00.000-07:00</published><updated>2009-08-05T06:34:38.294-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-05T06:34:38.294-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Outlook Automation" /><category scheme="http://www.blogger.com/atom/ns#" term="QTP Send Mail" /><category scheme="http://www.blogger.com/atom/ns#" term="Outlook" /><category scheme="http://www.blogger.com/atom/ns#" term="VBscript" /><category scheme="http://www.blogger.com/atom/ns#" term="Send Mail" /><category scheme="http://www.blogger.com/atom/ns#" term="Mail" /><title>Automating Outlook:Creating Outlook Items-Mail</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/zV1JWefYLkfPVjYAKi_7tlQUxhA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zV1JWefYLkfPVjYAKi_7tlQUxhA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/zV1JWefYLkfPVjYAKi_7tlQUxhA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zV1JWefYLkfPVjYAKi_7tlQUxhA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hi,&lt;br /&gt;Wondering how to send a mail just check below.&lt;br /&gt;'Make sure that outlook is open&lt;br /&gt;Set oOutlook = GetObject(,"Outlook.Application")&lt;br /&gt;Set oMailItem = oOutlook.CreateItem(olMailItem)&lt;br /&gt;oMailItem.Display&lt;br /&gt;oMailItem.To = "&lt;a href="mailto:RecieverMail@mail.com"&gt;RecieverMail@mail.com&lt;/a&gt;"&lt;br /&gt;oMailItem.Subject = "AutomaticMail"&lt;br /&gt;oMailItem.Body = "This is Mail Body"&lt;br /&gt;Set oAttachment = MailItem.Attachment&lt;br /&gt;oAttachment.Add "C:\My Documents\Sample.xls"&lt;br /&gt;oMailItem.Send&lt;br /&gt;Here the previous sentence may give a popup so try using send keys method&lt;br /&gt;like this&lt;br /&gt;Set WshShell = CreateObject("WScript.Shell")&lt;br /&gt;WshShell.SendKeys "%s"&lt;br /&gt;So here comes the end check this blog for further tips on Outlook Automation.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6069755653761783193-5756771826326958340?l=bughunterz.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MyExperienceWithTestAutomation/~4/nS1OOJvApdo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://bughunterz.blogspot.com/feeds/5756771826326958340/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6069755653761783193&amp;postID=5756771826326958340&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/5756771826326958340?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/5756771826326958340?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MyExperienceWithTestAutomation/~3/nS1OOJvApdo/automating-outlookcreating-outlook.html" title="Automating Outlook:Creating Outlook Items-Mail" /><author><name>Hari Sreekanth Upadrasta</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="17" src="http://3.bp.blogspot.com/_edu3ERLixR4/SmBCCTeH1tI/AAAAAAAAAJg/ntD2obMDvOQ/S220/mypic2.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://bughunterz.blogspot.com/2008/08/automating-outlookcreating-outlook.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEcDQHc9eyp7ImA9WxdUGU4.&quot;"><id>tag:blogger.com,1999:blog-6069755653761783193.post-8216293086597716849</id><published>2008-08-05T02:52:00.000-07:00</published><updated>2008-08-05T03:27:51.963-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-08-05T03:27:51.963-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="SAPI" /><category scheme="http://www.blogger.com/atom/ns#" term="QTP" /><category scheme="http://www.blogger.com/atom/ns#" term="Server side" /><category scheme="http://www.blogger.com/atom/ns#" term="Client side" /><title>Before Automating SAP using QTP</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/G8uw4oqC7SdwZfMEVwuh9PE8CY0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/G8uw4oqC7SdwZfMEVwuh9PE8CY0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/G8uw4oqC7SdwZfMEVwuh9PE8CY0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/G8uw4oqC7SdwZfMEVwuh9PE8CY0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div align="justify"&gt;Hi,&lt;/div&gt;&lt;div align="justify"&gt;I have been working on a SAP implementation testing project from long time. I had a chance to work on Automating SAP. As you know about a famous Quote "Please read the instruction document before proceeding" is never followed either because of confidence or ignorance.&lt;/div&gt;&lt;div align="justify"&gt;OK iam done with saying philosophy.&lt;/div&gt;&lt;div align="justify"&gt;and these are the basic settings you need to enable scripting on your SAP GUI for windows apps&lt;/div&gt;&lt;div align="justify"&gt;1) Client side setting&lt;/div&gt;&lt;div align="justify"&gt;2) Server side setting&lt;/div&gt;&lt;div align="justify"&gt;Client side setting:Upon logging on to the SAP R/3 ,click on Customizing of Local Layout SAP toolbar button as shown below:&lt;/div&gt;&lt;img id="BLOGGER_PHOTO_ID_5230973096930581810" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 77px; CURSOR: hand; HEIGHT: 83px; TEXT-ALIGN: center" height="335" alt="" src="http://4.bp.blogspot.com/_edu3ERLixR4/SJgmURgsHTI/AAAAAAAAADo/sI918Rh5UQc/s400/untitled.bmp" width="365" border="0" /&gt; And click on Options button. The following window opens. Navigate to Scripting tab and select "Enable scripting" checkbox and deselect the other two options below the "Enable scripting" checkbox.This complets enabling clientside scripting.&lt;br /&gt;&lt;div align="justify"&gt;Serverside Setting:Run the transaction code &lt;strong&gt;RZ11 &lt;/strong&gt;,this opens &lt;strong&gt;Maintain Profile Parameters &lt;/strong&gt;page enter &lt;strong&gt;sapgui/user_scripting&lt;/strong&gt; and click on Display button.&lt;/div&gt;&lt;br /&gt;&lt;img id="BLOGGER_PHOTO_ID_5230975813430198722" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_edu3ERLixR4/SJgoyZQqwcI/AAAAAAAAADw/mDlqMntUUHI/s400/untitled.bmp" border="0" /&gt;this opens&lt;br /&gt;&lt;img id="BLOGGER_PHOTO_ID_5230976671956712738" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_edu3ERLixR4/SJgpkXhVvSI/AAAAAAAAAD4/XeMyRaNAAi4/s400/untitled.bmp" border="0" /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;p align="justify"&gt;check if Profileval is set to TRUE else click on change value button and change the value of profileval to TRUE.&lt;/p&gt;&lt;p&gt;This completes our Enable scripting process.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6069755653761783193-8216293086597716849?l=bughunterz.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MyExperienceWithTestAutomation/~4/xbX0B682xyw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://bughunterz.blogspot.com/feeds/8216293086597716849/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6069755653761783193&amp;postID=8216293086597716849&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/8216293086597716849?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/8216293086597716849?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MyExperienceWithTestAutomation/~3/xbX0B682xyw/before-automating-sap-using-qtp.html" title="Before Automating SAP using QTP" /><author><name>Hari Sreekanth Upadrasta</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="17" src="http://3.bp.blogspot.com/_edu3ERLixR4/SmBCCTeH1tI/AAAAAAAAAJg/ntD2obMDvOQ/S220/mypic2.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_edu3ERLixR4/SJgmURgsHTI/AAAAAAAAADo/sI918Rh5UQc/s72-c/untitled.bmp" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://bughunterz.blogspot.com/2008/08/before-automating-sap-using-qtp.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DU8GSXw4cSp7ImA9WxdWF0U.&quot;"><id>tag:blogger.com,1999:blog-6069755653761783193.post-4261709508518557874</id><published>2008-07-11T06:22:00.000-07:00</published><updated>2008-07-11T07:50:28.239-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-11T07:50:28.239-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="QTP-API" /><category scheme="http://www.blogger.com/atom/ns#" term="SAPI" /><category scheme="http://www.blogger.com/atom/ns#" term="API" /><title>A Word A Day 1st Day API</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/6PVYdckUC3VKIby6HBQucJMgK-4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6PVYdckUC3VKIby6HBQucJMgK-4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/6PVYdckUC3VKIby6HBQucJMgK-4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6PVYdckUC3VKIby6HBQucJMgK-4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div align="justify"&gt;This is a Post started by Bughunterz as a part of making test automation practitioners get updated with the jargons used in Test Automation and know how they are used.Let's get started.&lt;/div&gt;&lt;div align="justify"&gt; &lt;/div&gt;&lt;div align="justify"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;strong&gt;API(Application Programming Interface):&lt;/strong&gt; An API is a guide(remember it is just a guide) which keeps in it all the constants , objects and the object's methods and parameters with which the application or the application's features can be used in another program.&lt;/div&gt;&lt;div align="justify"&gt;&lt;strong&gt;EX:&lt;/strong&gt; Most of you might have came across QTP automation object model documentation this is QTP's automation API. &lt;/div&gt;&lt;div align="justify"&gt;&lt;strong&gt;Another EX:&lt;/strong&gt; Speech API(SAPI) is an API developed by Microsoft to allow the use of speech recognition and speech synthesis within Windows applications(Office).Here the Office applications are using the SAPI. &lt;/div&gt;&lt;div align="justify"&gt;In the same way if your manager comes to you and asks you to make your script speak once your test is completed.&lt;/div&gt;&lt;div align="justify"&gt;try the following lines in your QTP or VBscript editor and run it: &lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="color:#3333ff;"&gt;'**********************************************************************************&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="color:#3333ff;"&gt;Dim voice&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="color:#3333ff;"&gt;Set voice = CreateObject("SAPI.SpVoice")&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="color:#3333ff;"&gt;voice.speak "Yahoooo, it is working"&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="color:#3333ff;"&gt;'**********************************************************************************&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="color:#3333ff;"&gt;&lt;span style="color:#333333;"&gt;I&lt;/span&gt;&lt;span style="color:#000000;"&gt;f you get a chance to look at the SAPI you will find that &lt;strong&gt;SpVoice&lt;/strong&gt; is the object and &lt;strong&gt;speak&lt;/strong&gt; is the method of the object &lt;strong&gt;SpVoice&lt;/strong&gt;:&lt;img id="BLOGGER_PHOTO_ID_5221764939257507170" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 468px; CURSOR: hand; HEIGHT: 254px; TEXT-ALIGN: center" height="254" alt="" src="http://1.bp.blogspot.com/_edu3ERLixR4/SHdvi9EIbWI/AAAAAAAAADg/cLCKXI27Mws/s400/untitled.JPG" width="432" border="0" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;Looks interesting right.Just try some thing else now.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6069755653761783193-4261709508518557874?l=bughunterz.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MyExperienceWithTestAutomation/~4/cbWAK3F3ZUQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://bughunterz.blogspot.com/feeds/4261709508518557874/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6069755653761783193&amp;postID=4261709508518557874&amp;isPopup=true" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/4261709508518557874?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/4261709508518557874?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MyExperienceWithTestAutomation/~3/cbWAK3F3ZUQ/word-day-1st-day-api.html" title="A Word A Day 1st Day API" /><author><name>Hari Sreekanth Upadrasta</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="17" src="http://3.bp.blogspot.com/_edu3ERLixR4/SmBCCTeH1tI/AAAAAAAAAJg/ntD2obMDvOQ/S220/mypic2.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_edu3ERLixR4/SHdvi9EIbWI/AAAAAAAAADg/cLCKXI27Mws/s72-c/untitled.JPG" height="72" width="72" /><thr:total>1</thr:total><feedburner:origLink>http://bughunterz.blogspot.com/2008/07/word-day-1st-day-api.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0ANRnY4fCp7ImA9WxVbFkU.&quot;"><id>tag:blogger.com,1999:blog-6069755653761783193.post-1764863142147424462</id><published>2008-07-10T06:34:00.000-07:00</published><updated>2009-04-02T07:16:37.834-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-04-02T07:16:37.834-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Object required: 'WScript'" /><category scheme="http://www.blogger.com/atom/ns#" term="WScript" /><title>Error: "Object required: 'WScript'"</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/bJbnCBGOOwViXgT3v8lKjdkz-Ss/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bJbnCBGOOwViXgT3v8lKjdkz-Ss/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/bJbnCBGOOwViXgT3v8lKjdkz-Ss/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bJbnCBGOOwViXgT3v8lKjdkz-Ss/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div align="justify"&gt;Hi,&lt;br /&gt;After a day of Introspection i finally got some time to sit on my Blog and answer a Question which i faced frequently.&lt;br /&gt;&lt;em&gt;QTP is throwing error " Error: "Object required: 'WScript'" " what can be the reason? &lt;/em&gt;&lt;br /&gt;Thanks to Eric Lippert's blog "&lt;a class="headermaintitle" id="ctl00___ctl00___ctl00_ctl00_bcr_bth___BlogTitle" href="http://blogs.msdn.com/ericlippert/default.aspx" minmax_bound="true"&gt;Fabulous Adventures In Coding&lt;/a&gt;".&lt;br /&gt;Before going into the details i would like to ask a question&lt;br /&gt;&lt;strong&gt;"What is this Wscript Object?" or "What does this Wscript Object signify?"&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Here is the answer: It represents the state of a WSH process(When you click on your vbs file the WSH process starts).The whole point of the WScript object is that it represents everything about the presently running Windows Script Host&lt;br /&gt;&lt;/div&gt;&lt;p align="justify"&gt;The WScript object exposes various properties about the running script and the WSH environment. Now If we run a QTP test tests they run in some QTP host but not WSH.&lt;/p&gt;&lt;p align="justify"&gt;So how can we expect the Wscript Object to be used with out a WSH process Actually running.&lt;/p&gt;&lt;p align="justify"&gt;&lt;strong&gt;At this point of time we can't do much but not to use Wscript object in QTP.&lt;/strong&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6069755653761783193-1764863142147424462?l=bughunterz.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MyExperienceWithTestAutomation/~4/FyP-zlxY5fY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://bughunterz.blogspot.com/feeds/1764863142147424462/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6069755653761783193&amp;postID=1764863142147424462&amp;isPopup=true" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/1764863142147424462?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/1764863142147424462?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MyExperienceWithTestAutomation/~3/FyP-zlxY5fY/error-object-required-wscript.html" title="Error: &quot;Object required: 'WScript'&quot;" /><author><name>Hari Sreekanth Upadrasta</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="17" src="http://3.bp.blogspot.com/_edu3ERLixR4/SmBCCTeH1tI/AAAAAAAAAJg/ntD2obMDvOQ/S220/mypic2.jpg" /></author><thr:total>4</thr:total><feedburner:origLink>http://bughunterz.blogspot.com/2008/07/error-object-required-wscript.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkINRXg8eip7ImA9WxdWF0o.&quot;"><id>tag:blogger.com,1999:blog-6069755653761783193.post-1116640538104699560</id><published>2008-07-07T01:26:00.000-07:00</published><updated>2008-07-11T05:16:34.672-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-11T05:16:34.672-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="LockWorkStation" /><category scheme="http://www.blogger.com/atom/ns#" term="QTP" /><category scheme="http://www.blogger.com/atom/ns#" term="WScript.Shell" /><category scheme="http://www.blogger.com/atom/ns#" term="Auto Locker" /><title>Auto Lock your computer after running QTP scripts</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/zGnbKxJIX7kKEJD1_dWaE72Iq4I/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zGnbKxJIX7kKEJD1_dWaE72Iq4I/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/zGnbKxJIX7kKEJD1_dWaE72Iq4I/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zGnbKxJIX7kKEJD1_dWaE72Iq4I/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hi,&lt;br /&gt;&lt;strong&gt;(Story)&lt;/strong&gt;&lt;br /&gt;Most of us who worked on some projects involving execution of a lot of test cases keep our tests running and go out for a break.&lt;br /&gt;&lt;br /&gt;Recently some thing serious happened to my colleague. He is a serious automation guy he automated every thing from blocking inputs(mouse/keypad) sending mails to clients automatically after tests and lot more.So he started his tests and went home as he usually does.&lt;br /&gt;But the next day morning his mailbox is kept opened.Though nothing serious happened.&lt;br /&gt;The thing is he switches off the monitor but never locks it(Since scripts cant run on locked machines,He even placed a script to make sure that the system is unlocked all the time when execution is going on) so some one accessed his mail.&lt;br /&gt;So that is the story and the result is this.&lt;br /&gt;&lt;strong&gt;Auto Locker(skip the story)&lt;/strong&gt;&lt;br /&gt;'*********************************************************************************&lt;br /&gt;'This Script locks computer can be used after the main script execution&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Set &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;oShell&lt;/span&gt; = &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;CreateObject&lt;/span&gt;("&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;WScript&lt;/span&gt;.Shell")&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;sCmd&lt;/span&gt; = "%&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;windir&lt;/span&gt;%\SYSTEM32\&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;rundll&lt;/span&gt;32.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;exe&lt;/span&gt; user32.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;dll&lt;/span&gt;,&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;LockWorkStation&lt;/span&gt;"&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;oShell&lt;/span&gt;.Run &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;sCmd&lt;/span&gt;, 0, False&lt;/span&gt;&lt;br /&gt;'**********************************************************************************&lt;br /&gt;The script with which i used to play pranks on my colleagues is used after that incident in our driver script.&lt;br /&gt;*Never place this script in &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;QTP&lt;/span&gt; it won't work.&lt;br /&gt;*Place this in your driver script.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6069755653761783193-1116640538104699560?l=bughunterz.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MyExperienceWithTestAutomation/~4/XCT7u-VdwRI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://bughunterz.blogspot.com/feeds/1116640538104699560/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6069755653761783193&amp;postID=1116640538104699560&amp;isPopup=true" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/1116640538104699560?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/1116640538104699560?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MyExperienceWithTestAutomation/~3/XCT7u-VdwRI/auto-lock-your-computer-after-running.html" title="Auto Lock your computer after running QTP scripts" /><author><name>Hari Sreekanth Upadrasta</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="17" src="http://3.bp.blogspot.com/_edu3ERLixR4/SmBCCTeH1tI/AAAAAAAAAJg/ntD2obMDvOQ/S220/mypic2.jpg" /></author><thr:total>3</thr:total><feedburner:origLink>http://bughunterz.blogspot.com/2008/07/auto-lock-your-computer-after-running.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D04NRH87cCp7ImA9WxdWEUs.&quot;"><id>tag:blogger.com,1999:blog-6069755653761783193.post-6120427624986542587</id><published>2008-07-04T00:27:00.000-07:00</published><updated>2008-07-04T03:06:35.108-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-04T03:06:35.108-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript" /><category scheme="http://www.blogger.com/atom/ns#" term="QuickTest Automation" /><category scheme="http://www.blogger.com/atom/ns#" term="VBscript" /><category scheme="http://www.blogger.com/atom/ns#" term="Jscript" /><title>Clear the basics: Can we use any scripting language other than VBscript with QTP?</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/XkCBAOj-iLiWFsoqq9eDIIIEzzk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/XkCBAOj-iLiWFsoqq9eDIIIEzzk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/XkCBAOj-iLiWFsoqq9eDIIIEzzk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/XkCBAOj-iLiWFsoqq9eDIIIEzzk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;This is one point over which most of my colleagues get confused often.&lt;br /&gt;when i asked the above question most of them answered "i think we can use &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;Jscript&lt;/span&gt; as well".The reason can be most of them are new to Test Automation.So, just of thought of clearing some doubts.&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;QTP&lt;/span&gt; can't use any scripting language other than &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;VBscript&lt;/span&gt; for scripting (&lt;em&gt;This is language used by us in &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;QTP&lt;/span&gt; tests&lt;/em&gt;).&lt;/strong&gt;Though we can do it indirectly(as mentioned in &lt;a href="http://www.softwareinquisition.com/"&gt;http://www.softwareinquisition.com/&lt;/a&gt;). But it is indirect, in the sense making my friend(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;WebBrowser&lt;/span&gt;) cry(execute JavaScript) if i(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;QTP&lt;/span&gt;) can't cry.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;We can write our &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;QuickTest&lt;/span&gt; Automation programs(&lt;em&gt;These are the programs written to automate the actions that we do on &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;QTP&lt;/span&gt; Ex: opening &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;QTP&lt;/span&gt;, Running test,Establishing QC connection Etc&lt;/em&gt;) in any language and development environment that supports automation.&lt;/strong&gt; For example, you can use: &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;VBScript&lt;/span&gt;, JavaScript, Visual Basic, Visual C++, or Visual Studio.NET.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Reference:&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;QTP&lt;/span&gt; help doc&lt;/p&gt;&lt;p&gt;Lesson Learned: "After every thing fails, read the instruction document"&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6069755653761783193-6120427624986542587?l=bughunterz.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MyExperienceWithTestAutomation/~4/0jh6Opg6buk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://bughunterz.blogspot.com/feeds/6120427624986542587/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6069755653761783193&amp;postID=6120427624986542587&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/6120427624986542587?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/6120427624986542587?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MyExperienceWithTestAutomation/~3/0jh6Opg6buk/clear-basics-can-we-use-any-scripting.html" title="Clear the basics: Can we use any scripting language other than VBscript with QTP?" /><author><name>Hari Sreekanth Upadrasta</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="17" src="http://3.bp.blogspot.com/_edu3ERLixR4/SmBCCTeH1tI/AAAAAAAAAJg/ntD2obMDvOQ/S220/mypic2.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://bughunterz.blogspot.com/2008/07/clear-basics-can-we-use-any-scripting.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0QGQ3oyfyp7ImA9WxdWF0o.&quot;"><id>tag:blogger.com,1999:blog-6069755653761783193.post-7085094044319539353</id><published>2008-07-03T03:22:00.000-07:00</published><updated>2008-07-11T05:28:42.497-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-11T05:28:42.497-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="HTML Report" /><category scheme="http://www.blogger.com/atom/ns#" term="Registry" /><title>How to leverage QTP's inbuilt HTML results generator?</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/6nHH8JrOZC3j26wwF4aplRIEkfE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6nHH8JrOZC3j26wwF4aplRIEkfE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/6nHH8JrOZC3j26wwF4aplRIEkfE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6nHH8JrOZC3j26wwF4aplRIEkfE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hi,&lt;br /&gt;QTP has a inbuilt feature to generate results in HTML format. The only problem is by default it will be deactivated and to generate the result in HTML format we have to open the test results in results viewer and export it to HTML format by using "Export to HTML file" option.&lt;br /&gt;&lt;br /&gt;But some of our test managers might come up with a brilliant idea(At least they think it is) of sending a mail to Client and/or Managers with the results file attached with it as soon as the test is completed Automatically.&lt;br /&gt;&lt;br /&gt;So just thought of helping out poor guys.&lt;br /&gt;Actually QTP can generate html results Automatically like normal results file the only thing that that you should do is to set the value of data in the key &lt;strong&gt;"Active" &lt;/strong&gt;in &lt;strong&gt;"HKEY_LOCAL_MACHINE\SOFTWARE\Mercury Interactive\QuickTest Professional\Logger\Media\Log" &lt;/strong&gt;to &lt;strong&gt;"1"&lt;/strong&gt;&lt;br /&gt;To change this run &lt;strong&gt;regedit&lt;/strong&gt; in run and click OK button.Navigate along the path click on log on the right side you will find Active key double click it and change the value to 1.&lt;br /&gt;&lt;br /&gt;And if don't want to change the registry data or if you want to do it pragmatically then here is a code that you can attach to your test&lt;br /&gt;The code will set the value of Active key to 1 and again change it back to the previous state.Place this script in your driver script.(This won't work in QTP)&lt;br /&gt;&lt;br /&gt;'***********************************************************************************&lt;br /&gt;&lt;span style="color:#330099;"&gt;Set objShell = WScript.CreateObject("WScript.Shell")&lt;br /&gt;&lt;br /&gt;KeyVal= objshell.regread("HKEY_LOCAL_MACHINE\SOFTWARE\Mercury Interactive\QuickTest Professional\Logger\Media\Log\Active")&lt;br /&gt;&lt;br /&gt;objshell.RegWrite"HKEY_LOCAL_MACHINE\SOFTWARE\Mercury Interactive\QuickTest Professional\Logger\Media\Log\Active",1,"REG_DWORD"&lt;br /&gt;&lt;br /&gt;Set qtApp = CreateObject("QuickTest.Application")&lt;br /&gt;qtApp.Launch&lt;br /&gt;qtApp.Visible = True qtApp.Open "C:\Documents and Settings\Bughunterz\Desktop\Test", True&lt;br /&gt;Set qtResultsOpt = CreateObject("QuickTest.RunResultsOptions") qtResultsOpt.ResultsLocation = "C:\Documents and Settings\Bughunterz\Desktop\Test1"&lt;br /&gt;set qttest = qtapp.testqtTest.Run qtResultsOptqtApp.Quit&lt;br /&gt;&lt;br /&gt;objshell.RegWrite"HKEY_LOCAL_MACHINE\SOFTWARE\Mercury Interactive\QuickTest Professional\Logger\Media\Log\Active",KeyVal,"REG_DWORD"&lt;br /&gt;&lt;br /&gt;WScript.Quit&lt;br /&gt;&lt;/span&gt;'************************************************************************************&lt;br /&gt;The results file in html format will be present in the result folder under the folder &lt;strong&gt;"Log"&lt;/strong&gt;&lt;br /&gt;with the name &lt;strong&gt;"LogFile"&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6069755653761783193-7085094044319539353?l=bughunterz.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MyExperienceWithTestAutomation/~4/AdpKUQQYSbs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://bughunterz.blogspot.com/feeds/7085094044319539353/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6069755653761783193&amp;postID=7085094044319539353&amp;isPopup=true" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/7085094044319539353?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/7085094044319539353?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MyExperienceWithTestAutomation/~3/AdpKUQQYSbs/how-to-leverage-qtps-inbuilt-html.html" title="How to leverage QTP's inbuilt HTML results generator?" /><author><name>Hari Sreekanth Upadrasta</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="17" src="http://3.bp.blogspot.com/_edu3ERLixR4/SmBCCTeH1tI/AAAAAAAAAJg/ntD2obMDvOQ/S220/mypic2.jpg" /></author><thr:total>2</thr:total><feedburner:origLink>http://bughunterz.blogspot.com/2008/07/how-to-leverage-qtps-inbuilt-html.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0AMQng9eCp7ImA9WxdWF0o.&quot;"><id>tag:blogger.com,1999:blog-6069755653761783193.post-8273516924326120171</id><published>2008-07-02T03:05:00.000-07:00</published><updated>2008-07-11T05:36:23.660-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-11T05:36:23.660-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sync" /><category scheme="http://www.blogger.com/atom/ns#" term="Synchronization" /><category scheme="http://www.blogger.com/atom/ns#" term="QTP" /><title>Examining the sync method of browser/page in QTP</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/V1pA2ZhXmqm_eXfo4UGXEdIm5Sg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/V1pA2ZhXmqm_eXfo4UGXEdIm5Sg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/V1pA2ZhXmqm_eXfo4UGXEdIm5Sg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/V1pA2ZhXmqm_eXfo4UGXEdIm5Sg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hi,&lt;br /&gt;Many testers might have faced an issue with the &lt;strong&gt;sync method&lt;/strong&gt; when they want to make the script wait for the browser to refresh.&lt;br /&gt;But the problem here is sync method is doing the job it is meant to do which is Synchronizing.&lt;br /&gt;Here synchronization means "&lt;strong&gt;Waits for the browser to complete the current navigation"&lt;/strong&gt;(as per help doc). Here the sync method will wait until the navigation is completed i.e until the title of browser changes.But the objects will not get loaded completely just when the title changes.&lt;br /&gt;&lt;br /&gt;So it is better to respect sync method for what it is doing and switch over to other methods like Wait,&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;WaitProperty&lt;/span&gt; or if you want a robust and flexible method use the one mentioned in my previous post-&lt;a href="http://bughunterz.blogspot.com/2008/06/having-problem-with-synchonization-and.html"&gt;&lt;span style="color:#3333ff;"&gt;http://bughunterz.blogspot.com/2008/06/having-problem-with-synchonization-and.html&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6069755653761783193-8273516924326120171?l=bughunterz.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MyExperienceWithTestAutomation/~4/XSA_juR6eB0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://bughunterz.blogspot.com/feeds/8273516924326120171/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6069755653761783193&amp;postID=8273516924326120171&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/8273516924326120171?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/8273516924326120171?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MyExperienceWithTestAutomation/~3/XSA_juR6eB0/examining-sync-method-of-browserpage-in.html" title="Examining the sync method of browser/page in QTP" /><author><name>Hari Sreekanth Upadrasta</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="17" src="http://3.bp.blogspot.com/_edu3ERLixR4/SmBCCTeH1tI/AAAAAAAAAJg/ntD2obMDvOQ/S220/mypic2.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://bughunterz.blogspot.com/2008/07/examining-sync-method-of-browserpage-in.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C08FR3c-fyp7ImA9WxJaFk8.&quot;"><id>tag:blogger.com,1999:blog-6069755653761783193.post-6916678118773011326</id><published>2008-07-01T22:28:00.000-07:00</published><updated>2009-08-06T22:10:16.957-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-06T22:10:16.957-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Recording" /><category scheme="http://www.blogger.com/atom/ns#" term="Window" /><title>QTP is reconizing a Browser/SAPGuisession/SWFWindow or something else , what is the reason?</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/v5dtOjizODmB4vK-x2eVOOxTRmg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/v5dtOjizODmB4vK-x2eVOOxTRmg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/v5dtOjizODmB4vK-x2eVOOxTRmg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/v5dtOjizODmB4vK-x2eVOOxTRmg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;Q: &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;QTP&lt;/span&gt; is Recording WEB/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;SAPGui&lt;/span&gt;/.Net objects as Windows Objects , How to resolve the issue?(if the necessary &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;addins&lt;/span&gt; are enabled and working fine)&lt;/strong&gt;&lt;br /&gt;A: Here is the flow to resolve this issue:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;Open the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;AUT&lt;/span&gt; after opening &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;QTP&lt;/span&gt;.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;if it works fine else&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;Open "Record and run Settings" from "Automation" &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;If you Don't have any specific Record and run Settings then &lt;strong&gt;check&lt;/strong&gt; &lt;strong&gt;"Record and run on any open **********"&lt;/strong&gt;(first option in every Tab).And click on OK button.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;If you have any &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_5"&gt;specifications&lt;/span&gt; like &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_6"&gt;opening&lt;/span&gt; a particular browser or &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;SAPGUIsession&lt;/span&gt; etc then make sure that the option &lt;strong&gt;"Do not record and run on ********** that are already open"&lt;/strong&gt; is &lt;strong&gt;unchecked&lt;/strong&gt;. And click on OK button.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p align="justify"&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;if you still face the issue post it to me&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6069755653761783193-6916678118773011326?l=bughunterz.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MyExperienceWithTestAutomation/~4/arArmVdSj-Y" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://bughunterz.blogspot.com/feeds/6916678118773011326/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6069755653761783193&amp;postID=6916678118773011326&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/6916678118773011326?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/6916678118773011326?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MyExperienceWithTestAutomation/~3/arArmVdSj-Y/qtp-is-reconizing-browsersapguisessions.html" title="QTP is reconizing a Browser/SAPGuisession/SWFWindow or something else , what is the reason?" /><author><name>Hari Sreekanth Upadrasta</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="17" src="http://3.bp.blogspot.com/_edu3ERLixR4/SmBCCTeH1tI/AAAAAAAAAJg/ntD2obMDvOQ/S220/mypic2.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://bughunterz.blogspot.com/2008/07/qtp-is-reconizing-browsersapguisessions.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0QDQHgyeyp7ImA9WxNRFUs.&quot;"><id>tag:blogger.com,1999:blog-6069755653761783193.post-147297564733936683</id><published>2008-07-01T03:17:00.001-07:00</published><updated>2009-09-09T23:49:31.693-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-09T23:49:31.693-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Hidden Method" /><category scheme="http://www.blogger.com/atom/ns#" term="Descriptive Programming" /><category scheme="http://www.blogger.com/atom/ns#" term="Highlight Object" /><title>Highlighting An object when using descriptive programming in QTP for newbies</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/UfzWCYEC2Hjty_jgRHJCj5wKkpI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UfzWCYEC2Hjty_jgRHJCj5wKkpI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/UfzWCYEC2Hjty_jgRHJCj5wKkpI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UfzWCYEC2Hjty_jgRHJCj5wKkpI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;Hi,&lt;br /&gt;This is my second post today.I am having an empty day so thought of just mentioning some issues. Most of the newbies find descriptive programming a bit confusing.The reason can be object repository of &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;QTP&lt;/span&gt; is not only a collection of objects but it also embeds lots of other functionalities like Highlighting,Adding, Locating object etc. These functionalities are compromised while using Descriptive Programming. But to the rescue &lt;strong&gt;There is a hidden method of every object that &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;QTP&lt;/span&gt; recognises.&lt;/strong&gt; &lt;strong&gt;This function highlights the objects in the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;AUT .&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;(Open &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;google&lt;/span&gt;.com before running the code) it can be used in this way:&lt;br /&gt;&lt;strong&gt;Browser("name:=Google").Page("title:=Google").&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;Webedit&lt;/span&gt;("name:=q").Highlight&lt;br /&gt;&lt;/strong&gt;This is one of the popular method while using &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_5"&gt;Descriptive&lt;/span&gt; Programming and is widely used. &lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6069755653761783193-147297564733936683?l=bughunterz.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MyExperienceWithTestAutomation/~4/hFUe3twqloQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://bughunterz.blogspot.com/feeds/147297564733936683/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6069755653761783193&amp;postID=147297564733936683&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/147297564733936683?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/147297564733936683?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MyExperienceWithTestAutomation/~3/hFUe3twqloQ/highlighting-object-when-using.html" title="Highlighting An object when using descriptive programming in QTP for newbies" /><author><name>Hari Sreekanth Upadrasta</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="17" src="http://3.bp.blogspot.com/_edu3ERLixR4/SmBCCTeH1tI/AAAAAAAAAJg/ntD2obMDvOQ/S220/mypic2.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://bughunterz.blogspot.com/2008/07/highlighting-object-when-using.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0QHRn09cSp7ImA9WxNRFUs.&quot;"><id>tag:blogger.com,1999:blog-6069755653761783193.post-2300139820030840486</id><published>2008-06-30T23:16:00.000-07:00</published><updated>2009-09-09T23:48:57.369-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-09T23:48:57.369-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Synchronization" /><category scheme="http://www.blogger.com/atom/ns#" term="QTP" /><category scheme="http://www.blogger.com/atom/ns#" term="Register" /><category scheme="http://www.blogger.com/atom/ns#" term="Security Popup" /><title>Having problem with Synchonization and Security Popups of Web Applications?You may like to look at this.</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/EHdIdFO62aPXWi4rA9NH_r3Jspo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EHdIdFO62aPXWi4rA9NH_r3Jspo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/EHdIdFO62aPXWi4rA9NH_r3Jspo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EHdIdFO62aPXWi4rA9NH_r3Jspo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;color:#000000;"&gt;Hi,&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;color:#000000;"&gt;When Automating Web Based application one of my colleague faced a weired situation. He had two list boxes on a page. He used the code as below:&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;strong&gt;&lt;span style="font-family:arial;color:#000000;"&gt;Browser("Browser").Page("Page").weblist("weblist1").select "USA"&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;Browser("Browser").Page("Page").weblist("weblist2").select "California"&lt;/strong&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:arial;"&gt;and as a surprise the script failed &lt;strong&gt;after&lt;/strong&gt; the second step.Upon checking the application he found that the value "California" is not selected but the second step is executed successfully. &lt;/span&gt;&lt;span style="font-family:arial;"&gt;So we took up the issue and found that the values in the second listbox is dependent on the first list box. The page gets refreshed as soon as the first list box is selected. So our second step is executed even before the page is completely refreshed.This is a serious synchronizaton problem.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;color:#000000;"&gt;Hence we thought of proposing a generalized solution to this sync . But our problems multiplied when we encountered popups in between.&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;strong&gt;&lt;span style="font-family:arial;color:#000000;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;&lt;strong&gt;&lt;span style="color:#000000;"&gt;&lt;u&gt;Security Popup Dialog Clicker and browser Synchroniser:&lt;/u&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="color:#000000;"&gt;The solution for this problem is the script should wait for the popups until the browser is busy refreshing the page and click on the ok button to proceed. The solution designed was based on the following logic:&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;Q: When can a popup occur in a web based application?&lt;br /&gt;&lt;/strong&gt;A: When a page is refreshed, navigated, when a link or a button is clicked Etc and the list goes on.&lt;br /&gt;But one thing you should observe when a popup occurs only when the Browser is busy and as soon as the Browser’s state is not busy the Popups cease to come up.&lt;br /&gt;If you can check the runtime Properties of the Browser when a popup occur you will observe something like this:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family:arial;color:#000000;"&gt;&lt;img id="BLOGGER_PHOTO_ID_5217970143658523586" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_edu3ERLixR4/SGn0Mx1cO8I/AAAAAAAAABQ/TJ5OUTzpcqM/s400/untitled.bmp" border="0" /&gt; &lt;/span&gt;&lt;p align="left"&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:arial;color:#000000;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:arial;color:#000000;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:arial;color:#000000;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:arial;color:#000000;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:arial;color:#000000;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:arial;color:#000000;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:arial;color:#000000;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:arial;color:#000000;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:arial;color:#000000;"&gt;Here the Busy property is “True” which means the Browser is still busy and has the chance to get the Popups.&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;&lt;u&gt;In a Nutshell:&lt;br /&gt;&lt;/u&gt;“&lt;em&gt;We are going to make our script check for Popups while the Browser is busy. And since the browser gets busy only if we do some operations on it, we append those operations to wait for browser to complete navigation and to click on Popups when they appear&lt;/em&gt;”.&lt;/strong&gt;&lt;br /&gt;The code written below is for “Click” method in the “WebButton” Class.In the same way it can be used for “Click” method of “Link” Class or “Select” method of “WebList” Class.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;br /&gt;&lt;span style="font-family:arial;color:#000000;"&gt;'The &lt;strong&gt;Function&lt;/strong&gt; checks for popups and clicks on “ok” button if the popups exist until the browser is 'busy&lt;br /&gt;'Creator: Hsupadrasta&lt;br /&gt;'Created Date: 10th June, 2008&lt;br /&gt;'************************************************************************************&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;Function Click(Obj)&lt;br /&gt;Obj.Click&lt;br /&gt;Do while Browser(“Index:=0”).Object.Busy&lt;br /&gt;If Dialog("nativeclass:=#32770").WinButton("nativeclass:=Button","text:=&amp;amp;Yes").Exist(0) Then&lt;br /&gt;Dialog("nativeclass:=#32770").WinButton("nativeclass:=Button","text:=&amp;amp;Yes").Click&lt;br /&gt;End if&lt;br /&gt;Loop&lt;br /&gt;End Function&lt;br /&gt;&lt;/strong&gt;'************************************************************************************&lt;br /&gt;'This &lt;strong&gt;Main script&lt;/strong&gt; overrides the WinButton’s existing Click method with userdefined click method&lt;br /&gt;'Creator: Hsupadrasta&lt;br /&gt;'Created Date: 10th June, 2008&lt;br /&gt;'************************************************************************************&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;RegisterUserFunc "WebButton", "Click", "Click"&lt;/strong&gt; &lt;/span&gt;&lt;/span&gt;&lt;a name="wp1485001"&gt;&lt;/a&gt;&lt;span style="font-family:arial;color:#000000;"&gt;'This should be at the start of the Script &lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;Browser("abcd").Page("abcd").WebButton("abcd").click&lt;/strong&gt; 'Somewhere in the script`&lt;br /&gt;'*************************************************************************************&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:arial;color:#000000;"&gt;The first Statement in main script &lt;strong&gt;registers the click function&lt;/strong&gt; defined to the WebButton Class and in turn overrides the existing Click method of WebButton.&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:arial;color:#000000;"&gt;The &lt;strong&gt;obj object&lt;/strong&gt; in the function represents The object that called it-&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:arial;color:#000000;"&gt;Browser("abcd").Page("abcd").WebButton("abcd")&lt;br /&gt;And “Click” method here represents the original Click method of WebButton&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:arial;color:#000000;"&gt;And &lt;strong&gt;Browser(“Index:=0”)&lt;/strong&gt; represents the active browser and the Busy property represents the state of browser .if the browser is &lt;strong&gt;busy&lt;/strong&gt; the value will be True and hence enters the loop else the value will be False and loop ends.&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:arial;color:#000000;"&gt;Advantages:&lt;/span&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;div align="left"&gt;&lt;span style="font-family:arial;color:#000000;"&gt;“It makes the script wait until the browser is busy or not fully loaded”. Some of you might have faced the problem in which script may not fill some fields and with out throwing any error. It can keep an end of most of the synchronization issues in Web Environment.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="left"&gt;&lt;span style="font-family:arial;color:#000000;"&gt;“It can click on any no of Popups with out calling reusable functions(which can’t deal with unexpected Popups) or Recovery scenarios which slow down script unnecessarily” .&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6069755653761783193-2300139820030840486?l=bughunterz.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/MyExperienceWithTestAutomation/~4/wlLtvZ9oa_I" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://bughunterz.blogspot.com/feeds/2300139820030840486/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6069755653761783193&amp;postID=2300139820030840486&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/2300139820030840486?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6069755653761783193/posts/default/2300139820030840486?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MyExperienceWithTestAutomation/~3/wlLtvZ9oa_I/having-problem-with-synchonization-and.html" title="Having problem with Synchonization and Security Popups of Web Applications?You may like to look at this." /><author><name>Hari Sreekanth Upadrasta</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="17" src="http://3.bp.blogspot.com/_edu3ERLixR4/SmBCCTeH1tI/AAAAAAAAAJg/ntD2obMDvOQ/S220/mypic2.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_edu3ERLixR4/SGn0Mx1cO8I/AAAAAAAAABQ/TJ5OUTzpcqM/s72-c/untitled.bmp" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://bughunterz.blogspot.com/2008/06/having-problem-with-synchonization-and.html</feedburner:origLink></entry></feed>

