<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7132883052638225247</id><updated>2012-02-16T13:08:22.342-08:00</updated><category term='Asending Order'/><category term='OOPs Principles'/><category term='Working with Flat File'/><category term='Type'/><category term='web edit'/><category term='Copy file'/><category term='Import Importsheet'/><category term='Object Properties'/><category term='Log Files'/><category term='Test Object Model'/><category term='Actions'/><category term='Standard recording'/><category term='count the no of files'/><category term='IE Browsers instances'/><category term='capture screenshot'/><category term='Files in Floder'/><category term='Environment Variables'/><category term='Working with Object Repository'/><category term='scheduled time'/><category term='Mathematical table'/><category term='Error Handling'/><category term='Datatable'/><category term='OOPS Vs VB Script'/><category term='click dynamic links'/><category term='Normal Recording'/><category term='Use of Instr'/><category term='working with checkboxes'/><category term='dojoobjects'/><category term='Count the objects'/><category term='OOPS'/><category term='color the excel column'/><category term='Radio button'/><category term='Flat File'/><category term='SetToProperty'/><category term='About Descriptive Programming'/><category term='List box items'/><category term='constants'/><category term='word replacement'/><category term='remove;dollar symbol;add amounts'/><category term='Use of Classes'/><category term='Option Explicit'/><category term='Dynamic Links'/><category term='split function'/><category term='scripts'/><category term='By value By Reference'/><category term='Automation'/><category term='Inheritance'/><category term='word document'/><category term='Copy folders'/><category term='Batch Test'/><category term='Ascending order'/><category term='no of objects'/><category term='ajax'/><category term='arrays'/><category term='webedit'/><category term='set the value'/><category term='property'/><category term='VB Procedures'/><category term='Search'/><category term='Multiple Screenshots'/><category term='Automation Object Model'/><category term='Run Application'/><category term='Google'/><category term='user'/><category term='Exception Handling'/><category term='Functions'/><category term='Import Export'/><category term='list items'/><category term='Functions VS Actions'/><category term='Parameters'/><category term='copy sheet'/><category term='QTP 9.2'/><category term='swap the numbers'/><category term='Working with files'/><category term='Library files'/><category term='Working with Datatable'/><category term='Polymorphism'/><category term='Working with Excel'/><category term='Tool Tip'/><category term='smart identification'/><category term='combobox'/><category term='Object recognization'/><category term='Parameterization'/><category term='close browsers'/><category term='Object Repository'/><category term='Working with Word'/><category term='Orkut login'/><category term='Descriptive Programming'/><category term='messagebox'/><category term='Random Number'/><category term='Keyword Driven methodology'/><category term='screenshot'/><category term='VB Script Vs OOPS'/><category term='builtin'/><category term='Encapsulation'/><category term='MS Word'/><title type='text'>MAKE QTP EASY</title><subtitle type='html'>Important Topics &amp;amp; Useful Scripts on QTP.
Ask your QTP related questions at this id - asrajaputra@gmail.com</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>97</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-1161698870199593428</id><published>2011-08-18T08:08:00.001-07:00</published><updated>2011-08-18T08:09:22.734-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IE Browsers instances'/><category scheme='http://www.blogger.com/atom/ns#' term='close browsers'/><title type='text'>Closes all instatnces of open IE browsers</title><content type='html'>Function Close_All_Browsers()&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;strComputer = "."&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;Set objWMIService = GetObject("winmgmts:" _&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;&amp;amp; "{impersonationLevel=impersonate}!\\" &amp;amp; strComputer &amp;amp; "\root\cimv2")&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;Set colIEProcessList = objWMIService.ExecQuery _&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;("SELECT * FROM Win32_Process WHERE Name = 'iexplore.exe'")&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;For Each objProcess in colIEProcessList&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;		&lt;/span&gt;objProcess.Terminate()&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;Next&lt;br /&gt;End Function&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-1161698870199593428?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/1161698870199593428/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=1161698870199593428' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/1161698870199593428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/1161698870199593428'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2011/08/closes-all-instatnces-of-open-ie.html' title='Closes all instatnces of open IE browsers'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-7908463101301209302</id><published>2011-08-18T08:02:00.000-07:00</published><updated>2011-08-18T08:02:55.927-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='combobox'/><category scheme='http://www.blogger.com/atom/ns#' term='dojoobjects'/><category scheme='http://www.blogger.com/atom/ns#' term='ajax'/><category scheme='http://www.blogger.com/atom/ns#' term='web edit'/><title type='text'>This function populates web edit objects with class = dojoComboBox</title><content type='html'>&lt;br /&gt;Function populateDojo (object, sParameter)&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;Dim WshShell, sNewParameter&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;sNewParameter = mid(sParameter,1,len(sParameter)-1)&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;Set WshShell = CreateObject("WScript.Shell")&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;wait(2)&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;object.Click&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;WshShell.SendKeys sNewParameter&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;Wait (3)'Give time for AJAX call to return&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;WshShell.SendKeys "{DOWN}"&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;Wait (1)&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;WshShell.SendKeys "{TAB}"&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;Wait (3)'Give time for AJAX call to return&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;Set WshShell = nothing&lt;br /&gt;End Function&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-7908463101301209302?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/7908463101301209302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=7908463101301209302' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/7908463101301209302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/7908463101301209302'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2011/08/this-function-populates-web-edit.html' title='This function populates web edit objects with class = dojoComboBox'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-754915963386751263</id><published>2011-08-18T07:55:00.000-07:00</published><updated>2011-08-18T07:56:53.817-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='webedit'/><category scheme='http://www.blogger.com/atom/ns#' term='set the value'/><category scheme='http://www.blogger.com/atom/ns#' term='Type'/><title type='text'>Function to "type" into web edits rather than using .set</title><content type='html'>Function objectType(objObject, parameter)&lt;br /&gt;&amp;nbsp; &amp;nbsp;On Error Resume Next&lt;br /&gt;&amp;nbsp; &amp;nbsp;objObject.Click&lt;br /&gt;&amp;nbsp; &amp;nbsp;Set oShell = CreateObject("WScript.Shell")&lt;br /&gt;&amp;nbsp; &amp;nbsp;oShell.SendKeys parameter&lt;br /&gt;&amp;nbsp; &amp;nbsp;oShell.SendKeys("{TAB}")&lt;br /&gt;&amp;nbsp; &amp;nbsp;Set oShell = Nothing&lt;br /&gt;&amp;nbsp; &amp;nbsp;If Err.Number = 0 Then&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; objectType = True&lt;br /&gt;&amp;nbsp; &amp;nbsp;Else&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Reporter.ReportEvent micFail, "objectType", "Error # " &amp;amp; CStr(Err.Number) &amp;amp; "Error Detail: " &amp;amp; Err.Description &amp;amp; "Error source: " &amp;amp; Err.Source&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Err.Clear&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; objectType = False&lt;br /&gt;&amp;nbsp; &amp;nbsp;End If&lt;br /&gt;&amp;nbsp; &amp;nbsp;On Error GoTo 0&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;You can call this function as&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;objectType(UserName, Arun)&lt;/span&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-754915963386751263?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/754915963386751263/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=754915963386751263' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/754915963386751263'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/754915963386751263'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2011/08/function-to-type-into-web-edits-rather.html' title='Function to &quot;type&quot; into web edits rather than using .set'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-1603002006191127593</id><published>2009-11-22T00:22:00.000-08:00</published><updated>2009-11-22T00:49:15.330-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB Script Vs OOPS'/><category scheme='http://www.blogger.com/atom/ns#' term='OOPS Vs VB Script'/><category scheme='http://www.blogger.com/atom/ns#' term='Encapsulation'/><category scheme='http://www.blogger.com/atom/ns#' term='Inheritance'/><category scheme='http://www.blogger.com/atom/ns#' term='OOPs Principles'/><category scheme='http://www.blogger.com/atom/ns#' term='OOPS'/><category scheme='http://www.blogger.com/atom/ns#' term='Polymorphism'/><title type='text'>Is VB Script Supports OOPS Concept . . .</title><content type='html'>My answer for this is No but Yes.&lt;br /&gt;To supports the OOPs concept, the script needs to be satisfy the OOPs principles.&lt;br /&gt;&lt;br /&gt;OOPS Principles -&lt;br /&gt;1.Encapsulation&lt;br /&gt;2.Inheritance&lt;br /&gt;3.Polymorphism&lt;br /&gt;&lt;br /&gt;Lets write a script to satisfy each principle -&lt;br /&gt;&lt;br /&gt;Encapsulation - The wrapping of data and function into a single unit (Called class) is known as Encapsulation.&lt;br /&gt;&lt;br /&gt;Example -&lt;br /&gt;&lt;br /&gt;Class Maths&lt;br /&gt;&lt;br /&gt;   Function add(a,b)&lt;br /&gt;       MsgBox "Sum = "&amp;amp;a+b&lt;br /&gt;   End Function&lt;br /&gt;End Class&lt;br /&gt;&lt;br /&gt;Set Mat=New Maths&lt;br /&gt;res=Mat.add (2,3)&lt;br /&gt;&lt;br /&gt;'************************************************************************************&lt;br /&gt;&lt;br /&gt;Inheritance - It is the process by which object of one class acquire the properties of object of another class.&lt;br /&gt;&lt;br /&gt;'Example -&lt;br /&gt;&lt;br /&gt;Class Outer&lt;br /&gt;   Function test()&lt;br /&gt;       Set inn= New Inner&lt;br /&gt;       inn.display&lt;br /&gt;   End Function&lt;br /&gt; &lt;br /&gt;End Class&lt;br /&gt;&lt;br /&gt;Class Inner  &lt;br /&gt;   Function display()&lt;br /&gt;       MsgBox "This is inner class"&lt;br /&gt;   End Function&lt;br /&gt;End Class&lt;br /&gt;&lt;br /&gt;Set out=New Outer&lt;br /&gt;out.test()&lt;br /&gt;&lt;br /&gt;'************************************************************************************&lt;br /&gt;&lt;br /&gt;'Polymorphism - Polymorphism means the ability to take more than one form/methods&lt;br /&gt;&lt;br /&gt;Example -&lt;br /&gt;&lt;br /&gt;Dim idno, name, marks&lt;br /&gt;Class Student&lt;br /&gt;&lt;br /&gt;   Function SetData()&lt;br /&gt;       idno="10"&lt;br /&gt;       name="arun"&lt;br /&gt;       marks="300"&lt;br /&gt;   End Function&lt;br /&gt; &lt;br /&gt;   Function getData()&lt;br /&gt;       MsgBox "Idno "&amp;amp;idno&lt;br /&gt;       MsgBox "Name "&amp;amp;name&lt;br /&gt;       MsgBox "Marks "&amp;amp;marks&lt;br /&gt;   End Function&lt;br /&gt;&lt;br /&gt;End Class&lt;br /&gt; &lt;br /&gt;Class Student2&lt;br /&gt; &lt;br /&gt;       Function SetData(a,s,m)&lt;br /&gt;           idno=a&lt;br /&gt;           name=s&lt;br /&gt;           marks=m&lt;br /&gt;       End Function&lt;br /&gt; &lt;br /&gt;End Class  &lt;br /&gt;&lt;br /&gt;Set Std1=New Student&lt;br /&gt;   std1.SetData()&lt;br /&gt;   std1.getData()&lt;br /&gt;Set std2=New Student2&lt;br /&gt;   std2.SetData "12","Singh","400"&lt;br /&gt;   std1.getData()&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I am trying to say Yes, it supports OOPS concept. But if any body is having any questions or my assumption is wrong then please post here as a comments.&lt;br /&gt;&lt;br /&gt;*************************************************************************************&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-1603002006191127593?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/1603002006191127593/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=1603002006191127593' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/1603002006191127593'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/1603002006191127593'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2009/11/is-vb-script-supports-oops-concept.html' title='Is VB Script Supports OOPS Concept . . .'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-8228406423359781167</id><published>2009-07-05T02:20:00.000-07:00</published><updated>2009-07-06T01:23:46.617-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='QTP 9.2'/><category scheme='http://www.blogger.com/atom/ns#' term='Standard recording'/><category scheme='http://www.blogger.com/atom/ns#' term='Normal Recording'/><title type='text'>QTP Vedio for Normal Recording</title><content type='html'>&lt;object width="439" height="314" class="BLOG_video_class" id="BLOG_video-c795b01a382d211d" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v9.nonxt5.googlevideo.com/videoplayback?id%3Dc795b01a382d211d%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331791207%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D3D962D372081D8D4D5738109F044A2448412C1DA.472C04EB8B4A435E259EB56440E78675BEC6C376%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Dc795b01a382d211d%26offsetms%3D5000%26itag%3Dw160%26sigh%3DIQ00jofQpnSMXv6m2jgpaiBrNSc&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="439" height="314" bgcolor="#FFFFFF"flashvars="flvurl=http://v9.nonxt5.googlevideo.com/videoplayback?id%3Dc795b01a382d211d%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331791207%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D3D962D372081D8D4D5738109F044A2448412C1DA.472C04EB8B4A435E259EB56440E78675BEC6C376%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Dc795b01a382d211d%26offsetms%3D5000%26itag%3Dw160%26sigh%3DIQ00jofQpnSMXv6m2jgpaiBrNSc&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-8228406423359781167?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=c795b01a382d211d&amp;type=video%2Fmp4' length='0'/><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/8228406423359781167/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=8228406423359781167' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8228406423359781167'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8228406423359781167'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2009/07/qtp-vedio-for-normal-recording.html' title='QTP Vedio for Normal Recording'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-2183205229335953825</id><published>2009-07-05T01:44:00.001-07:00</published><updated>2009-07-05T02:00:59.936-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='QTP 9.2'/><category scheme='http://www.blogger.com/atom/ns#' term='Dynamic Links'/><category scheme='http://www.blogger.com/atom/ns#' term='click dynamic links'/><title type='text'>How to Click on Dinamic Links</title><content type='html'>&lt;span style="color: rgb(0, 32, 96);font-family:times new roman;font-size:100%;"  &gt;Here is the script to click on the dynamic Links in table. Even though if any link are dynamic we can get control on the links by using index.&lt;br /&gt;&lt;br /&gt;'*******************************************************************&lt;br /&gt;Set TblObj=Browser( BrowserProp) .Page(PageProp) .WebTable( TableProp)&lt;br /&gt;&lt;br /&gt;r_Count=TblObj. RowCount&lt;br /&gt;&lt;br /&gt;For r=1 to r_Count&lt;br /&gt;c_Count=TblObj. ColumnCount( r)&lt;br /&gt;&lt;br /&gt;For c=1 to c_Count&lt;br /&gt;&lt;br /&gt;chItems_Count= TblObj.ChildItem Count(r,c, "Link")&lt;br /&gt;&lt;br /&gt;For ItemIndex=0 to chItems_Count- 1&lt;br /&gt;&lt;br /&gt;Set ch_Item=TblObj. ChildItem( r,c,"Link" ,ItemIndex)&lt;br /&gt;Print ch_Item.object. title&lt;br /&gt;ch_Item.click&lt;br /&gt;' Specify the required operations after clicking on link&lt;br /&gt;' Make sure that again you should navigate to the same page to get other links tooltip&lt;br /&gt;'Or to click on other Links&lt;br /&gt;Next&lt;br /&gt;&lt;br /&gt;Next&lt;br /&gt;Next&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/7132883052638225247-2183205229335953825?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/2183205229335953825/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=2183205229335953825' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/2183205229335953825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/2183205229335953825'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2009/07/how-to-click-on-dinamic-links.html' title='How to Click on Dinamic Links'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-5050730905881012695</id><published>2009-05-18T10:38:00.000-07:00</published><updated>2009-06-22T23:52:39.775-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='QTP 9.2'/><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='scheduled time'/><category scheme='http://www.blogger.com/atom/ns#' term='Run Application'/><title type='text'>How To Run QTP Scripts at Scheduled Time?</title><content type='html'>&lt;div&gt;&lt;span&gt;&lt;span&gt;I have gathered this information from learnqtp.com by Ankur.&lt;br /&gt;&lt;br /&gt;There can be situations when you need to schedule your QTP scripts so that they can run when you are not present in front of you PC. I will show you a demo below - &lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;1) Create a .vbs fild to launch QTP with requiresd settings, add-ins etc.\\&lt;br /&gt;Here is a sample vbs code&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;span&gt;&lt;span&gt;Set&lt;/span&gt;&lt;/span&gt;&lt;span&gt; App = CreateObject(&lt;/span&gt;&lt;span&gt;"QuickTest.Application")&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;App.Launch&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;App.Visible = &lt;/span&gt;&lt;span&gt;True&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;App.WindowState = &lt;/span&gt;&lt;span&gt;"Maximized"&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;App.ActivateView &lt;/span&gt;&lt;span&gt;"ExpertView"&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;App.open "C:\Program Files\Mercury Interactive&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;\QuickTest Professional\Tests\Test1"&lt;/span&gt;&lt;span&gt;, False&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt; 'Opens the test in editable mode&lt;/span&gt;&lt;/p&gt;&lt;span&gt;2) OK, for the first timers. Create a sample QTP test and save it as Test1 at the location above. Copy the code into notepad and name the file as testing.vbs&lt;/span&gt;&lt;p&gt;&lt;span&gt;3) Now we will automate the opening of vbs file through windows scheduyler. Go to Start &gt; Control Panel &gt; Schedule Tasks &gt; Click Add Schedule Tasks Click Next on the Screen&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;4) Click Browse and select the .vbs file you just created. You will ge this screen.&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p face="georgia"&gt;&lt;/p&gt;&lt;span&gt;&lt;span&gt;&lt;img alt="image" src="http://lh4.ggpht.com/toankurjain/SDpp1sSzyCI/AAAAAAAAAJ4/D3KK0_mDfsc/image%5B17%5D.png" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;5) Give a name to the task and select the frequence for performing the&lt;br /&gt;given tasks. For this demo we will select "One time only"&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;img alt="image" src="http://lh5.ggpht.com/toankurjain/SDpp28SzyDI/AAAAAAAAAKA/BSkv-Mtk13k/image%5B25%5D.png" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;6) Select Start Time and Start Date. For this demo, select Start Time as current time+5 mins and Start date as today date.&lt;br /&gt;7) Next Screen Enter "UserNAme", "Password" and "Confirm Password"&lt;br /&gt;Click Next and you should get this screen.&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;img alt="image" src="http://lh5.ggpht.com/toankurjain/SDptM8SzyFI/AAAAAAAAAKQ/_kZ-uwYQEAk/image%5B38%5D.png" align="left" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;8) Click on Finish, you're done.&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&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/7132883052638225247-5050730905881012695?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/5050730905881012695/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=5050730905881012695' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/5050730905881012695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/5050730905881012695'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2009/05/how-to-run-qtp-scripts-at-scheduled.html' title='How To Run QTP Scripts at Scheduled Time?'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/toankurjain/SDpp1sSzyCI/AAAAAAAAAJ4/D3KK0_mDfsc/s72-c/image%5B17%5D.png' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-388889339845149534</id><published>2009-05-18T10:27:00.001-07:00</published><updated>2009-11-05T00:57:17.692-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='QTP 9.2'/><category scheme='http://www.blogger.com/atom/ns#' term='builtin'/><category scheme='http://www.blogger.com/atom/ns#' term='user'/><category scheme='http://www.blogger.com/atom/ns#' term='Environment Variables'/><title type='text'>Environment Variables</title><content type='html'>&lt;p style="font-family: Times New Roman; color: rgb(0, 32, 96);"&gt;&lt;font size="4"&gt;Environment variables in QTP are like global variables in other programming languages which can be accessed through any part of the script. The values of these variables remains same irrespective of the number of iterations (unless you change them through scripting). These variables can prove to be very useful when you want a variable to be shared across various reusable actions.&lt;/font&gt;&lt;/p&gt; &lt;p style="font-family: Times New Roman; color: rgb(0, 32, 96);"&gt;&lt;font size="4"&gt;There are two types of environment variables:&lt;/font&gt;&lt;/p&gt; &lt;ol style="font-family: Times New Roman; color: rgb(0, 32, 96);"&gt;&lt;li&gt;&lt;font size="4"&gt;&lt;strong&gt;Built-In:&lt;/strong&gt; These are the internal variables that are provided by QTP. Among others they can provide you valuable information like the path of the folder where test is located, the path of the results folder, the name of the action iteration or the OS version. So, how can we access the built in environment variable? It’s simple, just have a look at screenshot. &lt;img style="display: block; float: none; margin-left: auto; margin-right: auto;" title="QTP Built in Environment Variables" src="http://lh6.ggpht.com/toankurjain/SP3XBEFMRmI/AAAAAAAAARI/UHWfhmMFBA0/image2.png?imgmax=800" alt="QTP Built in Environment Variables" border="0" width="245" height="250"&gt; So if you want to know the OSVersion of the operating system where your test is running. You can simply type in &lt;em&gt;Environment.Value(“OSVersion”)&lt;/em&gt;&lt;/font&gt; &lt;font size="4"&gt;&lt;img style="display: block; float: none; margin-left: auto; margin-right: auto;" title="QTP OSVersion" src="http://lh4.ggpht.com/toankurjain/SP3XBwePh1I/AAAAAAAAARM/scM5Nv9dXlA/image46.png?imgmax=800" alt="QTP OSVersion" border="0" width="308" height="223"&gt;&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font size="4"&gt;&lt;strong&gt;User-Defined:&lt;/strong&gt; These can be further defined into two types. &lt;/font&gt;&lt;ul&gt;&lt;li&gt;&lt;font size="4"&gt;User defined Internal &lt;/font&gt;&lt;ul&gt;&lt;li&gt;&lt;font size="4"&gt;These are the variables that we define within the test.&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font size="4"&gt;These variables are saved with the test and are accessible only within the test in which they were defined.&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font size="4"&gt;So how can we define and use them?&lt;br /&gt;To define them: &lt;em&gt;Environment.Value(”name”)= “Rajaputra”&lt;br /&gt;&lt;/em&gt;To call them: &lt;em&gt;msgbox Environment.Value(”name”)&lt;/em&gt;&lt;/font&gt;&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li&gt;&lt;font size="4"&gt;User defined External &lt;/font&gt;&lt;ul&gt;&lt;li&gt;&lt;font size="4"&gt;These are the variables that we predefine in the active external environment variables file.&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font size="4"&gt;These can be created using a list of variable-value pairs in an external file in &lt;strong&gt;.xml&lt;/strong&gt; format. This is a topic of a separate post that we will discuss later.&lt;/font&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;p style="color: rgb(112, 48, 160); font-weight: bold;"&gt;&lt;font size="4"&gt;We can use environment variables in a number of ways: &lt;/font&gt;&lt;/p&gt; &lt;p style="color: rgb(112, 48, 160); font-weight: bold;"&gt;&lt;font size="4"&gt;1) When you want a global variable that is needed throughout the test run (across all your reusable actions).&lt;/font&gt;&lt;/p&gt; &lt;p style="color: rgb(112, 48, 160); font-weight: bold;"&gt;&lt;font size="4"&gt;2) When you see that one reusable action in a script is dependent on the others. You might want to use them&lt;/font&gt;&lt;/p&gt; &lt;p style="color: rgb(112, 48, 160); font-weight: bold;"&gt;&lt;font size="4"&gt;3) When you need to reference  the current “test directory” irrespective of the location where it is stored. &lt;/font&gt;&lt;/p&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/7132883052638225247-388889339845149534?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/388889339845149534/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=388889339845149534' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/388889339845149534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/388889339845149534'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2009/05/environment-variables_18.html' title='Environment Variables'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/toankurjain/SP3XBEFMRmI/AAAAAAAAARI/UHWfhmMFBA0/s72-c/image2.png?imgmax=800' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-4178485611902594800</id><published>2009-05-18T10:27:00.000-07:00</published><updated>2010-01-28T14:14:57.588-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='QTP 9.2'/><category scheme='http://www.blogger.com/atom/ns#' term='builtin'/><category scheme='http://www.blogger.com/atom/ns#' term='user'/><category scheme='http://www.blogger.com/atom/ns#' term='Environment Variables'/><title type='text'>Environment Variables</title><content type='html'>&lt;div style="color: #993399; font-family: Times New Roman; font-weight: bold;"&gt;&lt;span style="font-size: 100%;"&gt;I have gathered this information from learnqtp.com by Ankur.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #993399; font-family: Times New Roman; font-weight: bold;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #993399; font-family: Times New Roman; font-weight: bold;"&gt;&lt;span style="font-size: 100%;"&gt;Environment variables in QTP are like global variables in other programming languages which can be accessed through any part of the script. The values of these variables remains same irrespective of the number of iterations (unless you change them through scripting). These variables can prove to be very useful when you want a variable to be shared across various reusable actions.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #993399; font-family: Times New Roman; font-weight: bold;"&gt;&lt;span style="font-size: 100%;"&gt;There are two types of environment variables:&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;ol style="color: #993399; font-family: Times New Roman; font-weight: bold;"&gt;&lt;li&gt;&lt;span style="font-size: 100%;"&gt;&lt;strong&gt;Built-In:&lt;/strong&gt; These are the internal variables that are provided by QTP. Among others they can provide you valuable information like the path of the folder where test is located, the path of the results folder, the name of the action iteration or the OS version. So, how can we access the built in environment variable? It’s simple, just have a look at screenshot. &lt;img alt="QTP Built in Environment Variables" border="0" height="250" src="http://lh6.ggpht.com/toankurjain/SP3XBEFMRmI/AAAAAAAAARI/UHWfhmMFBA0/image2.png?imgmax=800" style="display: block; float: none; margin-left: auto; margin-right: auto;" title="QTP Built in Environment Variables" width="245" /&gt; So if you want to know the OSVersion of the operating system where your test is running. You can simply type in &lt;em&gt;Environment.Value(“OSVersion”)&lt;/em&gt;&lt;/span&gt; &lt;span style="font-size: 100%;"&gt;&lt;img alt="QTP OSVersion" border="0" height="223" src="http://lh4.ggpht.com/toankurjain/SP3XBwePh1I/AAAAAAAAARM/scM5Nv9dXlA/image46.png?imgmax=800" style="display: block; float: none; margin-left: auto; margin-right: auto;" title="QTP OSVersion" width="308" /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: 100%;"&gt;&lt;strong&gt;User-Defined:&lt;/strong&gt; These can be further defined into two types. &lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: 100%;"&gt;User defined Internal &lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: 100%;"&gt;These are the variables that we define within the test.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: 100%;"&gt;These variables are saved with the test and are accessible only within the test in which they were defined.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: 100%;"&gt;So how can we define and use them?&lt;br /&gt;To define them: &lt;em&gt;Environment.Value(”name”)= “Rajaputra”&lt;br /&gt;&lt;/em&gt;To call them: &lt;em&gt;msgbox Environment.Value(”name”)&lt;/em&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: 100%;"&gt;User defined External &lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: 100%;"&gt;These are the variables that we predefine in the active external environment variables file.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: 100%;"&gt;These can be created using a list of variable-value pairs in an external file in &lt;strong&gt;.xml&lt;/strong&gt; format. This is a topic of a separate post that we will discuss later.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size: 100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 100%;"&gt;We can use environment variables in a number of ways: &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 100%;"&gt;1) When you want a global variable that is needed throughout the test run (across all your reusable actions).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 100%;"&gt;2) When you see that one reusable action in a script is dependent on the others. You might want to use them&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 100%;"&gt;3) When you need to reference the current “test directory” irrespective of the location where it is stored. &lt;/span&gt;&lt;br /&gt;&lt;br /&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/7132883052638225247-4178485611902594800?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/4178485611902594800/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=4178485611902594800' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/4178485611902594800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/4178485611902594800'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2009/05/environment-variables.html' title='Environment Variables'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/toankurjain/SP3XBEFMRmI/AAAAAAAAARI/UHWfhmMFBA0/s72-c/image2.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-4057855988474076943</id><published>2009-05-18T10:23:00.000-07:00</published><updated>2009-07-28T09:18:02.989-07:00</updated><title type='text'>Excel Automation</title><content type='html'>&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;&lt;span style="color: rgb(255, 0, 0);font-size:130%;" &gt;Here is the few functions to automate the excel application.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(79, 97, 40);"&gt;'To Open a Microsoft Excel application with default new work book&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 32, 96);"&gt;Function CreateExcel()&lt;br /&gt;   Dim excelSheet&lt;br /&gt;   Set ExcelApp = CreateObject("Excel.Application")  'Create a new Microsoft Excel object&lt;br /&gt;   ExcelApp.Workbooks.Add&lt;br /&gt;   ExcelApp.Visible = True&lt;br /&gt;   Set CreateExcel = ExcelApp&lt;br /&gt;End Function &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(79, 97, 40);"&gt;'To Close the given Microsoft Excel document&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 32, 96);"&gt;Sub CloseExcel(ExcelApp)&lt;br /&gt;   Set excelSheet = ExcelApp.ActiveSheet&lt;br /&gt;   Set excelBook = ExcelApp.ActiveWorkbook&lt;br /&gt;   Set fso = CreateObject("Scripting.FileSystemObject")&lt;br /&gt;   On Error Resume Next&lt;br /&gt;   fso.CreateFolder "C:\Temp"&lt;br /&gt;   fso.DeleteFile "C:\Temp\ExcelExamples.xls"&lt;br /&gt;   excelBook.SaveAs "C:\Temp\ExcelExamples.xls"&lt;br /&gt;   ExcelApp.Quit&lt;br /&gt;   Set ExcelApp = Nothing&lt;br /&gt;   Set fso = Nothing&lt;br /&gt;   Err = 0&lt;br /&gt;   On Error GoTo 0&lt;br /&gt;End Sub &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(79, 97, 40);"&gt;'The SaveWorkbook method saves a workbook according to the workbook identifier.&lt;br /&gt;'The method overwrites the previously saved file in the given path.&lt;br /&gt;'excelApp - a reference to the Microsoft Excel application&lt;br /&gt;'workbookIdentifier - The name or number of the requested workbook&lt;br /&gt;'path - The location to which the workbook should be saved&lt;br /&gt;'Returns "OK" on success and "Bad Workbook Identifier" on failure &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 32, 96);"&gt;Function SaveWorkbook(ExcelApp, workbookIdentifier, path) 'As String&lt;br /&gt;   Dim workbook 'As Excel.workbook&lt;br /&gt;   On Error Resume Next&lt;br /&gt;   Set workbook = ExcelApp.Workbooks(workbookIdentifier)&lt;br /&gt;   On Error GoTo 0&lt;br /&gt;   If Not workbook Is Nothing Then&lt;br /&gt;                 Set fso = CreateObject("Scripting.FileSystemObject")&lt;br /&gt;                 'If the path has no file extension then add the 'xls' extension&lt;br /&gt;                 If InStr(path, ".") = 0 Then&lt;br /&gt;                        path = path &amp;amp; ".xls"&lt;br /&gt;                 End If&lt;br /&gt;                 On Error Resume Next&lt;br /&gt;                 fso.DeleteFile path&lt;br /&gt;                 Set fso = Nothing&lt;br /&gt;                 Err = 0&lt;br /&gt;                 On Error GoTo 0&lt;br /&gt;                 workbook.SaveAs path&lt;br /&gt;                 SaveWorkbook = "OK"&lt;br /&gt;   Else&lt;br /&gt;          SaveWorkbook = "Bad Workbook Identifier"&lt;br /&gt;   End If&lt;br /&gt;End Function &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(79, 97, 40);"&gt;'The SetCellValue method sets the given 'value' in the cell which is identified by&lt;br /&gt;'its row, column, and parent Microsoft Excel sheet&lt;br /&gt;'excelSheet - The Microsoft Excel sheet that is the parent of the requested cell&lt;br /&gt;'row - the cell's row in the excelSheet&lt;br /&gt;'column - the cell's column in the excelSheet&lt;br /&gt;'value - the value to be set in the cell &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 32, 96);"&gt;Sub SetCellValue(excelSheet, row, column, value)&lt;br /&gt;   On Error Resume Next&lt;br /&gt;   excelSheet.Cells(row, column) = value&lt;br /&gt;   On Error GoTo 0&lt;br /&gt;End Sub &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(79, 97, 40);"&gt;'The GetCellValue returns the cell's value according to its row, column, and sheet&lt;br /&gt;'excelSheet - The Microsoft Excel sheet in which the cell exists&lt;br /&gt;'row - The cell's row&lt;br /&gt;'column - The cell's column&lt;br /&gt;'return 0 if the cell cannot be found &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 32, 96);"&gt;Function GetCellValue(excelSheet, row, column)&lt;br /&gt;   value = 0&lt;br /&gt;   Err = 0&lt;br /&gt;   On Error Resume Next&lt;br /&gt;   tempValue = excelSheet.Cells(row, column)&lt;br /&gt;   If Err = 0 Then&lt;br /&gt;          value = tempValue&lt;br /&gt;          Err = 0&lt;br /&gt;   End If&lt;br /&gt;   On Error GoTo 0&lt;br /&gt;   GetCellValue = value&lt;br /&gt;End Function &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(79, 97, 40);"&gt;'The GetSheet method returns a Microsoft Excel sheet according to the sheet Identifier&lt;br /&gt;'ExcelApp - The Microsoft Excel application which is the parent of the requested sheet&lt;br /&gt;'sheetIdentifier - The name or the number of the requested Microsofr Excel sheet&lt;br /&gt;'return Nothing on failure &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 32, 96);"&gt;Function GetSheet(ExcelApp, sheetIdentifier) 'As Excel.worksheet&lt;br /&gt;   On Error Resume Next&lt;br /&gt;   Set GetSheet = ExcelApp.Worksheets.Item(sheetIdentifier)&lt;br /&gt;   On Error GoTo 0&lt;br /&gt;End Function &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(79, 97, 40);"&gt;'The InsertNewWorksheet method inserts a new worksheet into the active workbook or&lt;br /&gt;'the workbook identified by the workbookIdentifier. The new worksheet will get a default&lt;br /&gt;'name if the sheetName parameter is empty, otherwise the sheet has the sheetName&lt;br /&gt;'as its name.&lt;br /&gt;'Return - The new sheet as an object&lt;br /&gt;'ExcelApp - The Microsoft Excel application object into which the new worksheet should be added&lt;br /&gt;'workbookIdentifier - An optional identifier of the worksheet into which the new worksheet should be added&lt;br /&gt;'sheetName - The optional name of the new worksheet. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 32, 96);"&gt;Function InsertNewWorksheet(ExcelApp, workbookIdentifier, sheetName) 'As Excel.worksheet&lt;br /&gt;   Dim workbook 'As Excel.workbook&lt;br /&gt;   Dim worksheet 'As Excel.worksheet&lt;br /&gt;   'If the workbookIdentifier is empty, work on the active workbook&lt;br /&gt;   If workbookIdentifier = "" Then&lt;br /&gt;          Set workbook = ExcelApp.ActiveWorkbook&lt;br /&gt;   Else&lt;br /&gt;          On Error Resume Next&lt;br /&gt;          Err = 0&lt;br /&gt;          Set workbook = ExcelApp.Workbooks(workbookIdentifier)&lt;br /&gt;          If Err &lt;&gt; 0 Then&lt;br /&gt;                 Set InsertNewWorksheet = Nothing&lt;br /&gt;                 Err = 0&lt;br /&gt;                 Exit Function&lt;br /&gt;          End If&lt;br /&gt;          On Error GoTo 0&lt;br /&gt;   End If&lt;br /&gt;   sheetCount = workbook.Sheets.Count&lt;br /&gt;   workbook.Sheets.Add , sheetCount&lt;br /&gt;   Set worksheet = workbook.Sheets(sheetCount + 1)&lt;br /&gt;   'If the sheetName is not empty, set the new sheet's name to sheetName&lt;br /&gt;   If sheetName &lt;&gt; "" Then&lt;br /&gt;          worksheet.Name = sheetName&lt;br /&gt;   End If&lt;br /&gt;   Set InsertNewWorksheet = worksheet&lt;br /&gt;End Function &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(79, 97, 40);"&gt;'The RenameWorksheet method renames a worksheet'&lt;br /&gt;'ExcelApp - The Microsoft Excel application that is the worksheet's parent&lt;br /&gt;'workbookIdentifier - The worksheet's parent workbook identifier&lt;br /&gt;'worksheetIdentifier - The worksheet's identifier&lt;br /&gt;'sheetName - The new name for the worksheet &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 32, 96);"&gt;Function RenameWorksheet(ExcelApp, workbookIdentifier, worksheetIdentifier, sheetName) 'As String&lt;br /&gt;   Dim workbook 'As Excel.workbook&lt;br /&gt;   Dim worksheet 'As Excel.worksheet&lt;br /&gt;   On Error Resume Next&lt;br /&gt;   Err = 0&lt;br /&gt;   Set workbook = ExcelApp.Workbooks(workbookIdentifier)&lt;br /&gt;   If Err &lt;&gt; 0 Then&lt;br /&gt;          RenameWorksheet = "Bad Workbook Identifier"&lt;br /&gt;          Err = 0&lt;br /&gt;          Exit Function&lt;br /&gt;   End If&lt;br /&gt;   Set worksheet = workbook.Sheets(worksheetIdentifier)&lt;br /&gt;   If Err &lt;&gt; 0 Then&lt;br /&gt;          RenameWorksheet = "Bad Worksheet Identifier"&lt;br /&gt;          Err = 0&lt;br /&gt;          Exit Function&lt;br /&gt;   End If&lt;br /&gt;   worksheet.Name = sheetName&lt;br /&gt;   RenameWorksheet = "OK"&lt;br /&gt;End Function &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(79, 97, 40);"&gt;'The RemoveWorksheet method removes a worksheet from a workbook&lt;br /&gt;'ExcelApp - The Microsoft Excel application that is the worksheet's parent&lt;br /&gt;'workbookIdentifier - The worksheet's parent workbook identifier&lt;br /&gt;'worksheetIdentifier - The worksheet's identifier &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 32, 96);"&gt;Function RemoveWorksheet(ExcelApp, workbookIdentifier, worksheetIdentifier) 'As String&lt;br /&gt;   Dim workbook 'As Excel.workbook&lt;br /&gt;   Dim worksheet 'As Excel.worksheet&lt;br /&gt;   On Error Resume Next&lt;br /&gt;   Err = 0&lt;br /&gt;   Set workbook = ExcelApp.Workbooks(workbookIdentifier)&lt;br /&gt;   If Err &lt;&gt; 0 Then&lt;br /&gt;          RemoveWorksheet = "Bad Workbook Identifier"&lt;br /&gt;          Exit Function&lt;br /&gt;   End If&lt;br /&gt;   Set worksheet = workbook.Sheets(worksheetIdentifier)&lt;br /&gt;   If Err &lt;&gt; 0 Then&lt;br /&gt;          RemoveWorksheet = "Bad Worksheet Identifier"&lt;br /&gt;          Exit Function&lt;br /&gt;   End If&lt;br /&gt;   worksheet.Delete&lt;br /&gt;   RemoveWorksheet = "OK"&lt;br /&gt;End Function &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(79, 97, 40);"&gt;'The CreateNewWorkbook method creates a new workbook in the Microsoft Excel application&lt;br /&gt;'ExcelApp - The Microsoft Excel application to which an new Microsoft Excel workbook will be added &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 32, 96);"&gt;Function CreateNewWorkbook(ExcelApp)&lt;br /&gt;   Set NewWorkbook = ExcelApp.Workbooks.Add()&lt;br /&gt;   Set CreateNewWorkbook = NewWorkbook&lt;br /&gt;End Function &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(79, 97, 40);"&gt;'The OpenWorkbook method opens a previously saved Microsoft Excel workbook and adds it to the Application&lt;br /&gt;'excelApp - The Microsoft Excel application to which the workbook will be added.&lt;br /&gt;'path - The path of the workbook that will be opened&lt;br /&gt;'Returns Nothing on failure &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 32, 96);"&gt;Function OpenWorkbook(ExcelApp, path)&lt;br /&gt;   On Error Resume Next&lt;br /&gt;   Set NewWorkbook = ExcelApp.Workbooks.Open(path)&lt;br /&gt;   Set OpenWorkbook = NewWorkbook&lt;br /&gt;   On Error GoTo 0&lt;br /&gt;End Function &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(79, 97, 40);"&gt;'The ActivateWorkbook method sets one of the workbooks in the application as the active workbook&lt;br /&gt;'ExcelApp - The workbook's parent Microsft Excel application&lt;br /&gt;'workbookIdentifier - The name or the number of the workbook&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 32, 96);"&gt;Sub ActivateWorkbook(ExcelApp, workbookIdentifier)&lt;br /&gt;   On Error Resume Next&lt;br /&gt;   ExcelApp.Workbooks(workbookIdentifier).Activate&lt;br /&gt;   On Error GoTo 0&lt;br /&gt;End Sub &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(79, 97, 40);"&gt;'The CloseWorkbook method closes an open workbook&lt;br /&gt;'ExcelApp - The parent Microsoft Excel application of the workbook&lt;br /&gt;'workbookIdentifier - The name or the number of the workbook &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 32, 96);"&gt;Sub CloseWorkbook(ExcelApp, workbookIdentifier)&lt;br /&gt;   On Error Resume Next&lt;br /&gt;   ExcelApp.Workbooks(workbookIdentifier).Close&lt;br /&gt;   On Error GoTo 0&lt;br /&gt;End Sub &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(79, 97, 40);"&gt;'The CompareSheets method compares two sheets.&lt;br /&gt;'If there is a difference between the two sheets then the value in the second sheet&lt;br /&gt;'will be changed to red and contain the string:&lt;br /&gt;'Compare conflict - Value was 'Value2', Expected value is 'value2'"&lt;br /&gt;'sheet1, sheet2 - The Microsoft Excel sheets to be compared&lt;br /&gt;'startColumn - The column to start comparing in the two sheets&lt;br /&gt;'numberOfColumns - The number of columns to be compared&lt;br /&gt;'startRow - The row to start comparing in the two sheets&lt;br /&gt;'numberOfRows - The number of rows to be compared &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 32, 96);"&gt;Function CompareSheets(sheet1, sheet2, startColumn, numberOfColumns, startRow, numberOfRows, trimed) 'As Boolean&lt;br /&gt;   Dim returnVal 'As Boolean&lt;br /&gt;   returnVal = True&lt;br /&gt;   'If one of the sheets does not exist, do not continue the process&lt;br /&gt;   If sheet1 Is Nothing Or sheet2 Is Nothing Then&lt;br /&gt;          CompareSheets = False&lt;br /&gt;          Exit Function&lt;br /&gt;   End If&lt;br /&gt;   'Loop through the table and fill values into the two worksheets&lt;br /&gt;   For r = startRow to (startRow + (numberOfRows - 1))&lt;br /&gt;          For c = startColumn to (startColumn + (numberOfColumns - 1))&lt;br /&gt;                 Value1 = sheet1.Cells(r, c)&lt;br /&gt;                 Value2 = sheet2.Cells(r, c)&lt;br /&gt;                 'If 'trimed' equals True then user wants to ignore blank spaces&lt;br /&gt;                 If trimed Then&lt;br /&gt;                        Value1 = Trim(Value1)&lt;br /&gt;                        Value2 = Trim(Value2)&lt;br /&gt;                 End If&lt;br /&gt;                 'if the values of a cell are not equal in the two worksheets&lt;br /&gt;                 'create an indicator that the values are not equal and set the return value&lt;br /&gt;                 'to False&lt;br /&gt;                 If Value1 &lt;&gt; Value2 Then&lt;br /&gt;                        Dim cell 'As Excel.Range&lt;br /&gt;                        sheet2.Cells(r, c) = "Compare conflict - Value was '" &amp;amp; Value2 &amp;amp; "', Expected value is '" &amp;amp; Value1 &amp;amp; "'."&lt;br /&gt;                        Set cell = sheet2.Cells(r, c)&lt;br /&gt;                        cell.Font.Color = vbRed&lt;br /&gt;                        returnVal = False&lt;br /&gt;                 End If&lt;br /&gt;          Next&lt;br /&gt;   Next&lt;br /&gt;   CompareSheets = returnVal&lt;br /&gt;End Function&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(118, 146, 60);"&gt;&lt;span style="background-color: rgb(250, 250, 250);"&gt;'***********************************************&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(79, 97, 40);"&gt;'Main Script which calls all above the functions.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 32, 96);"&gt;Dim ExcellApp 'As Excel.Application&lt;br /&gt;Dim excelSheet1 'As Excel.worksheet&lt;br /&gt;Dim excelSheet2 'As Excel.worksheet&lt;br /&gt;Set ExcelApp = CreateExcel() &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(79, 97, 40);"&gt;'Create a workbook with two worksheets &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 32, 96);"&gt;ret = RenameWorksheet(ExcelApp, "Book1", "Sheet1", "Example1 Sheet Name")&lt;br /&gt;ret = RenameWorksheet(ExcelApp, "Book1", "Sheet2", "Example2 Sheet Name") &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(79, 97, 40);"&gt;'Save as the workbook under a different name &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 32, 96);"&gt;ret = SaveWorkbook(ExcelApp, "Book1", "E:\Example1.xls") &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(79, 97, 40);"&gt;'Fill the worksheets &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 32, 96);"&gt;Set excelSheet1 = GetSheet(ExcelApp, "Example1 Sheet Name")&lt;br /&gt;Set excelSheet2 = GetSheet(ExcelApp, "Example2 Sheet Name")&lt;br /&gt;For column = 1 to 10&lt;br /&gt;   For row = 1 to 10&lt;br /&gt;          SetCellValue excelSheet1, row, column, row + column&lt;br /&gt;          SetCellValue excelSheet2, row, column, row + column&lt;br /&gt;   Next&lt;br /&gt;Next &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(79, 97, 40);"&gt;'Compare the two worksheets &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 32, 96);"&gt;ret = CompareSheets(excelSheet1, excelSheet2, 1, 10, 1, 10, False)&lt;br /&gt;If ret Then&lt;br /&gt;   MsgBox "The two worksheets are identical"&lt;br /&gt;End If &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(79, 97, 40);"&gt;'Change the values in one sheet &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 32, 96);"&gt;SetCellValue excelSheet1, 1, 1, "Yellow"&lt;br /&gt;SetCellValue excelSheet2, 2, 2, "Hello" &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(79, 97, 40);"&gt;'Compare the worksheets again &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 32, 96);"&gt;ret = CompareSheets(excelSheet1, excelSheet2, 1, 10, 1, 10, True)&lt;br /&gt;If Not ret Then&lt;br /&gt;   MsgBox "The two worksheets are not identical"&lt;br /&gt;End If &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(79, 97, 40);"&gt;'Save the workbook by index identifier &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 32, 96);"&gt;SaveWorkbook ExcelApp, 1, "" &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(79, 97, 40);"&gt;'Close the Microsoft Excel application &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 32, 96);"&gt;CloseExcel ExcelApp &lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-4057855988474076943?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/4057855988474076943/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=4057855988474076943' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/4057855988474076943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/4057855988474076943'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2009/05/excel-automation.html' title='Excel Automation'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-860677928256597685</id><published>2009-02-02T08:47:00.000-08:00</published><updated>2011-08-18T07:47:36.986-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='remove;dollar symbol;add amounts'/><title type='text'>How to add two dollar amounts</title><content type='html'>'''''' To add the $ amounts''''''''''''''''&lt;br /&gt;&lt;br /&gt;amount1 = inputbox("Enter the first dollar amount")&lt;br /&gt;''''''Enter the amount with $ symbol Ex - $ 2000&lt;br /&gt;&lt;br /&gt;amount2 = inputbox("Enter the second dollar amount")&lt;br /&gt;'''''Enter the amount with $ symbol Ex - $ 3000&lt;br /&gt;&lt;br /&gt;lnt1=len (amount1)      &lt;br /&gt;'To get the length of the dollar amount&lt;br /&gt;lnt2=len(amount2)      &lt;br /&gt;' To get the length of the dollar amount&lt;br /&gt;&lt;br /&gt;aamount1 = Right(amount1,lnt1-1)    &lt;br /&gt;'''''' To remove the dollar symbol and get the actual amount&lt;br /&gt;&lt;br /&gt;aamount2= Right(amount2,lnt2 - 1)&lt;br /&gt;''''''To remove the dollar symbol and get the actual amount&lt;br /&gt;&lt;br /&gt;msgbox Cint(aamount1)+Cint(aamount2)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-860677928256597685?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/860677928256597685/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=860677928256597685' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/860677928256597685'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/860677928256597685'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2009/02/how-to-add-two-dollar-amounts.html' title='How to add two dollar amounts'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-3130762402499514517</id><published>2009-01-14T09:28:00.001-08:00</published><updated>2009-02-01T02:01:13.628-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='word replacement'/><title type='text'>Search for a word and replace the word with a new word then save as a different file name</title><content type='html'>'Before this script executes, you need to have a "Greetings.doc" in C drive and it contains some information. In that information each line is contains a word "Good". Now my objective is to Replace the word "Good" with "Bad". And save file with new name.&lt;br /&gt;################################################################&lt;br /&gt;&lt;br /&gt;Set Word = CreateObject("Word.Application")&lt;br /&gt;Word.Visible = TRUE&lt;br /&gt;Set WordDoc=Word.Documents.Open ("C:\Greetings.doc")&lt;br /&gt;Do&lt;br /&gt;With Word.Selection.Find&lt;br /&gt;.Text = "Good"&lt;br /&gt;.Replacement.Text = "Bad"&lt;br /&gt;.Forward = True&lt;br /&gt;.wrap=1&lt;br /&gt;.Format = False&lt;br /&gt;.MatchWholeWord = True&lt;br /&gt;End With&lt;br /&gt;Word.Documents.Application.Selection.Find.Execute&lt;br /&gt;If Word.Selection.Find.Found Then&lt;br /&gt;   Word.Selection.Range="bad"&lt;br /&gt;   else&lt;br /&gt;   Exit Do&lt;br /&gt;End If&lt;br /&gt;Loop&lt;br /&gt;WordDoc.SaveAS "C:\BadGreetings.doc"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-3130762402499514517?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/3130762402499514517/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=3130762402499514517' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/3130762402499514517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/3130762402499514517'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2009/01/qtp-92-programming-examples.html' title='Search for a word and replace the word with a new word then save as a different file name'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-5785687542660035812</id><published>2009-01-14T09:27:00.001-08:00</published><updated>2009-01-14T09:27:05.862-08:00</updated><title type='text'>QTP VB Script Trainings</title><content type='html'>Check out this SlideShare Presentation: &lt;div style="width:425px;text-align:left" id="__ss_760964"&gt;&lt;a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/aimran/qtp-vb-script-trainings-presentation?type=powerpoint" title="QTP VB Script Trainings"&gt;QTP VB Script Trainings&lt;/a&gt;&lt;object style="margin:0px" width="425" height="355"&gt;&lt;param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=qtpvbscripttrainings-1226943311953297-8&amp;stripped_title=qtp-vb-script-trainings-presentation" /&gt;&lt;param name="allowFullScreen" value="true"/&gt;&lt;param name="allowScriptAccess" value="always"/&gt;&lt;embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc=qtpvbscripttrainings-1226943311953297-8&amp;stripped_title=qtp-vb-script-trainings-presentation" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;"&gt;View SlideShare &lt;a style="text-decoration:underline;" href="http://www.slideshare.net/aimran/qtp-vb-script-trainings-presentation?type=powerpoint" title="View QTP VB Script Trainings on SlideShare"&gt;presentation&lt;/a&gt; or &lt;a style="text-decoration:underline;" href="http://www.slideshare.net/upload?type=powerpoint"&gt;Upload&lt;/a&gt; your own.&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/7132883052638225247-5785687542660035812?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/5785687542660035812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=5785687542660035812' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/5785687542660035812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/5785687542660035812'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2009/01/qtp-vb-script-trainings.html' title='QTP VB Script Trainings'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-6398938519596958788</id><published>2009-01-14T09:25:00.001-08:00</published><updated>2009-01-14T09:25:57.415-08:00</updated><title type='text'>QTP Shortcut Keys</title><content type='html'>Check out this SlideShare Presentation: &lt;div style="width:425px;text-align:left" id="__ss_244796"&gt;&lt;a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/dwiner/qtp-shortcut-keys?type=powerpoint" title="QTP Shortcut Keys"&gt;QTP Shortcut Keys&lt;/a&gt;&lt;object style="margin:0px" width="425" height="355"&gt;&lt;param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=qtp-shortcut-keys-1201572987365341-2&amp;stripped_title=qtp-shortcut-keys" /&gt;&lt;param name="allowFullScreen" value="true"/&gt;&lt;param name="allowScriptAccess" value="always"/&gt;&lt;embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc=qtp-shortcut-keys-1201572987365341-2&amp;stripped_title=qtp-shortcut-keys" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;"&gt;View SlideShare &lt;a style="text-decoration:underline;" href="http://www.slideshare.net/dwiner/qtp-shortcut-keys?type=powerpoint" title="View QTP Shortcut Keys on SlideShare"&gt;presentation&lt;/a&gt; or &lt;a style="text-decoration:underline;" href="http://www.slideshare.net/upload?type=powerpoint"&gt;Upload&lt;/a&gt; your own.&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/7132883052638225247-6398938519596958788?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/6398938519596958788/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=6398938519596958788' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/6398938519596958788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/6398938519596958788'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2009/01/qtp-shortcut-keys.html' title='QTP Shortcut Keys'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-3775689631139048929</id><published>2009-01-14T09:07:00.001-08:00</published><updated>2009-01-14T09:07:13.869-08:00</updated><title type='text'>Polish Your Skills For QTP Interview In MNC's</title><content type='html'>Check out this SlideShare Presentation: &lt;div style="width:425px;text-align:left" id="__ss_763068"&gt;&lt;a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/yogindernath/polish-your-skills-for-qtp-interview-in-mnc-presentation-763068?type=powerpoint" title="Polish Your Skills For QTP Interview In MNC&amp;#39;s"&gt;Polish Your Skills For QTP Interview In MNC&amp;#39;s&lt;/a&gt;&lt;object style="margin:0px" width="425" height="355"&gt;&lt;param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=polish-your-skills-for-qtp-interview-in-mnc-1228363228275986-8&amp;stripped_title=polish-your-skills-for-qtp-interview-in-mnc-presentation-763068" /&gt;&lt;param name="allowFullScreen" value="true"/&gt;&lt;param name="allowScriptAccess" value="always"/&gt;&lt;embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc=polish-your-skills-for-qtp-interview-in-mnc-1228363228275986-8&amp;stripped_title=polish-your-skills-for-qtp-interview-in-mnc-presentation-763068" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;"&gt;View SlideShare &lt;a style="text-decoration:underline;" href="http://www.slideshare.net/yogindernath/polish-your-skills-for-qtp-interview-in-mnc-presentation-763068?type=powerpoint" title="View Polish Your Skills For QTP Interview In MNC&amp;#39;s on SlideShare"&gt;presentation&lt;/a&gt; or &lt;a style="text-decoration:underline;" href="http://www.slideshare.net/upload?type=powerpoint"&gt;Upload&lt;/a&gt; your own. (tags: &lt;a style="text-decoration:underline;" href="http://slideshare.net/tag/quiz"&gt;quiz&lt;/a&gt; &lt;a style="text-decoration:underline;" href="http://slideshare.net/tag/answer"&gt;answer&lt;/a&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/7132883052638225247-3775689631139048929?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/3775689631139048929/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=3775689631139048929' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/3775689631139048929'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/3775689631139048929'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2009/01/polish-your-skills-for-qtp-interview-in.html' title='Polish Your Skills For QTP Interview In MNC&amp;#39;s'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-455561879632957828</id><published>2009-01-14T09:04:00.001-08:00</published><updated>2009-02-05T06:24:21.542-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Keyword Driven methodology'/><title type='text'>How to Implement Keyword Driven Methodology in QTP</title><content type='html'>Check out this SlideShare Presentation: &lt;div style="width: 425px; text-align: left;" id="__ss_812303"&gt;&lt;a style="margin: 12px 0pt 3px; font-family: Helvetica,Arial,Sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal; display: block; text-decoration: underline;" href="http://www.slideshare.net/yogindernath/how-to-implement-keyword-driven-methodology-in-qtp-presentation-812303?type=powerpoint" title="How to Implement Keyword Driven Methodology in QTP"&gt;How to Implement Keyword Driven Methodology in QTP&lt;/a&gt;&lt;object style="margin: 0px;" width="425" height="355"&gt;&lt;param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=how-to-implement-test-with-keyword-driven-methodology-in-qtp-1228294623358143-8&amp;amp;stripped_title=how-to-implement-keyword-driven-methodology-in-qtp-presentation-812303"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowScriptAccess" value="always"&gt;&lt;embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc=how-to-implement-test-with-keyword-driven-methodology-in-qtp-1228294623358143-8&amp;amp;stripped_title=how-to-implement-keyword-driven-methodology-in-qtp-presentation-812303" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div style="font-size: 11px; font-family: tahoma,arial; height: 26px; padding-top: 2px;"&gt;View SlideShare &lt;a style="text-decoration: underline;" href="http://www.slideshare.net/yogindernath/how-to-implement-keyword-driven-methodology-in-qtp-presentation-812303?type=powerpoint" title="View How to Implement Keyword Driven Methodology in QTP on SlideShare"&gt;presentation&lt;/a&gt; or &lt;a style="text-decoration: underline;" href="http://www.slideshare.net/upload?type=powerpoint"&gt;Upload&lt;/a&gt; your own. (tags: &lt;a style="text-decoration: underline;" href="http://slideshare.net/tag/qtp"&gt;qtp&lt;/a&gt; &lt;a style="text-decoration: underline;" href="http://slideshare.net/tag/keyword"&gt;keyword&lt;/a&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/7132883052638225247-455561879632957828?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/455561879632957828/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=455561879632957828' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/455561879632957828'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/455561879632957828'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2009/01/how-to-implement-keyword-driven.html' title='How to Implement Keyword Driven Methodology in QTP'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-8875413604683445152</id><published>2009-01-14T08:46:00.001-08:00</published><updated>2009-02-05T06:23:51.048-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Descriptive Programming'/><title type='text'>QTP Descriptive Programming</title><content type='html'>Check out this SlideShare Presentation: &lt;div style="width: 425px; text-align: left;" id="__ss_59165"&gt;&lt;a style="margin: 12px 0pt 3px; font-family: Helvetica,Arial,Sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal; display: block; text-decoration: underline;" href="http://www.slideshare.net/yassa/qtp-descriptive-programming?type=powerpoint" title="QTP Descriptive Programming"&gt;QTP Descriptive Programming&lt;/a&gt;&lt;object style="margin: 0px;" width="425" height="355"&gt;&lt;param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=qtp-descriptive-programming-11200&amp;amp;stripped_title=qtp-descriptive-programming"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowScriptAccess" value="always"&gt;&lt;embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc=qtp-descriptive-programming-11200&amp;amp;stripped_title=qtp-descriptive-programming" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div style="font-size: 11px; font-family: tahoma,arial; height: 26px; padding-top: 2px;"&gt;View SlideShare &lt;a style="text-decoration: underline;" href="http://www.slideshare.net/yassa/qtp-descriptive-programming?type=powerpoint" title="View QTP Descriptive Programming on SlideShare"&gt;presentation&lt;/a&gt; or &lt;a style="text-decoration: underline;" href="http://www.slideshare.net/upload?type=powerpoint"&gt;Upload&lt;/a&gt; your own. (tags: &lt;a style="text-decoration: underline;" href="http://slideshare.net/tag/vbscript"&gt;vbscript&lt;/a&gt; &lt;a style="text-decoration: underline;" href="http://slideshare.net/tag/programming"&gt;programming&lt;/a&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/7132883052638225247-8875413604683445152?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/8875413604683445152/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=8875413604683445152' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8875413604683445152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8875413604683445152'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2009/01/qtp-descriptive-programming.html' title='QTP Descriptive Programming'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-1360045055712090727</id><published>2009-01-11T08:52:00.001-08:00</published><updated>2009-02-05T06:23:23.359-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='QTP 9.2'/><title type='text'>QTP 9.2</title><content type='html'>Check out this Presentation: &lt;div style="width: 425px; text-align: left;" id="__ss_265489"&gt;&lt;a style="margin: 12px 0pt 3px; font-family: Helvetica,Arial,Sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal; display: block; text-decoration: underline;" href="http://www.slideshare.net/kuldeepse/qtp-92?type=powerpoint" title="QTP 9.2"&gt;QTP 9.2&lt;/a&gt;&lt;object style="margin: 0px;" width="425" height="355"&gt;&lt;param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=qtp-92-1202983412605251-4&amp;amp;stripped_title=qtp-92"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowScriptAccess" value="always"&gt;&lt;embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc=qtp-92-1202983412605251-4&amp;amp;stripped_title=qtp-92" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div style="font-size: 11px; font-family: tahoma,arial; height: 26px; padding-top: 2px;"&gt;View SlideShare &lt;a style="text-decoration: underline;" href="http://www.slideshare.net/kuldeepse/qtp-92?type=powerpoint" title="View QTP 9.2 on SlideShare"&gt;presentation&lt;/a&gt; or &lt;a style="text-decoration: underline;" href="http://www.slideshare.net/upload?type=powerpoint"&gt;Upload&lt;/a&gt; your own. (tags: &lt;a style="text-decoration: underline;" href="http://slideshare.net/tag/solutions"&gt;solutions&lt;/a&gt; &lt;a style="text-decoration: underline;" href="http://slideshare.net/tag/testing"&gt;testing&lt;/a&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/7132883052638225247-1360045055712090727?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/1360045055712090727/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=1360045055712090727' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/1360045055712090727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/1360045055712090727'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2009/01/qtp-92.html' title='QTP 9.2'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-8899121228973399265</id><published>2009-01-11T08:22:00.000-08:00</published><updated>2009-02-05T06:22:32.401-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Working with Object Repository'/><title type='text'>Script for adding and ramoving Object repository to an action</title><content type='html'>&lt;div&gt;Here i have written two functions for adding and removing Object Repositories for an action call these function with object repository path.&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;'Adding Repository to an action&lt;br /&gt;Function AddRepositorytoCurrentAction(RepPath)&lt;/div&gt; &lt;div&gt;&lt;br /&gt;Dim qtApp,qtRepositories, actName&lt;br /&gt;&lt;br /&gt;actName=Environment.Value("ActionName")&lt;br /&gt;&lt;br /&gt;Set qtApp = CreateObject("QuickTest.Application")&lt;br /&gt;Set qtRepositories = qtApp.Test.Actions(actName).ObjectRepositories&lt;br /&gt;&lt;br /&gt;If qtRepositories.Find(RepPath) = -1 Then&lt;br /&gt;qtRepositories.Add RepPath, 1&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;If rmvPosition&lt;&gt; -1 Then&lt;br /&gt;Reporter.ReportEvent micPass,"Adding Object Repository","Object Repository is Succesfully Added to the Action "&amp;amp;actName&lt;br /&gt;else&lt;br /&gt;Reporter.ReportEvent micFail,"Adding Object Repository","Object Repository is not Added to the Action "&amp;amp;actName&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;qtApp= Nothing&lt;br /&gt;qtRepositories= Nothing&lt;/div&gt; &lt;div&gt;End Function&lt;/div&gt; &lt;div&gt;&lt;br /&gt;'Remove repository from an action&lt;br /&gt;Function RemoveRepositoryfromCurrentAction(RepPath)&lt;/div&gt; &lt;div&gt; Dim qtApp,qtRepositories, actName&lt;br /&gt;&lt;br /&gt;actName=Environment.Value("ActionName")&lt;br /&gt;&lt;br /&gt;Set qtApp = CreateObject("QuickTest.Application")&lt;br /&gt;Set qtRepositories = qtApp.Test.Actions(actName).ObjectRepositories&lt;br /&gt;&lt;br /&gt;rPosition=qtRepositories.Find(RepPath)&lt;br /&gt;&lt;br /&gt;qtRepositories.Remove rPosition&lt;br /&gt;&lt;br /&gt;rmvPosition=qtRepositories.Find(RepPath)&lt;br /&gt;&lt;br /&gt;If rmvPosition= -1 Then&lt;br /&gt;Reporter.ReportEvent micPass,"Removing Object Repository","Object Repository is Succesfully Removed From the Action "&amp;amp;actName&lt;br /&gt;else&lt;br /&gt;Reporter.ReportEvent micFail,"Removing Object Repository","Object Repository is not Removed From the Action "&amp;amp;actName&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;qtApp= Nothing&lt;br /&gt;qtRepositories= Nothing&lt;br /&gt;&lt;br /&gt;End Function&lt;/div&gt; &lt;div&gt;&lt;br /&gt;&lt;/div&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/7132883052638225247-8899121228973399265?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/8899121228973399265/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=8899121228973399265' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8899121228973399265'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8899121228973399265'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2009/01/script-for-adding-and-ramoving-object.html' title='Script for adding and ramoving Object repository to an action'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-7029282753161822659</id><published>2009-01-11T07:54:00.000-08:00</published><updated>2009-02-01T01:59:56.609-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tool Tip'/><title type='text'>To get the tool tip of the Link</title><content type='html'>&lt;span style="font-weight: bold;"&gt;l_ToolTip=Browser( bName).Page( pName).Link( lName).object. title&lt;br /&gt;msgbox &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;l_ToolTip&lt;/span&gt;&lt;br /&gt;This statement will bring the tooltip of a link.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-7029282753161822659?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/7029282753161822659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=7029282753161822659' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/7029282753161822659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/7029282753161822659'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2009/01/to-get-tool-tip-of-link.html' title='To get the tool tip of the Link'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-3977178947827668682</id><published>2009-01-11T07:50:00.000-08:00</published><updated>2009-02-05T06:21:35.474-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dynamic Links'/><title type='text'>How to click on Dynamic Links</title><content type='html'>Here is the script to click on the dynamic Links in table. Even though if any link are dynamic we can get control on the links by using index.&lt;br /&gt;&lt;br /&gt;'########### ######### ######### ######### ######### ######### #########&lt;br /&gt;  Set TblObj=Browser( BrowserProp) .Page(PageProp) .WebTable( TableProp)&lt;br /&gt;&lt;br /&gt;   r_Count=TblObj. RowCount&lt;br /&gt;&lt;br /&gt;       For r=1 to r_Count&lt;br /&gt;               c_Count=TblObj. ColumnCount( r)&lt;br /&gt;&lt;br /&gt;                       For c=1 to c_Count&lt;br /&gt;&lt;br /&gt;                            chItems_Count= TblObj.ChildItem Count(r,c, "Link")&lt;br /&gt;&lt;br /&gt;                               For ItemIndex=0 to chItems_Count- 1&lt;br /&gt;&lt;br /&gt;                                   Set ch_Item=TblObj. ChildItem( r,c,"Link" ,ItemIndex)&lt;br /&gt;                                   Print ch_Item.object. title&lt;br /&gt;                                   ch_Item.click&lt;br /&gt;                                    ' Specify the required operations after clicking on link&lt;br /&gt;                                   ' Make sure that again you should navigate to the same page to get other links tooltip&lt;br /&gt;                                   'Or to click on other Links&lt;br /&gt;                               Next&lt;br /&gt;&lt;br /&gt;                       Next&lt;br /&gt;        Next&lt;br /&gt;'########### ######### ######### ######### #########&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-3977178947827668682?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/3977178947827668682/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=3977178947827668682' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/3977178947827668682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/3977178947827668682'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2009/01/how-to-click-on-dynamic-links.html' title='How to click on Dynamic Links'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-2039317970307023157</id><published>2009-01-11T07:46:00.000-08:00</published><updated>2009-02-05T06:21:12.692-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Use of Classes'/><title type='text'>How to use Classes in QTP</title><content type='html'>Here i am giving an useful information about how to use classes in QTP.&lt;br /&gt;&lt;br /&gt;Before going to that we will discuss about using functions in QTP.&lt;br /&gt;&lt;br /&gt;If there is a function in our script like this&lt;br /&gt;&lt;br /&gt;'*********** ********* ********* ********* ********* ********* **&lt;br /&gt;Function Demo(a,b)&lt;br /&gt;demo=a+b&lt;br /&gt;End Function&lt;br /&gt;'*********** ********* ********* ********* ********* ********* **&lt;br /&gt;&lt;br /&gt;This is a function to add two numbers.&lt;br /&gt;To call this function we write&lt;br /&gt;'*********** ********* *****&lt;br /&gt;val=demo(2,3)&lt;br /&gt;msgbox val&lt;br /&gt;'*********** ********* *****&lt;br /&gt;We can store the functions in library files (.vbs) and to use this function, Library should be associated to the QTP Test or library file should be executed by QTP Test using ExecuteFile statement.&lt;br /&gt;This means we can use the functions which are written in QTP Script or in  Library files by associating it or by executing it.&lt;br /&gt;&lt;br /&gt;But this is not possible when using classes in our QTP Test. If we want to use a class which is there in the libraryfile its mandotory that the library should be executed using Executefile statement.&lt;br /&gt;Classes will not work which are there in associated libraries. Here is an example...&lt;br /&gt;&lt;br /&gt;'*********** ********* ********* ********* ********* **&lt;br /&gt;Class Maths&lt;br /&gt;Function Add1(a,b)&lt;br /&gt;add1=a+b&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;Function sub1(a,b)&lt;br /&gt;sub1=a-b&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;End Class&lt;br /&gt;'*********** ********* ********* ********* ********* **&lt;br /&gt;If the above code is there with in the test script then the usage of this class will be like this&lt;br /&gt;'*********** ********* ********* ********* ********* **&lt;br /&gt;Set mat=New Maths&lt;br /&gt;val=mat.add1( 2,3)&lt;br /&gt;msgbox val&lt;br /&gt;'*********** ********* ********* ********* ********* **&lt;br /&gt;If the class code is there with in the library file then the usage of this class will be like this&lt;br /&gt;'*********** ********* ********* ********* ********* **&lt;br /&gt;ExecuteFile (Library Path)&lt;br /&gt;Set mat=New Maths&lt;br /&gt;val=mat.add1( 2,3)&lt;br /&gt;msgbox val&lt;br /&gt;'*********** ********* ********* ********* ********* **&lt;br /&gt;This class will not work If you just associate the library with in the&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;File--&gt; Settings --&gt; Resources&lt;/span&gt;&lt;br /&gt;But there is a way of using the classes even though if it is in associated library.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;First Method:&lt;/span&gt;&lt;br /&gt;Where ever the class is declared in the library it self create the class instance and use it in your qtp script.&lt;br /&gt;'*********** ********* ********* ********* ********* **&lt;br /&gt;Set mat=New Maths&lt;br /&gt;&lt;br /&gt;Class Maths&lt;br /&gt;Function Add1(a,b)&lt;br /&gt;add1=a+b&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;Function sub1(a,b)&lt;br /&gt;sub1=a-b&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;End Class&lt;br /&gt;'*********** ********* ********* ********* ********* **&lt;br /&gt;To Use this class&lt;br /&gt;'*********** ********* *&lt;br /&gt;val=mat.add1( 2,3)&lt;br /&gt;msgbox val&lt;br /&gt;'*********** ********* *&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Second Method:&lt;/span&gt;&lt;br /&gt;Create a function which is returning class object by creating instance of the class.&lt;br /&gt;'*********** ********* ********* ********* ********* **&lt;br /&gt;Function mat()&lt;br /&gt;Set mat=New Maths&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;Class Maths&lt;br /&gt;Function Add1(a,b)&lt;br /&gt;add1=a+b&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;Function sub1(a,b)&lt;br /&gt; sub1=a-b&lt;br /&gt; End Function&lt;br /&gt;&lt;br /&gt;End Class&lt;br /&gt;'*********** ********* ********* ********* ********* **&lt;br /&gt;To Use this class&lt;br /&gt;'*********** ********* *&lt;br /&gt;Set mth=mat    ' mat is a function which will return the class instance&lt;br /&gt;val=mth.add1( 2,3)&lt;br /&gt;msgbox val&lt;br /&gt; '*********** ********* *&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-2039317970307023157?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/2039317970307023157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=2039317970307023157' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/2039317970307023157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/2039317970307023157'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2009/01/how-to-use-classes-in-qtp.html' title='How to use Classes in QTP'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-6573946832955171243</id><published>2008-12-06T02:39:00.001-08:00</published><updated>2009-02-05T06:20:15.515-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Working with files'/><title type='text'>To Know the Type of File</title><content type='html'>Set obj=createobject("Scripting.filesystemobject")&lt;br /&gt;Set of=obj.getfile("c:\1.xls")&lt;br /&gt;s=of.type&lt;br /&gt;msgbox s&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-6573946832955171243?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/6573946832955171243/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=6573946832955171243' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/6573946832955171243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/6573946832955171243'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/to-know-type-of-file.html' title='To Know the Type of File'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-4994964385990843329</id><published>2008-12-06T02:36:00.001-08:00</published><updated>2009-02-05T06:19:53.719-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Working with files'/><title type='text'>To Display the Files in a Particular Folder</title><content type='html'>folderpath="E:\macromedia-8"&lt;br /&gt;  Set fso = CreateObject("Scripting.FileSystemObject")&lt;br /&gt;  Set f = fso.GetFolder(folderpath)&lt;br /&gt;  Set fc = f.Files&lt;br /&gt;&lt;br /&gt;  For Each f1 in fc&lt;br /&gt;     s = s &amp;amp; f1.name &amp;amp;chr(10)&lt;br /&gt;  Next&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-4994964385990843329?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/4994964385990843329/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=4994964385990843329' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/4994964385990843329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/4994964385990843329'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/to-display-files-in-particular-folder_06.html' title='To Display the Files in a Particular Folder'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-7333482501778751540</id><published>2008-12-06T02:33:00.000-08:00</published><updated>2009-02-05T06:19:23.052-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ascending order'/><category scheme='http://www.blogger.com/atom/ns#' term='arrays'/><title type='text'>Displaying numbers into Ascending Order By Using Arrays</title><content type='html'>''''''''''''''''Displaying numbers into Ascending Order By Using Arrays'''''''''''''''''''''''''''''''''''''''''&lt;br /&gt;a=array(10,20,1,30,2,40,23,50,4)&lt;br /&gt;&lt;br /&gt;For j=lbound(a) to ubound(a)&lt;br /&gt;  For i=lbound(a) to ubound(a)-1&lt;br /&gt;       If a(i)&gt;a(i+1) Then&lt;br /&gt;           temp=a(i+1)&lt;br /&gt;           a(i+1)=a(i)&lt;br /&gt;           a(i)=temp&lt;br /&gt;      End If&lt;br /&gt;  Next&lt;br /&gt;For i=lbound(a) to ubound(a)&lt;br /&gt;      x=x&amp;amp;chr(10)&amp;amp;a(i)&lt;br /&gt;      'y=a(i)&amp;amp;chr(10)&lt;br /&gt;Next&lt;br /&gt;&lt;br /&gt;msgbox(x)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-7333482501778751540?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/7333482501778751540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=7333482501778751540' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/7333482501778751540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/7333482501778751540'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/displaying-numbers-into-ascending-order_06.html' title='Displaying numbers into Ascending Order By Using Arrays'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-7575208674374221062</id><published>2008-12-06T02:29:00.001-08:00</published><updated>2009-02-05T06:18:47.788-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='swap the numbers'/><title type='text'>Swaping two numbers without using 3rd variable</title><content type='html'>a=inputbox ("Enter the first value:")&lt;br /&gt;b=inputbox( "Enter the second value:")&lt;br /&gt;msgbox "a= "&amp;amp;a&amp;amp;" b= "&amp;amp;b&lt;br /&gt;a=int(a)+int(b)&lt;br /&gt;b=int(a)-int(b)&lt;br /&gt;a=int(a)-int(b)&lt;br /&gt;msgbox "After swap a= "&amp;amp;a&amp;amp;" b= "&amp;amp;b&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-7575208674374221062?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/7575208674374221062/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=7575208674374221062' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/7575208674374221062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/7575208674374221062'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/swaping-two-numbers-without-using-3rd.html' title='Swaping two numbers without using 3rd variable'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-2318203221660357567</id><published>2008-12-06T02:25:00.000-08:00</published><updated>2009-02-05T06:18:17.460-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Mathematical table'/><title type='text'>Write a Mathematical Table in Notepad through the VB Script</title><content type='html'>'To open notepad and write a mathematical table in that throug QTP and save in C Drive and close&lt;br /&gt;&lt;br /&gt;Set obj=createobject("Scripting.filesystemobject")&lt;br /&gt;Set of=obj.createtextfile("c:\mat.txt")&lt;br /&gt;'set of=obj.opentextfile("c:\mat.txt")&lt;br /&gt;For i=1 to 10&lt;br /&gt;   x=5*i&lt;br /&gt;   of.writeline"5 * "&amp;amp;i&amp;amp;" = "&amp;amp;x&lt;br /&gt;Next&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-2318203221660357567?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/2318203221660357567/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=2318203221660357567' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/2318203221660357567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/2318203221660357567'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/write-mathematical-table-in-notepad.html' title='Write a Mathematical Table in Notepad through the VB Script'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-7009579933758824504</id><published>2008-12-06T02:23:00.000-08:00</published><updated>2009-02-05T06:17:44.198-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Working with files'/><title type='text'>Comparing Two Files</title><content type='html'>''''''''''''''''''''''''Compare both the text files and isolate the differences found in the file1 which are not present in file2''''''''''''''''''''''''''''''''&lt;br /&gt;''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' in a seperate ouput file.''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;br /&gt;&lt;br /&gt;dim found&lt;br /&gt;set objfso = createobject("scripting.filesystemobject")&lt;br /&gt;set objinputfile2 = objfso.opentextfile ("c:\text2.txt")&lt;br /&gt;set objoutputfile = objfso.createtextfile("c:\output.txt")&lt;br /&gt;&lt;br /&gt;do until objinputfile2.atendofstream&lt;br /&gt;found = false&lt;br /&gt;strnextline2 = objinputfile2.readline&lt;br /&gt;set objinputfile1 = objfso.opentextfile ("c:\text1.txt")&lt;br /&gt;&lt;br /&gt;do until objinputfile1.atendofstream&lt;br /&gt;strnextline1 = objinputfile1.readline&lt;br /&gt;&lt;br /&gt;if (strnextline2 = strnextline1) then&lt;br /&gt;found = true&lt;br /&gt;end if&lt;br /&gt;loop&lt;br /&gt;&lt;br /&gt;objinputfile1.close&lt;br /&gt;&lt;br /&gt;if (found = false) then&lt;br /&gt;objoutputfile.writeline strnextline2&lt;br /&gt;end if&lt;br /&gt;loop&lt;br /&gt;&lt;br /&gt;objinputfile2.close&lt;br /&gt;objoutputfile.close&lt;br /&gt;set objinputfile1 = nothing&lt;br /&gt;set objinputfile2 = nothing&lt;br /&gt;set objoutputfile = nothing&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-7009579933758824504?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/7009579933758824504/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=7009579933758824504' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/7009579933758824504'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/7009579933758824504'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/comparing-two-files.html' title='Comparing Two Files'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-5576997705997588498</id><published>2008-12-06T02:22:00.002-08:00</published><updated>2009-02-05T06:17:05.245-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Log Files'/><title type='text'>Writing Log Files</title><content type='html'>Public function generate_result()&lt;br /&gt;&lt;br /&gt;   starttime=time()&lt;br /&gt;   msgbox(nam)&lt;br /&gt;   MyArray=split(nam, ":", -1)&lt;br /&gt;&lt;br /&gt;   For i=0 to ubound(MyArray)&lt;br /&gt;       filename=filename+MyArray(i)&lt;br /&gt;   Next&lt;br /&gt; &lt;br /&gt;   Set fso=Createobject("Scripting.FileSystemObject")&lt;br /&gt;   Set textfile=fso.createtextfile("c:/result.txt")&lt;br /&gt; &lt;br /&gt;   textfile.Writeline("Automated Smoke Test Results")&lt;br /&gt;   textfile.WriteLine("````````````````````````````")&lt;br /&gt;   textfile.WriteBlanklines(3)&lt;br /&gt;   textfile.WriteLine("Run on Host : " &amp;amp; Environment.Value("LocalHostName"))&lt;br /&gt;   textfile.WriteBlanklines(1)&lt;br /&gt;   textfile.WriteLine("Run on Operating System : " &amp;amp; Environment.Value("OS"))&lt;br /&gt;   textfile.WriteBlanklines(1)&lt;br /&gt;   textfile.WriteLine("Run on : "&amp;amp;now)&lt;br /&gt;   textfile.WriteBlanklines(1)&lt;br /&gt;   endtime=time()&lt;br /&gt;   textfile.WriteLine("Test Start Time : " &amp;amp;starttime)&lt;br /&gt;   textfile.WriteLine("Test End Time : " &amp;amp; endtime)&lt;br /&gt;   textfile.WriteLine("Test Execution Time : " &amp;amp; datediff("s", startime, endtime)&amp;amp; " Seconds")&lt;br /&gt; &lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;generate_result()&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-5576997705997588498?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/5576997705997588498/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=5576997705997588498' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/5576997705997588498'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/5576997705997588498'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/writing-log-files.html' title='Writing Log Files'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-2460891252389695806</id><published>2008-12-06T02:22:00.001-08:00</published><updated>2009-02-05T06:16:41.497-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB Procedures'/><title type='text'>VB Script Procedures</title><content type='html'>'There are two types of procedures&lt;br /&gt;&lt;br /&gt;'1. Function Procedure&lt;br /&gt;'2. Sub Procedure&lt;br /&gt;&lt;br /&gt;'Function Procedure-A Function procedure is a series of VBScript statements enclosed by the Function&lt;br /&gt;'and End Function statements. Function Procedure can able to return the value.&lt;br /&gt;&lt;br /&gt;'Example:&lt;br /&gt;&lt;br /&gt;Function demo_add(a,b)&lt;br /&gt;&lt;br /&gt;   demo_add=a+b&lt;br /&gt;&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;oVal=demo_add( 2,3)&lt;br /&gt;&lt;br /&gt;msgbox oVal    'Returns 5&lt;br /&gt;&lt;br /&gt;'In this example demo_add function returns a value to oVal.&lt;br /&gt;'In Function procedures we can use function name to assign a value.&lt;br /&gt;&lt;br /&gt;'Sub Procedure-A Sub procedure is a series of VBScript statements enclosed by the Sub&lt;br /&gt;'and End Sub statements. Sub Procedure cannot return any value.&lt;br /&gt;&lt;br /&gt;'Example:&lt;br /&gt;&lt;br /&gt;Sub demo_sub(a,b, c)&lt;br /&gt;   c=a+b&lt;br /&gt;End sub&lt;br /&gt;&lt;br /&gt;demo_sub 2,3,x&lt;br /&gt;msgbox x    'Returns 5&lt;br /&gt;&lt;br /&gt;'This example will do the same as what function procedure is doing above.&lt;br /&gt;'But in sub Procedure we need to use one more parameter to get values from the sub procedure.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-2460891252389695806?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/2460891252389695806/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=2460891252389695806' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/2460891252389695806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/2460891252389695806'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/vb-script-procedures.html' title='VB Script Procedures'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-4931234214652253173</id><published>2008-12-06T02:20:00.000-08:00</published><updated>2009-02-05T06:16:10.866-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='split function'/><title type='text'>Use of Split Function</title><content type='html'>''''To display the words in a sentence by spliting with dellimeter''''&lt;br /&gt;&lt;br /&gt;str1="arunsingh is a good boy"&lt;br /&gt;var=split(str1," ")&lt;br /&gt;lenarray=ubound(var)&lt;br /&gt;For i=0 to lenarray&lt;br /&gt;str2=var(i)&lt;br /&gt;msgbox str2&lt;br /&gt;Next&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-4931234214652253173?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/4931234214652253173/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=4931234214652253173' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/4931234214652253173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/4931234214652253173'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/use-of-split-function.html' title='Use of Split Function'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-6258055222961065397</id><published>2008-12-06T02:19:00.002-08:00</published><updated>2009-02-05T06:15:49.195-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Random Number'/><title type='text'>Use of RandomNumber Method</title><content type='html'>set da1=datatable.AddSheet("demo")&lt;br /&gt;set da2=datatable.AddSheet("result")&lt;br /&gt;&lt;br /&gt;set pm1=da1.addparameter("name","123")&lt;br /&gt;set pm2= da1.addparameter("age","18")&lt;br /&gt;&lt;br /&gt;For i=1 to 10&lt;br /&gt;   da1.setcurrentrow(i)&lt;br /&gt;   pm1.value="emp"&amp;amp;i&lt;br /&gt;   pm2.value=RandomNumber (30,60)&lt;br /&gt;Next&lt;br /&gt;&lt;br /&gt;x=da1.getrowcount&lt;br /&gt;set pmr=da2.addparameter("resname","")&lt;br /&gt;set pmg=da2.addparameter("age","")&lt;br /&gt;  k=1&lt;br /&gt;For j=1 to x&lt;br /&gt;   ag=pm2.valuebyrow(j)&lt;br /&gt;&lt;br /&gt;   If ag&gt;50 Then&lt;br /&gt;   pmr.valuebyrow(k)=pm1.valuebyrow(j)&lt;br /&gt;   pmg.valuebyrow(k)=ag&lt;br /&gt;   k=k+1&lt;br /&gt;   End If&lt;br /&gt; &lt;br /&gt;Next&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-6258055222961065397?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/6258055222961065397/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=6258055222961065397' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/6258055222961065397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/6258055222961065397'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/use-of-randaomnumber-method.html' title='Use of RandomNumber Method'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-195112677007173495</id><published>2008-12-06T02:19:00.001-08:00</published><updated>2009-02-05T06:15:06.668-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Working with Excel'/><title type='text'>Use of Excel Object Model</title><content type='html'>''We can do excel operations using excel object model. To find excel object model in your system follow these steps..&lt;br /&gt;&lt;br /&gt;'*********** ********* ********* ********* *&lt;br /&gt;'creating an excel application object&lt;br /&gt;Set Excel=CreateObject( "Excel.Application")&lt;br /&gt;'Adding a sheet in that application&lt;br /&gt;Set ExcelSheet = CreateObject( "Excel.Sheet" )&lt;br /&gt;' Make Excel visible through the Application object.&lt;br /&gt;ExcelSheet.Application.Visible = True&lt;br /&gt;&lt;br /&gt;'Adding value into sheet&lt;br /&gt;For i=1 to 10&lt;br /&gt;ExcelSheet.ActiveSheet.Cells( i,1).Value = "This is column A, row"&amp;amp;i&lt;br /&gt;Next&lt;br /&gt;&lt;br /&gt;' Save the sheet.&lt;br /&gt;ExcelSheet.SaveAs "C:\TEST.xls"&lt;br /&gt;' Close Excel with the Quit method on the Application object.&lt;br /&gt;ExcelSheet.Applicat ion.Quit&lt;br /&gt;' Release the object variable.&lt;br /&gt;Set ExcelSheet = Nothing&lt;br /&gt;'*********** ********* ********* ********* *&lt;br /&gt;''Copy this script in .vbs file and double click on it or paste this script in QTP and execute it.&lt;br /&gt;''After that go C:\ drive you will find an excel application in the name of TEST.xls..&lt;br /&gt;''Try to understand this by referring excel object model.. Revert me for any concerns..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-195112677007173495?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/195112677007173495/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=195112677007173495' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/195112677007173495'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/195112677007173495'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/use-of-excel-object-model.html' title='Use of Excel Object Model'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-2317791907871595173</id><published>2008-12-06T02:14:00.000-08:00</published><updated>2009-02-05T06:14:42.998-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='set the value'/><category scheme='http://www.blogger.com/atom/ns#' term='property'/><title type='text'>How to set the value for a property</title><content type='html'>Setting.Add "Tester Name", "Mark Train"&lt;br /&gt;&lt;br /&gt;MsgBox Setting("Tester Name")&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-2317791907871595173?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/2317791907871595173/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=2317791907871595173' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/2317791907871595173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/2317791907871595173'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/how-to-set-value-for-property.html' title='How to set the value for a property'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-3164913716311482601</id><published>2008-12-06T02:12:00.000-08:00</published><updated>2009-02-05T06:13:58.542-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SetToProperty'/><title type='text'>Use of SetTOProperty</title><content type='html'>'For example..in first build there is a OK button..and u&lt;br /&gt;'reorded on OK button..&lt;br /&gt;&lt;br /&gt;'but in modified build it changed to Yes..and this&lt;br /&gt;'modificatio is only for single build...in this situation u&lt;br /&gt;'need to change that button name OK to Yes&lt;br /&gt;&lt;br /&gt;'window("XXXX").winbutton("OK").SetTOProperty "Text","Yes"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-3164913716311482601?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/3164913716311482601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=3164913716311482601' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/3164913716311482601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/3164913716311482601'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/use-of-settoproperty.html' title='Use of SetTOProperty'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-3814461071816183027</id><published>2008-12-06T02:09:00.000-08:00</published><updated>2009-02-05T06:12:35.995-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Search'/><category scheme='http://www.blogger.com/atom/ns#' term='Google'/><title type='text'>To search for something in Google</title><content type='html'>url="ww.google.com"&lt;br /&gt;systemutil.Run"IEXPLORE",url    'It is to Open a Browser with any website address&lt;br /&gt;&lt;br /&gt;Set gBrowser=Browser("name:=Google.*")&lt;br /&gt;Set gPage=gBrowser.Page("title:=Google.*")&lt;br /&gt;gPage.webedit("name:=q","type:=text","html tag:=INPUT").set "QTP"&lt;br /&gt;gpage.webbutton("name:=Google Search","index:=0","type:=submit","html tag:=INPUT").click&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-3814461071816183027?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/3814461071816183027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=3814461071816183027' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/3814461071816183027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/3814461071816183027'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/to-search-for-something-in-google.html' title='To search for something in Google'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-5458862178937234504</id><published>2008-12-06T02:03:00.000-08:00</published><updated>2009-02-05T06:12:07.416-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Use of Instr'/><title type='text'>To Check weather the text contains a particular word or not</title><content type='html'>var="raju want to marry"&lt;br /&gt;If instr(1,var,"want") Then&lt;br /&gt;   msgbox "Exist"&lt;br /&gt;   else&lt;br /&gt;   msgbox "doesnot Exist"&lt;br /&gt;End If&lt;br /&gt;&lt;a id="publishButton" class="cssButton" href="javascript:void(0)" onclick="if (this.className.indexOf(&amp;quot;ubtn-disabled&amp;quot;) == -1) {var e = document['stuffform'].publish;(e.length) ? e[0].click() : e.click(); if (window.event) window.event.cancelBubble = true; return false;}"&gt;&lt;div class="cssButtonOuter"&gt;&lt;div class="cssButtonMiddle"&gt;&lt;div class="cssButtonInner"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-5458862178937234504?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/5458862178937234504/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=5458862178937234504' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/5458862178937234504'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/5458862178937234504'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/to-check-weather-text-contains.html' title='To Check weather the text contains a particular word or not'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-2266768147294870625</id><published>2008-12-06T02:02:00.000-08:00</published><updated>2009-02-05T06:11:38.051-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='working with checkboxes'/><title type='text'>To check/Uncheck all the checkboxes present on a web page</title><content type='html'>Systemutil.Run"IExplore","www.yahoomail.com"&lt;br /&gt;wait(10)&lt;br /&gt;&lt;br /&gt;Dim obj_DescChk&lt;br /&gt;&lt;br /&gt;Set obj_DescChk=Description.Create&lt;br /&gt;obj_DescChk("html tag").value="INPUT"&lt;br /&gt;obj_DescChk("type").value="checkbox"&lt;br /&gt;&lt;br /&gt;'obj_DescChk.remove "html tag"     '''''''''''''''''''Would delete the html tag property from the collections&lt;br /&gt;'If obj_DescChk("html tag").value=empty then  ''''''''To Know the  property is exists or not in the collection&lt;br /&gt;   'obj_DescChk("html tag").value="INPUT" '''''''''''''''''If not then add it to the collection&lt;br /&gt;'end if&lt;br /&gt;&lt;br /&gt;Dim  AllChkBoxes, SingleChkBox&lt;br /&gt;Set AllChkBoxes=Browser("title:=Yahoo! Mail: The best web-based email!").Page("title:=Yahoo! Mail: The best web-based email!").ChildObjects(obj_DescChk)&lt;br /&gt;msgbox AllChkBoxes.count&lt;br /&gt;For i=0 to AllChkBoxes.count-1&lt;br /&gt;   AllChkBoxes(i).set "ON"&lt;br /&gt;Next&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-2266768147294870625?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/2266768147294870625/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=2266768147294870625' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/2266768147294870625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/2266768147294870625'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/to-checkuncheck-all-checkboxes-present.html' title='To check/Uncheck all the checkboxes present on a web page'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-3485983042543103051</id><published>2008-12-06T01:56:00.000-08:00</published><updated>2009-02-05T06:11:03.718-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Working with Datatable'/><title type='text'>To retrive data from datatable which is in 3rd row and 4th column</title><content type='html'>'in Action1 sheet change the names of  A,B,C,D columns with A,B,C,D respectively.&lt;br /&gt;'And type the values in D column&lt;br /&gt;&lt;br /&gt;datatable.SetCurrentRow(3)&lt;br /&gt;answer=datatable(4,2)'.Value(4,2) '4th column in 2nd Sheet&lt;br /&gt;msgbox answer&lt;br /&gt;'Run the program&lt;br /&gt;&lt;br /&gt;'-------------------------------------&lt;br /&gt;'To retrive value from 3rd row 4th column from external excel sheet&lt;br /&gt;&lt;br /&gt;datatable.Importsheet "c:/1.xls",1,1&lt;br /&gt;datatable.SetCurrentRow(3)&lt;br /&gt;val=datatable.Value(4,1)'4th column 1st sheet&lt;br /&gt;msgbox "The Value is "&amp;amp;val&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-3485983042543103051?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/3485983042543103051/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=3485983042543103051' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/3485983042543103051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/3485983042543103051'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/to-retrive-data-from-datatable-which-is.html' title='To retrive data from datatable which is in 3rd row and 4th column'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-3434987478917627490</id><published>2008-12-06T01:52:00.000-08:00</published><updated>2009-02-05T06:10:33.603-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Working with Word'/><title type='text'>How to paste a image in Word Document</title><content type='html'>Set objWord = CreateObject( "Word.Application")&lt;br /&gt;objWord.Visible = True&lt;br /&gt;Set objDoc = objWord.Documents. Add()&lt;br /&gt;Set objSelection = objWord.Selection&lt;br /&gt;&lt;br /&gt;Set objShape = objDoc.Shapes&lt;br /&gt;objShape.AddPicture ("c:\image010.jpg")&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-3434987478917627490?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/3434987478917627490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=3434987478917627490' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/3434987478917627490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/3434987478917627490'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/how-to-paste-image-in-word-document.html' title='How to paste a image in Word Document'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-4736741269739832277</id><published>2008-12-06T01:49:00.000-08:00</published><updated>2009-02-05T06:10:04.717-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='no of objects'/><title type='text'>To Know the No of Items in the Web Page</title><content type='html'>url="http://my.naukri.com/manager/createacc2.php?othersrcp=5421&amp;amp;wExp=N"&lt;br /&gt;'url="www.gmail.com"&lt;br /&gt;'url="www.yahoomail.com"&lt;br /&gt;&lt;br /&gt;If Browser("index:=0").Exist(1) then' If Browser is already opened&lt;br /&gt;       a = Browser("index:=0").GetROProperty("hwnd")&lt;br /&gt;       Browser("hwnd:=" &amp;amp; a).Navigate(url)&lt;br /&gt;       Browser("hwnd:=" &amp;amp; a).Sync&lt;br /&gt;       wait(2)&lt;br /&gt;   Else' If Browser is not opened&lt;br /&gt;       SystemUtil.Run"IEXPLORE.exe"&lt;br /&gt;       a = Browser("index:=0").GetROProperty("hwnd")&lt;br /&gt;       Browser("hwnd:=" &amp;amp; a).Navigate(url)&lt;br /&gt;       Browser("hwnd:=" &amp;amp; a).Sync&lt;br /&gt;       wait(2)&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;Set Editobj=Description.Create'For WebEdits&lt;br /&gt;Editobj("html tag").value="INPUT"&lt;br /&gt;Editobj("kind").value="singleline"&lt;br /&gt;&lt;br /&gt;Set Butobj = Description.Create'For Buttons&lt;br /&gt;Butobj("html tag").value = "INPUT"&lt;br /&gt;Butobj("type").value="submit"&lt;br /&gt;&lt;br /&gt;Set Listobj=Description.Create'For Web Lists&lt;br /&gt;Listobj("html tag").value="SELECT"&lt;br /&gt;&lt;br /&gt;Set Linkobj=Description.Create'For Link&lt;br /&gt;Linkobj("html tag").value="A"&lt;br /&gt;&lt;br /&gt;Set Checkboxobj=Description.Create'For Checkboxes&lt;br /&gt;Checkboxobj("html tag").value="INPUT"&lt;br /&gt;Checkboxobj("type").value="checkbox"&lt;br /&gt;&lt;br /&gt;Set Radioobj=Description.Create'For Radio Buttons&lt;br /&gt;Radioobj("html tag").value="INPUT"&lt;br /&gt;Radioobj("html id").value="ctctype_i"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Set Edits = browser("hwnd:=" &amp;amp;a).Page("title:=.*").ChildObjects(Editobj)&lt;br /&gt;Set Buttons = browser("hwnd:=" &amp;amp;a).Page("title:=.*").ChildObjects(Butobj)&lt;br /&gt;Set Lists = browser("hwnd:=" &amp;amp;a).Page("title:=.*").ChildObjects(Listobj)&lt;br /&gt;Set Links = browser("hwnd:=" &amp;amp;a).Page("title:=.*").ChildObjects(Linkobj)&lt;br /&gt;Set Checks = browser("hwnd:=" &amp;amp;a).Page("title:=.*").ChildObjects(Checkboxobj)&lt;br /&gt;Set Radios = browser("hwnd:=" &amp;amp;a).Page("title:=.*").ChildObjects(Radioobj)&lt;br /&gt;&lt;br /&gt;msgbox "Total EditBoxes are :  "&amp;amp;Edits.count&lt;br /&gt;msgbox "Total Button are :  "&amp;amp;Buttons.count&lt;br /&gt;msgbox "Total Lists are :  "&amp;amp;Lists.count&lt;br /&gt;msgbox "Total Links are :  "&amp;amp;Links.count&lt;br /&gt;msgbox "Total checkBoxes are :  "&amp;amp;Checks.count&lt;br /&gt;msgbox "Total RadioButtons are :  "&amp;amp;Radios.count&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-4736741269739832277?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/4736741269739832277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=4736741269739832277' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/4736741269739832277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/4736741269739832277'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/to-know-no-of-items-in-web-page.html' title='To Know the No of Items in the Web Page'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-8224067799245665951</id><published>2008-12-06T01:48:00.001-08:00</published><updated>2009-02-05T06:09:41.465-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Working with Excel'/><title type='text'>To Insert a Value in a Exce l Sheet</title><content type='html'>''''''''''''''''''''To Insert a Value in a Exce l Sheet'''''''''''''''''''''''''&lt;br /&gt;&lt;br /&gt;Set xl=createobject("Excel.Application")&lt;br /&gt;Set x=xl.workbooks.open("c:/arun.xls")&lt;br /&gt;Set y=xl.activeworkbook.worksheets("sheet1")&lt;br /&gt;xl.cells(1,1)="arun"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-8224067799245665951?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/8224067799245665951/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=8224067799245665951' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8224067799245665951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8224067799245665951'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/to-insert-value-in-exce-l-sheet.html' title='To Insert a Value in a Exce l Sheet'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-7959598131966770997</id><published>2008-12-03T18:29:00.002-08:00</published><updated>2009-02-05T06:09:08.691-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Working with Flat File'/><title type='text'>To get the only numbers from the flat file and store in a datatable</title><content type='html'>'bombay 100 hyderabad jkjk                                                                                                                                                                     '&lt;br /&gt;'djkhkk ksljk 88 asdk                                                                                                                                                                                      '&lt;br /&gt;'dkjsajl kskj kjhsjk 88                                                                                                                                                                                        '&lt;br /&gt;'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''To get the only numbers from the flat file and store in a datatable''''''''''''''''''''''''''''''''''''&lt;br /&gt;set fso=createobject("scripting.filesystemobject")&lt;br /&gt;set oText=fso.opentextfile("c:/demo.txt",1)&lt;br /&gt;datatable.getsheet(1).addparameter"Numbers",""&lt;br /&gt;row=1&lt;br /&gt;While not oText.atendofline&lt;br /&gt;text=oText.readline&lt;br /&gt;n=split(text," ")&lt;br /&gt;for i=lbound(n) to ubound(n)&lt;br /&gt;   If isnumeric(n(i)) then&lt;br /&gt;   datatable.setcurrentrow(row)&lt;br /&gt;   datatable(1,1)=n(i)   '''''''''''''''datatable(ColumnNo,SheetNo)&lt;br /&gt;   row=row+1&lt;br /&gt;   end if&lt;br /&gt;Next&lt;br /&gt;wend&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-7959598131966770997?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/7959598131966770997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=7959598131966770997' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/7959598131966770997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/7959598131966770997'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/to-get-only-numbers-from-flat-file-and.html' title='To get the only numbers from the flat file and store in a datatable'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-98419607948967411</id><published>2008-12-03T18:29:00.001-08:00</published><updated>2009-02-05T06:08:33.725-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Files in Floder'/><title type='text'>To Display the Files in a Particular Folder</title><content type='html'>'''''''''''''''''''To Display the Files in a Particular Folder'''''''''''''''''''''''''''''''''''&lt;br /&gt;&lt;br /&gt;folderpath="E:\macromedia-8"&lt;br /&gt;  Set fso = CreateObject("Scripting.FileSystemObject")&lt;br /&gt;  Set f = fso.GetFolder(folderpath)&lt;br /&gt;  Set fc = f.Files&lt;br /&gt;&lt;br /&gt;  For Each f1 in fc&lt;br /&gt;     s = s &amp;amp; f1.name &amp;amp;chr(10)&lt;br /&gt;  Next&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-98419607948967411?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/98419607948967411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=98419607948967411' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/98419607948967411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/98419607948967411'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/to-display-files-in-particular-folder.html' title='To Display the Files in a Particular Folder'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-3861083870097006817</id><published>2008-12-03T18:27:00.001-08:00</published><updated>2009-02-05T06:08:09.744-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Count the objects'/><title type='text'>To count the no of links and button in a web page</title><content type='html'>'''''''''''''''''''''''''Open A Google Page and Count the No Of Links and Buttons in that page'''''''''''''''''''''''''''''''''''&lt;br /&gt;'                                                                                                                                                        '&lt;br /&gt;'                                                                                                                                                        '&lt;br /&gt;'                                                                                                                                                        '&lt;br /&gt;'                                                                                                                                                        '&lt;br /&gt;'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;br /&gt;If Browser("index:=0").Exist(1) then' If Browser is already opened&lt;br /&gt;       a = Browser("index:=0").GetROProperty("hwnd")&lt;br /&gt;       Browser("hwnd:=" &amp;amp; a).Navigate("http://www.google.com")&lt;br /&gt;       Browser("hwnd:=" &amp;amp; a).Sync&lt;br /&gt;       wait(2)&lt;br /&gt;   Else' If Browser is not opened&lt;br /&gt;       SystemUtil.Run"IEXPLORE.exe"&lt;br /&gt;       a = Browser("index:=0").GetROProperty("hwnd")&lt;br /&gt;       Browser("hwnd:=" &amp;amp; a).Navigate("http://www.google.com")&lt;br /&gt;       Browser("hwnd:=" &amp;amp; a).Sync&lt;br /&gt;       wait(2)&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;Set Butobj = Description.Create()'For Button&lt;br /&gt;Butobj("html tag").value = "INPUT"'For Button&lt;br /&gt;Butobj("type").value="submit"'For Button&lt;br /&gt;&lt;br /&gt;Set Linkobj=Description.Create()'For Link&lt;br /&gt;Linkobj("html tag").value="A"'For Link&lt;br /&gt;&lt;br /&gt;Set Buttons = browser("hwnd:=" &amp;amp;a).Page("title:=.*").ChildObjects(Butobj)&lt;br /&gt;Set Links = browser("hwnd:=" &amp;amp;a).Page("title:=.*").ChildObjects(Linkobj)&lt;br /&gt;&lt;br /&gt;msgbox "Total Button are :  "&amp;amp;Buttons.count&lt;br /&gt;msgbox "Total Links are :  "&amp;amp;Links.count&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-3861083870097006817?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/3861083870097006817/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=3861083870097006817' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/3861083870097006817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/3861083870097006817'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/to-count-no-of-links-and-button-in-web.html' title='To count the no of links and button in a web page'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-639765549558473330</id><published>2008-12-03T18:26:00.001-08:00</published><updated>2009-02-05T06:07:37.168-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Copy file'/><title type='text'>To copy contents of one file to another file</title><content type='html'>'To copy contents of one file to another file&lt;br /&gt;&lt;br /&gt;Set fso=createobject("scripting.filesystemobject")&lt;br /&gt;Set fname=fso.opentextfile("C:/mtable.txt",1)&lt;br /&gt;Set fname1=fso.createtextfile("C:/duptable1.txt")&lt;br /&gt;Do while not fname.atendofstream&lt;br /&gt;   n=fname.readline&lt;br /&gt;   fname1.writeline n&lt;br /&gt;Loop&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-639765549558473330?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/639765549558473330/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=639765549558473330' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/639765549558473330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/639765549558473330'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/to-copy-contents-of-one-file-to-another.html' title='To copy contents of one file to another file'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-2599833260970218280</id><published>2008-12-03T18:24:00.001-08:00</published><updated>2009-02-05T06:07:05.669-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='color the excel column'/><title type='text'>To Color the column in a excel sheet</title><content type='html'>'""""To Color the column in a excel sheet.""""""""""""""''''&lt;br /&gt;&lt;br /&gt;Set xlApp=Createobject("Excel.Application")&lt;br /&gt;set xlWorkBook=xlApp.workbooks.add&lt;br /&gt;set xlWorkSheet=xlWorkbook.worksheets.add&lt;br /&gt;xlWorkSheet.Range("A1:B10").interior.colorindex = 34 'Change the color of the cells&lt;br /&gt;xlWorkSheet.Range("A1:A10").value="text" 'Will set values of all 10 rows to "text"&lt;br /&gt;xlWorkSheet.Cells(1,1).value="Text" 'Will set the value of first row and first col&lt;br /&gt;&lt;br /&gt;rowsCount=xlWorkSheet.Evaluate("COUNTA(A:A)") 'Will count the # of rows which have non blank value in the column A&lt;br /&gt;colsCount=xlWorkSheet.Evaluate("COUNTA(1:1)") 'Will count the # of non blank columns in 1st row&lt;br /&gt;&lt;br /&gt;xlWorkbook.SaveAs "C:\Test.xls"&lt;br /&gt;xlWorkBook.Close&lt;br /&gt;Set xlWorkSheet=Nothing&lt;br /&gt;Set xlWorkBook=Nothing&lt;br /&gt;set xlApp=Nothing&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-2599833260970218280?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/2599833260970218280/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=2599833260970218280' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/2599833260970218280'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/2599833260970218280'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/to-color-column-in-excel-sheet.html' title='To Color the column in a excel sheet'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-3814948276051830753</id><published>2008-12-03T18:21:00.000-08:00</published><updated>2009-02-05T06:06:00.764-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='list items'/><title type='text'>To know the no of list items in the web page</title><content type='html'>''''''''''''''''''''To know the no of list items in the web page'''''''''''''''''''''''''''''''''&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;url="http://corp.naukri.com/mynaukri/mn_newsmartsearch.php?xz=2_0_5&amp;amp;id="&lt;br /&gt;Systemutil.Run "Iexplore.exe",url&lt;br /&gt;set oDesc= Browser("name:=Mynaukri : naukri.com - India's No.1 Job Site")&lt;br /&gt;itemcount=oDesc.WebList("name:=qe").GetROProperty("items count")&lt;br /&gt;msgbox "Number of Items in Experience List= "&amp;amp; itemcount&lt;br /&gt;itemcount=oDesc.WebList("name:=qm").GetROProperty("items count")&lt;br /&gt;msgbox "Number of Items in Minimum Salary List= "&amp;amp;itemcount&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-3814948276051830753?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/3814948276051830753/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=3814948276051830753' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/3814948276051830753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/3814948276051830753'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/returning-multiple-values-from.html' title='To know the no of list items in the web page'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-8216751499183083151</id><published>2008-12-03T18:18:00.000-08:00</published><updated>2009-02-05T06:05:14.440-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='word replacement'/><title type='text'>Replace all text with a new text in a text file</title><content type='html'>Set oDesc=createobject("scripting.filesystemobject")&lt;br /&gt;Set oFile=oDesc.opentextfile("c:/demo.txt",2,true)'''''1-Reading 2-Writing 3-Appending&lt;br /&gt;oFile.write "Hello World"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-8216751499183083151?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/8216751499183083151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=8216751499183083151' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8216751499183083151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8216751499183083151'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/replace-all-text-with-new-text-in-text.html' title='Replace all text with a new text in a text file'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-6613959700115126436</id><published>2008-12-03T18:15:00.001-08:00</published><updated>2009-02-05T06:04:34.159-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MS Word'/><title type='text'>Open Dialog box from Tool Menu of the MS Word Application</title><content type='html'>'This program will open a word pad and enter some text (impossibel) and checks the spelling and grammar in that text&lt;br /&gt;'This program will open a word and opens a spelling and grammar dialog box for tools menu&lt;br /&gt;&lt;br /&gt;Const wdDialogToolsSpellingAndGrammar = 828&lt;br /&gt;Const wdDoNotSaveChanges = 0&lt;br /&gt;&lt;br /&gt;Uncorrected = "impossibel"&lt;br /&gt;Set Word = CreateObject("Word.Application")&lt;br /&gt;Set Doc = Word.Documents.Add&lt;br /&gt;Word.Selection.Text = Uncorrected&lt;br /&gt;Word.Dialogs(wdDialogToolsSpellingAndGrammar).Show&lt;br /&gt;If Len(Word.Selection.Text) &lt;&gt; 1 Then&lt;br /&gt;Corrected = Word.Selection.Text&lt;br /&gt;Else&lt;br /&gt;  Corrected = Uncorrected&lt;br /&gt;End If&lt;br /&gt;Doc.Close wdDoNotSaveChanges&lt;br /&gt;Word.Quit&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-6613959700115126436?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/6613959700115126436/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=6613959700115126436' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/6613959700115126436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/6613959700115126436'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/open-dialog-box-from-tool-menu-of-ms.html' title='Open Dialog box from Tool Menu of the MS Word Application'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-2995935107075243904</id><published>2008-12-03T18:09:00.000-08:00</published><updated>2009-02-05T06:03:37.296-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Multiple Screenshots'/><title type='text'>Multiple Screen shots at runtime</title><content type='html'>''''''''''''''''''''''''''''''''To create multiple screeen shots at runtime''''''''''''''''''''''''''''''''''''''&lt;br /&gt;&lt;br /&gt;Systemutil.run"C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe"&lt;br /&gt;Set Dlg= Dialog("text:=Login")&lt;br /&gt;Set wnd=Window("text:=Flight Reservation")&lt;br /&gt;Set oDlg=wnd.Dialog("text:=Open Order")&lt;br /&gt;&lt;br /&gt;Dlg.WinEdit("attached text:=Agent Name:").set "rajaputra"&lt;br /&gt;Dlg.WinEdit("attached text:=Password:").setsecure"mercury"&lt;br /&gt;Dlg.WinButton("text:=OK").click&lt;br /&gt;&lt;br /&gt;wait(7)&lt;br /&gt;For i=1 to                                                                            &lt;br /&gt;wnd.Activate&lt;br /&gt;wnd.WinButton("window id:=5").click&lt;br /&gt;oDlg.WinCheckBox("text:=&amp;amp;Order No.").set "ON"&lt;br /&gt;oDlg.WinEdit("window id:=1016").set "55"&lt;br /&gt;oDlg.WinButton("text:=OK").click&lt;br /&gt;&lt;br /&gt;if(oDlg.Dialog("text:=Flight Reservations").Exist) then&lt;br /&gt;oDlg.Dialog("text:=Flight Reservations").CaptureBitmap"c:\snapshot"&amp;amp;i&amp;amp;".bmp"&lt;br /&gt;oDlg.Dialog("text:=Flight Reservations").WinButton("text:=OK").click&lt;br /&gt;oDlg.WinButton("text:=Cancel").click&lt;br /&gt;end if&lt;br /&gt;Next&lt;br /&gt;wnd.Close&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-2995935107075243904?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/2995935107075243904/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=2995935107075243904' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/2995935107075243904'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/2995935107075243904'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/to-get-user-friendly-message-instead-of.html' title='Multiple Screen shots at runtime'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-6348038484360803229</id><published>2008-12-03T18:07:00.000-08:00</published><updated>2009-02-05T06:03:12.336-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Descriptive Programming'/><title type='text'>DP from Logging in - Open a Order and Closing the Flight Reservation Application</title><content type='html'>''''''''''''''' Discriptive Program for starting from Logging in - Opening a order and closing the Flight Reservation Application'''''''''''''&lt;br /&gt;''''''''''''''Importing the Excel sheet into datatable and Exporting the Datatable into Excel file''''''''''''''''''''''''''''''''''''''''&lt;br /&gt;&lt;br /&gt;systemutil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe"&lt;br /&gt;Dialog("text:=Login").Activate&lt;br /&gt;Dialog("text:=Login").WinEdit("attached text:=Agent Name:").set "rajaputra"&lt;br /&gt;Dialog("text:=Login").WinEdit("attached text:=Password:").set "mercury"&lt;br /&gt;Dialog("text:=Login").WinButton("text:=OK").click&lt;br /&gt;wait(5)&lt;br /&gt;Window("text:=Flight Reservation").Activate&lt;br /&gt;datatable.Importsheet "c:/orders.xls",1,1' 1st sheet will be imported into the 1st sheet in runtime datatable&lt;br /&gt;rowcount=datatable.GetRowCount&lt;br /&gt;'msgbox rowcount&lt;br /&gt;For i=1 to rowcount&lt;br /&gt;   Window("text:=Flight Reservation").WinButton("window id:=5").click&lt;br /&gt;   Dialog("text:=Open Order").Activate&lt;br /&gt;   Dialog("text:=Open Order").WinCheckBox("text:=&amp;amp;Order No.").set "ON"&lt;br /&gt;   datatable.SetCurrentRow(i)&lt;br /&gt;   n=datatable(1,1) '1st column 1st sheet&lt;br /&gt;   Dialog("text:=Open Order").WinEdit("window id:=1016").set n  &lt;br /&gt;   Dialog("text:=Open Order").WinButton("text:=OK").click&lt;br /&gt;   If(window("text:=Flight Reservation").Dialog("text:=Open Order").Dialog("text:=Flight Reservations").exist)then&lt;br /&gt;      window("text:=Flight Reservation").Dialog("text:=Open Order").Dialog("text:=Flight Reservations").WinButton("text:=OK").click&lt;br /&gt;      window("text:=Flight Reservation").Dialog("text:=Open Order").WinButton("text:=Cancel").click&lt;br /&gt;      datatable(2,1)="Not Exist"'2nd column 1st sheet&lt;br /&gt;   Else&lt;br /&gt;      datatable(2,1)="Exist"   '2nd column 1st sheet&lt;br /&gt;   end if&lt;br /&gt;Next&lt;br /&gt;DataTable.Exportsheet"C:\flight.xls",1'1st sheet of the runtime datatable will be exported at last sheet in flight.xls&lt;br /&gt;Window("text:=Flight Reservation").Close&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-6348038484360803229?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/6348038484360803229/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=6348038484360803229' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/6348038484360803229'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/6348038484360803229'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/dp-from-logging-in-open-order-and.html' title='DP from Logging in - Open a Order and Closing the Flight Reservation Application'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-5930910401443646165</id><published>2008-12-03T18:03:00.000-08:00</published><updated>2009-02-05T06:02:38.106-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='split function'/><title type='text'>Importing Data from Flat File using Split function</title><content type='html'>'''''''''''''''''Importing Data From Flat File using split''''''''''''''''''''''''''''&lt;br /&gt;''Source.txt file is having following data&lt;br /&gt;''Arunsingh,40000,KiranKumar,35000,Chandra,50000&lt;br /&gt;''Test Engineer,Developer,Project Leader&lt;br /&gt;&lt;br /&gt;Set fso=createobject("scripting.filesystemobject")&lt;br /&gt;Set z=fso.opentextfile("c:\source.txt",1)&lt;br /&gt;l=1&lt;br /&gt;While not z.atendofline&lt;br /&gt;  i=1&lt;br /&gt;      k=1&lt;br /&gt;      count=1&lt;br /&gt;      parname=inputbox("Enter Name of The Parameter "&amp;amp;l) '''''Enter the requiered parameter names&lt;br /&gt;   datatable.GetSheet(1).addparameter parname,""&lt;br /&gt;   n=z.readline&lt;br /&gt;   a=split(n,",")&lt;br /&gt;   For j=lbound(a) to ubound(a)&lt;br /&gt;&lt;br /&gt;           If isnumeric(a(j)) Then&lt;br /&gt;               If count=1 Then&lt;br /&gt;                   datatable.GetSheet(1).addparameter "Salary",""&lt;br /&gt;                   count=count+1&lt;br /&gt;               end if  &lt;br /&gt;               datatable.SetCurrentRow(k)&lt;br /&gt;                m=l +1&lt;br /&gt;               datatable(m,1)=a(j)&lt;br /&gt;               k=k+1&lt;br /&gt;           else&lt;br /&gt;           datatable.SetCurrentRow(i)&lt;br /&gt;               datatable(l,1)=a(j)&lt;br /&gt;                   i=i+1&lt;br /&gt;           end if&lt;br /&gt;   Next&lt;br /&gt;    l=m&lt;br /&gt;      l=l+1&lt;br /&gt;Wend&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-5930910401443646165?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/5930910401443646165/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=5930910401443646165' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/5930910401443646165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/5930910401443646165'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/importing-data-from-flat-file-using.html' title='Importing Data from Flat File using Split function'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-3615566397532659346</id><published>2008-12-03T18:02:00.001-08:00</published><updated>2009-02-05T06:02:14.030-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='arrays'/><title type='text'>Fixed VS Dynamic Arrays</title><content type='html'>'Using Fixed arrays&lt;br /&gt;&lt;br /&gt;Dim x(2)&lt;br /&gt;&lt;br /&gt;x(0)="how"&lt;br /&gt;x(1)="are"&lt;br /&gt;x(2)="you"&lt;br /&gt;&lt;br /&gt;for i=lbound(x) to ubound (x)&lt;br /&gt;msgbox x(i)&lt;br /&gt;Next&lt;br /&gt;&lt;br /&gt;'Here we cann't store more than 3 elements. Because this is a fixed length array..&lt;br /&gt;&lt;br /&gt;'Using Dynamic Arrays&lt;br /&gt;&lt;br /&gt;Dim x()&lt;br /&gt;&lt;br /&gt;Redim preserve x(2)&lt;br /&gt;&lt;br /&gt;x(0)="how"&lt;br /&gt;x(1)="are"&lt;br /&gt;x(2)="you"&lt;br /&gt;&lt;br /&gt;Redim preserve x(3)&lt;br /&gt;x(3)=123&lt;br /&gt;&lt;br /&gt;'Here 'x' is a dynamic array and by redeclaring x it can able to store more values into it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-3615566397532659346?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/3615566397532659346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=3615566397532659346' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/3615566397532659346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/3615566397532659346'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/fixed-vs-dynamic-arrays.html' title='Fixed VS Dynamic Arrays'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-1488345751750099006</id><published>2008-12-03T17:57:00.000-08:00</published><updated>2009-02-05T06:01:49.105-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asending Order'/><title type='text'>Displaying Numbers into Ascending Order</title><content type='html'>''''''''''''''''Displaying numbers into Ascending Order By Using Arrays'''''''''''''''''''''''''''''''''''''''''&lt;br /&gt;a=array(10,20,1,30,2,40,23,50,4)&lt;br /&gt;&lt;br /&gt;For j=lbound(a) to ubound(a)&lt;br /&gt;   For i=lbound(a) to ubound(a)-1&lt;br /&gt;        If a(i)&gt;a(i+1) Then&lt;br /&gt;            temp=a(i+1)&lt;br /&gt;            a(i+1)=a(i)&lt;br /&gt;            a(i)=temp&lt;br /&gt;       End If&lt;br /&gt;   Next&lt;br /&gt;Next&lt;br /&gt;&lt;br /&gt;For i=lbound(a) to ubound(a)&lt;br /&gt;      x=x&amp;amp;chr(10)&amp;amp;a(i)&lt;br /&gt;Next&lt;br /&gt;&lt;br /&gt;msgbox(x)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-1488345751750099006?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/1488345751750099006/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=1488345751750099006' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/1488345751750099006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/1488345751750099006'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/displaying-numbers-into-ascending-order.html' title='Displaying Numbers into Ascending Order'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-8956495455682878995</id><published>2008-12-03T17:55:00.000-08:00</published><updated>2009-02-03T05:47:12.255-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='screenshot'/><title type='text'>Capture the Screen shot during runtime</title><content type='html'>''''''''''''''''''''''Capture the Screen Shot when Error Is Occured'''''''''''''''''''''''''''''''''''''&lt;br /&gt;'''''''''''''''''''''''''''''''''''''Using Objects'''''''''''''''''''''''''''''''''''''''''''''''''&lt;br /&gt;Systemutil.run"C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe"&lt;br /&gt;Set Dlg= Dialog("text:=Login")&lt;br /&gt;Set wnd=Window("text:=Flight Reservation")&lt;br /&gt;Set oDlg=wnd.Dialog("text:=Open Order")&lt;br /&gt;&lt;br /&gt;Dlg.WinEdit("attached text:=Agent Name:").set "rajaputra"&lt;br /&gt;Dlg.WinEdit("attached text:=Password:").setsecure"mercury"&lt;br /&gt;Dlg.WinButton("text:=OK").click&lt;br /&gt;&lt;br /&gt;wait(7)&lt;br /&gt;&lt;br /&gt;wnd.Activate&lt;br /&gt;wnd.WinButton("window id:=5").click&lt;br /&gt;oDlg.WinCheckBox("text:=&amp;amp;Order No.").set "ON"&lt;br /&gt;oDlg.WinEdit("window id:=1016").set "55"&lt;br /&gt;oDlg.WinButton("text:=OK").click&lt;br /&gt;&lt;br /&gt;if(oDlg.Dialog("text:=Flight Reservations").Exist) then&lt;br /&gt;oDlg.Dialog("text:=Flight Reservations").CaptureBitmap"c:\snapshot1.bmp"&lt;br /&gt;oDlg.Dialog("text:=Flight Reservations").WinButton("text:=OK").click&lt;br /&gt;oDlg.WinButton("text:=Cancel").click&lt;br /&gt;end if&lt;br /&gt;&lt;br /&gt;wnd.Close&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-8956495455682878995?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/8956495455682878995/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=8956495455682878995' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8956495455682878995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8956495455682878995'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/12/capture-screen-shot-during-runtime.html' title='Capture the Screen shot during runtime'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-8020273237076454823</id><published>2008-10-05T09:03:00.000-07:00</published><updated>2009-02-03T05:45:57.186-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Datatable'/><title type='text'>Export Datatable into Text File</title><content type='html'>Pre Requisite - abc.xls with one sheet with some values in first column&lt;br /&gt;&lt;br /&gt;textfile="c:\demo.txt"&lt;br /&gt;Set fso=createobject("scripting.filesystemobject")&lt;br /&gt;Set f=fso.createtextfile(textfile,2)&lt;br /&gt;&lt;br /&gt;datatable.Import("C:\abc.xls")&lt;br /&gt;set dg=datatable.GetSheet(1)&lt;br /&gt;&lt;br /&gt;x=dg.getparametercount&lt;br /&gt;rc=dg.getrowcount&lt;br /&gt;&lt;br /&gt;For i=1 to x&lt;br /&gt;   n=dg.getparameter(i).name ' Gives the First coulmn name&lt;br /&gt;   Set pmg=dg.getparameter(n)&lt;br /&gt;   f.writeline(n)&lt;br /&gt;               For j=1 to rc&lt;br /&gt;               f.writeline(pmg.valuebyrow(j))&lt;br /&gt;               next&lt;br /&gt;Next&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-8020273237076454823?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/8020273237076454823/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=8020273237076454823' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8020273237076454823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8020273237076454823'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/10/export-datatable-into-text-file.html' title='Export Datatable into Text File'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-8765715460816456723</id><published>2008-10-05T08:51:00.000-07:00</published><updated>2009-02-03T05:45:12.158-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flat File'/><title type='text'>Use of Flat File</title><content type='html'>''''''''Pre requisite---Open A Note Pad and enter some order nos 1 by 1, and Save it as flat.txt in c:\\'''''''''''''''''''''''''&lt;br /&gt;&lt;br /&gt;Set z=createobject("scripting.filesystemobject")&lt;br /&gt;Set f=z.opentextfile("c:\flat.txt",1)&lt;br /&gt;While f.atendofline&lt;&gt;true&lt;br /&gt;   n=f.readline&lt;br /&gt;Window("Flight Reservation").WinMenu("Menu").Select "File;Open Order..."&lt;br /&gt;Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Order No.").Set "ON"&lt;br /&gt;Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit").Set n&lt;br /&gt;Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click&lt;br /&gt;Wend&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-8765715460816456723?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/8765715460816456723/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=8765715460816456723' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8765715460816456723'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8765715460816456723'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/10/use-of-flat-file.html' title='Use of Flat File'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-4360839283531776727</id><published>2008-10-05T08:50:00.001-07:00</published><updated>2009-02-03T05:44:46.206-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='constants'/><title type='text'>Creating Constants</title><content type='html'>Constants-A constant is a meaningful name that takes the place of a number or string and never changes.&lt;br /&gt;The difference between variable and constant is we can change the variable value in run time&lt;br /&gt;but for constants its not possible.&lt;br /&gt;&lt;br /&gt;Creating constants&lt;br /&gt;&lt;br /&gt;const str="RAJAPUTRA"&lt;br /&gt;&lt;br /&gt;here str is a constant and the value will never change.&lt;br /&gt;&lt;br /&gt;We have public and Private constants. By default all are public. If you want specify the type then&lt;br /&gt;&lt;br /&gt;Public const str="RAJAPUTRA"&lt;br /&gt;      or&lt;br /&gt;Private const str="RAJAPUTRA"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-4360839283531776727?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/4360839283531776727/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=4360839283531776727' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/4360839283531776727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/4360839283531776727'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/10/creating-constants.html' title='Creating Constants'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-4181434368374813216</id><published>2008-10-05T08:46:00.000-07:00</published><updated>2009-02-03T05:44:04.359-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Copy folders'/><title type='text'>Copying Files and Folders</title><content type='html'>Set fso=createobject("scripting.filesystemobject")&lt;br /&gt;fso.copyfile"C:/SourceFileName.ext","c:/DestinationFile Name.ext"      'For copying a Files&lt;br /&gt;fso.copyfolder "C:/SourceFolderName","C:/DestinationFolderName"   ' For copying a Folders&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-4181434368374813216?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/4181434368374813216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=4181434368374813216' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/4181434368374813216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/4181434368374813216'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/10/copying-files-and-folders.html' title='Copying Files and Folders'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-1925896402864301511</id><published>2008-10-05T08:38:00.000-07:00</published><updated>2009-02-03T05:43:22.913-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='copy sheet'/><title type='text'>Copy the Data from One Sheet to Another Sheet</title><content type='html'>'''Let assume we have a excel file called abc.xls in C drive.&lt;br /&gt;'''In abc.xls we have one sheet with some values.&lt;br /&gt;'''We need to copy first sheet values into second sheet&lt;br /&gt;&lt;br /&gt;datatable.Import("c:\abc.xls")&lt;br /&gt;Set src=datatable.GetSheet(1)      'Source Sheet&lt;br /&gt;Set dsc=datatable.GetSheet(2)     'Destination Sheet&lt;br /&gt;&lt;br /&gt;pc=src.getparametercount           'Get the Source sheet column count&lt;br /&gt;rc=src.getrowcount                        'Get the Source sheet row count&lt;br /&gt;&lt;br /&gt;For i=1 to pc&lt;br /&gt;   n=src.getparameter(i).name     ' Get the Source sheet column name&lt;br /&gt;   'msgbox n&lt;br /&gt;   Set pmg=src.getparameter(n) &lt;br /&gt;   Set pm=dsc.addparameter(n,"")&lt;br /&gt;&lt;br /&gt;               For j=1 to rc&lt;br /&gt;               pm.valuebyrow(j)=pmg.valuebyrow(j)&lt;br /&gt;           next&lt;br /&gt;Next&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-1925896402864301511?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/1925896402864301511/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=1925896402864301511' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/1925896402864301511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/1925896402864301511'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/10/copy-data-from-one-sheet-to-another.html' title='Copy the Data from One Sheet to Another Sheet'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-5369813620842151730</id><published>2008-10-05T08:31:00.000-07:00</published><updated>2009-02-03T05:39:31.280-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='By value By Reference'/><title type='text'>By Value Vs By Reference</title><content type='html'>Types of arguments in procedures&lt;br /&gt;&lt;br /&gt;1. ByVal&lt;br /&gt;2. ByRef&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ByVal:&lt;br /&gt;&lt;br /&gt;Indicates that the argument is passed by value.&lt;br /&gt;&lt;br /&gt;ByRef :&lt;br /&gt;Indicates that the argument is passed by reference.&lt;br /&gt;&lt;br /&gt;By default all arguments are 'ByRef'.&lt;br /&gt;&lt;br /&gt;Syntax -&lt;br /&gt;&lt;br /&gt;Function demo_add(a,b)&lt;br /&gt;&lt;br /&gt;   demo_add=a+b&lt;br /&gt;&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;Here a,b are the arguments. By default these are 'ByRef'.&lt;br /&gt;&lt;br /&gt;In simple words ByRef Means the value which is assigned to the variable with in the function is permanent and we can use that value out side of that function also.&lt;br /&gt;&lt;br /&gt;ByVal means the value which is assigned to the variable with in the function is temporary&lt;br /&gt;and we can use that value only with in that function.&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;Function demo_parameters( byref x,byval y)&lt;br /&gt;   x=20&lt;br /&gt;   y=50&lt;br /&gt;   demo_parameters= x+y&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;a=10&lt;br /&gt;b=20&lt;br /&gt;msgbox demo_parameters( a,b)&lt;br /&gt;msgbox a&lt;br /&gt;msgbox b&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In the above function x and y are the arguments, declared as byref and byval.&lt;br /&gt;With in that function i assigned values to x and y.&lt;br /&gt;&lt;br /&gt;Outside of the function i assigned values to two variables and passing those variables in to the function.&lt;br /&gt;'a' is passing reference to x and b is passing value to y.&lt;br /&gt;&lt;br /&gt;With in that function i am changing the value for x. This value is permanent for 'a'. Because 'a' is passed as 'ByRef'.&lt;br /&gt;&lt;br /&gt;But the value of 'b' will not be changed because it is passed as 'ByVal'.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-5369813620842151730?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/5369813620842151730/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=5369813620842151730' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/5369813620842151730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/5369813620842151730'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/10/by-value-vs-by-reference.html' title='By Value Vs By Reference'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-8304719043351301241</id><published>2008-07-20T09:15:00.000-07:00</published><updated>2009-02-03T05:36:21.452-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='messagebox'/><title type='text'>To display the message box in two lines</title><content type='html'>msgbox "FIRSTLINE"&amp;amp;vbcrlf&amp;amp;"SECONDLINE"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-8304719043351301241?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/8304719043351301241/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=8304719043351301241' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8304719043351301241'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8304719043351301241'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/07/to-display-message-box-in-two-lines.html' title='To display the message box in two lines'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-4402382942642354601</id><published>2008-07-20T09:10:00.000-07:00</published><updated>2009-02-03T05:35:30.445-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='word document'/><title type='text'>To open a word doc,type something and save the doc and close</title><content type='html'>set WordObj = CreateObject("Word.Application")&lt;br /&gt;WordObj.visible = true&lt;br /&gt;Set WordDoc = WordObj.Documents.Add&lt;br /&gt;WordDoc.Range.InsertBefore "Hi Good Morning!"&lt;br /&gt;WordDoc.SaveAs "C:\Greetings.doc"&lt;br /&gt;WordObj.quit&lt;br /&gt;Set WordObj = nothing&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-4402382942642354601?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/4402382942642354601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=4402382942642354601' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/4402382942642354601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/4402382942642354601'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/07/to-open-word-doctype-something-and-save.html' title='To open a word doc,type something and save the doc and close'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-579540199903991666</id><published>2008-06-07T02:42:00.000-07:00</published><updated>2009-02-03T05:34:44.271-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Import Importsheet'/><title type='text'>Defference between Import and ImportSheet</title><content type='html'>Import method will imports the specified Excel file to the run time datatable.&lt;br /&gt;Ex: Datatable.Import ("C:\sample.xls")&lt;br /&gt;&lt;br /&gt;ImportSheet method will imports a specified sheet of a specified file to a specified sheet in the datatable.&lt;br /&gt;Ex: Datatable.ImportSheet "c:\sample.xls", SourceSheetName(or Number), DestinationSheetName(or Number)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If excel file has 7 sheets, if we use import method, then all the 7 Sheets  are imported into the runtime datatabe?&lt;br /&gt;The Answer is No. Only the first 2 sheets will be imported into the runtime datatable.&lt;br /&gt;Not all the sheets.&lt;br /&gt;why because, By default datatable will have 2 sheets (Global/Local)&lt;br /&gt;If you add an action in the QTP then only, a new sheet will be added in to the datatable.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-579540199903991666?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/579540199903991666/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=579540199903991666' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/579540199903991666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/579540199903991666'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/06/defference-between-import-and.html' title='Defference between Import and ImportSheet'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-4419486359667942955</id><published>2008-06-07T02:03:00.000-07:00</published><updated>2009-02-03T05:34:05.416-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='List box items'/><title type='text'>How to compare the list box items with another</title><content type='html'>Here i am giving the script to compare the list box items with another -&lt;br /&gt;To run this script you have to add all the objects into the object repository&lt;br /&gt;(Find the link in this blog "how to add objects into the object repository")&lt;br /&gt;&lt;br /&gt;Window("Flight Reservation").activate&lt;br /&gt;SeltItem = window("Flight Reservation").winComboBox("Fly From:").GerROProperty("text")&lt;br /&gt;msgbox SelItem &lt;br /&gt;'It displays the selected item in the list&lt;br /&gt;ListItem = Window("Flight Reservation").WinComboBox("Fly To:").GetContent&lt;br /&gt;msgbox ListItem&lt;br /&gt;'It displays all the items in the list box&lt;br /&gt;Itemcount = window("Flight Reservation").WinComboBox("Fly To:").GerItemsCount&lt;br /&gt;msgbox Itemcount&lt;br /&gt;'It displays no of items in the list box&lt;br /&gt;For i=0 to Itemcount-1&lt;br /&gt;a=window("Flight Reservation").wincombobox("Flt To:").GetItem(i)&lt;br /&gt;If SelItem=a Then&lt;br /&gt;msgbox "Items Are Matching"&lt;br /&gt;else&lt;br /&gt;msgbox "Items Are Not Matching"&lt;br /&gt;End If&lt;br /&gt;Next&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-4419486359667942955?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/4419486359667942955/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=4419486359667942955' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/4419486359667942955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/4419486359667942955'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/06/how-to-compare-list-box-items-with.html' title='How to compare the list box items with another'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-499501693220712483</id><published>2008-06-07T01:51:00.000-07:00</published><updated>2009-02-03T05:33:38.963-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Orkut login'/><title type='text'>Script for Orkut Login</title><content type='html'>url = "www.orkut.com"&lt;br /&gt;Systemutil.Run "IExplore", url  &lt;br /&gt;'It will open a Browser with any website address&lt;br /&gt;Browser("name:=orkut - login").WebEdit("name:=Email").set "rajaputra"&lt;br /&gt;Browser("name:=orkut - login").WebEdit("name:= Passwd").setSecure "47525d8be4926ea2f6e96b9a3f7472b6ae38"&lt;br /&gt;Browser("name:=orkut - login").WebButton("name:=Sigh in").Click&lt;br /&gt;Browser("name:=orkut - login").Link("name:=Logout").Click&lt;br /&gt;Browser("name:=orkut - login").Close&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-499501693220712483?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/499501693220712483/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=499501693220712483' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/499501693220712483'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/499501693220712483'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/06/script-for-orkut-login.html' title='Script for Orkut Login'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-7267880268258793756</id><published>2008-06-06T22:41:00.000-07:00</published><updated>2009-02-03T05:33:06.882-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Import Export'/><title type='text'>Import and Export Methods</title><content type='html'>Here i am giving the script for Importing data from data table and exporting the data table into Excel File.&lt;br /&gt;&lt;br /&gt;SystemUtil.Run "C:\ProgramFiles\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe"&lt;br /&gt;&lt;br /&gt;Dialog("text:= Login").Activate&lt;br /&gt;Dialog("text: = Login").WinEdit("Attached text:=Agent Name").set "rajaputra"&lt;br /&gt;Dialog("text: = Login").WinEdit("Attached text:=Password").set "mercury"&lt;br /&gt;Dialog("text:=Login").WinButton("text:=OK").Click&lt;br /&gt;Window("text:=Flight Reservation").Activate&lt;br /&gt;datatable.importSheet "C:\example.xls",1,1&lt;br /&gt;rowcount=datatable.GetRowCount&lt;br /&gt;For i=1 to rowcount&lt;br /&gt;Window("text:=Flight Reservation").WinButton("window id:=5").Click&lt;br /&gt;Dialog("text:=Open Order").Activate&lt;br /&gt;Dialog("text:=Open Order").WinCheckBox("text:=&amp;amp;Order No.").set "ON"&lt;br /&gt;datatable.SetCurrentRow(i)&lt;br /&gt;n=datatable(1,1)&lt;br /&gt;Dialog("text:=Open Order").WinEdit("window id:=1016").set n&lt;br /&gt;Dialog("text:=Open Order").WinButton("text:=OK").Click&lt;br /&gt;If(window("text:=Flight Reservation").Dialog("text:=Open Order").Dialog("text:=Flight Reservation").exist)then&lt;br /&gt;window("text:=Flight Reservation").Dialog("text:=Open Order").WinButton("text:=Cancel").Click&lt;br /&gt;datatable(2,1)="Not Exist"&lt;br /&gt;Else&lt;br /&gt;datatable(2,1)="Exist"&lt;br /&gt;End If&lt;br /&gt;Next&lt;br /&gt;Datatable.Export ("C:\flights.xls")&lt;br /&gt;window("text:=Flight Reservation").Close&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Before running this script, in "example.xls" you have to put two columns.&lt;br /&gt;one is OrderNo and one is Result.&lt;br /&gt;In OrderNo you can enter any valid or invalid OrderNo's and Result you can leave as it is.&lt;br /&gt;We will out put the data into Results.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-7267880268258793756?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/7267880268258793756/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=7267880268258793756' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/7267880268258793756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/7267880268258793756'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/06/import-and-export-methods.html' title='Import and Export Methods'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-5153961776893737284</id><published>2008-06-06T22:34:00.001-07:00</published><updated>2009-02-03T05:31:53.502-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Parameters'/><title type='text'>What is Input Parameters and OutPut Parameters</title><content type='html'>Input parameter allows you to run a test using different set of data input values.&lt;br /&gt;When you use a datatable parameter, you must instruct QuickTest on where the input data will come from.&lt;br /&gt;&lt;br /&gt;An output parameter is a value which comes back from the application under test. When you run the test QuickTest retrieves the current value of the property and enters it in the run-time datatable as an output value.&lt;br /&gt;&lt;br /&gt;You can subsequently use this output value as a input value in your test. We call this data correlation. This enables you to use data retrieved during other parts of test.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-5153961776893737284?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/5153961776893737284/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=5153961776893737284' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/5153961776893737284'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/5153961776893737284'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/06/what-is-input-parameters-and-output.html' title='What is Input Parameters and OutPut Parameters'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-5282593171168334316</id><published>2008-06-06T22:10:00.000-07:00</published><updated>2009-02-03T05:30:10.479-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Batch Test'/><title type='text'>How to run the batch file through Script</title><content type='html'>I have taken 3 tests as a example for doing batch run. They are&lt;br /&gt;&lt;br /&gt;1. Display -It will display a message in a word doc.&lt;br /&gt;2. DisplayDate -  It will display a date and time in a Notepad&lt;br /&gt;3. Multiplication - It will display a mathematical table in Notepad&lt;br /&gt;&lt;br /&gt;I converted them in respective funcitons and saved in notepad as a .vbs file.&lt;br /&gt;(in C:\VBLibraryFiles\)&lt;br /&gt;And i wrote a VBS Finction that is called above 3 functions and saved as a callAll.vbs&lt;br /&gt;(in C:\VBLibraryFiles\)&lt;br /&gt;Before running the test I loaded all files into resource tab&lt;br /&gt;&lt;br /&gt;callAll()        'Here i am just calling callAll function which is defined in callAll.vbs file&lt;br /&gt;&lt;br /&gt;**********************&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Display.vbs - &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;public funciton display()&lt;br /&gt;&lt;br /&gt;set WordObj = CreateObject("Word.Application")&lt;br /&gt;WordObj.visible = true&lt;br /&gt;Set wordDoc = WordObj.Documents.Add&lt;br /&gt;WordDoc.Range.InsertBefore "Hi Good Morning"&lt;br /&gt;WordDoc.SaveAs "C:\Greetings.doc"&lt;br /&gt;WordDoc.quit&lt;br /&gt;Set wordObj = Nothing&lt;br /&gt;&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;***********************&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;DisplayDate.Vbs - &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Public Function displayDate()&lt;br /&gt;&lt;br /&gt;Set fso = createObject("Scripting.filesystemObject")&lt;br /&gt;Set fptr = fso.createTextfile("C:\Sample.txt")&lt;br /&gt;a = FormatDateTime(Date,1)&lt;br /&gt;fptr.writeLine a&lt;br /&gt;&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;*******************************&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Multiplication.Vbs - &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Public Function multiplication()&lt;br /&gt;&lt;br /&gt;Set obj = createObject("Scripting.filesystemObject")&lt;br /&gt;Set of = obj.createTextFile("C:\mat.txt")&lt;br /&gt;For i=1 to 10&lt;br /&gt;x=5*1&lt;br /&gt;of.writeLine "5 * "&amp;amp;i&amp;amp;" = "&amp;amp;x&lt;br /&gt;Next&lt;br /&gt;&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;*****************************&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;CallAll.Vbs - &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Public Function callAll()&lt;br /&gt;&lt;br /&gt;display()&lt;br /&gt;msgbox "Test 1 is pass"&lt;br /&gt;displayDate()&lt;br /&gt;msgbox "Test 2 is pass"&lt;br /&gt;multiplication()&lt;br /&gt;msgbox "Test 3 is pass"&lt;br /&gt;&lt;br /&gt;End Function&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-5282593171168334316?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/5282593171168334316/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=5282593171168334316' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/5282593171168334316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/5282593171168334316'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/06/how-to-run-batch-file-through-script.html' title='How to run the batch file through Script'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-7226940386803194730</id><published>2008-06-06T21:51:00.000-07:00</published><updated>2009-02-03T05:29:35.631-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Copy file'/><title type='text'>How to copy the file from one location to another location</title><content type='html'>dim filesys&lt;br /&gt;Set filesys=CreateObject("Scripting.FileSystemObject")&lt;br /&gt;If filesys.FileExists("C:\sourcefolder\anyfile.ext") then&lt;br /&gt;filesys.CopyFile "C:\sourcefolder\anyfile.ext", C:\destinationfolder\"&lt;br /&gt;End If&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-7226940386803194730?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/7226940386803194730/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=7226940386803194730' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/7226940386803194730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/7226940386803194730'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/06/how-to-copy-file-from-one-location-to.html' title='How to copy the file from one location to another location'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-4480185255209829029</id><published>2008-06-06T10:38:00.000-07:00</published><updated>2009-02-03T05:28:45.908-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='count the no of files'/><title type='text'>How to get the Count of each file in a particual folder</title><content type='html'>Set fso = CreateObject("Scripting.FileSystemObject")&lt;br /&gt;Set fold = fso.getFolder("D:\testingfiles")&lt;br /&gt;Set fc = fold.files&lt;br /&gt;&lt;br /&gt;word=0&lt;br /&gt;xls=0&lt;br /&gt;txt=0&lt;br /&gt;&lt;br /&gt;datatable.getSheet(1).addParameter "Word",""&lt;br /&gt;datatable.getSheet(1).addParameter "Excel",""&lt;br /&gt;datatable.getSheet(1).addParameter "text",""&lt;br /&gt;datatable.getSheet(1).addParameter "Total Files",""&lt;br /&gt;&lt;br /&gt;For each f in fold.files&lt;br /&gt;&lt;br /&gt;if lcase(right(f.name,4)) = ".doc" then&lt;br /&gt;word=word+1&lt;br /&gt;end if&lt;br /&gt;&lt;br /&gt;if lcase(right(f.name,4))= ".xls" then&lt;br /&gt;xls=xls+1&lt;br /&gt;end if&lt;br /&gt;&lt;br /&gt;if lcase(right(f.name,4))= ".txt" then&lt;br /&gt;txt=txt+1&lt;br /&gt;end if&lt;br /&gt;next&lt;br /&gt;&lt;br /&gt;datatable(1,1)=word&lt;br /&gt;datatable(2,1)=xls&lt;br /&gt;datatable(3,1)=txt&lt;br /&gt;datatable(4,1)=fc.count&lt;br /&gt;&lt;br /&gt;'Run this script and see the runtime datatable&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-4480185255209829029?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/4480185255209829029/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=4480185255209829029' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/4480185255209829029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/4480185255209829029'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/06/how-to-get-count-of-each-file-in.html' title='How to get the Count of each file in a particual folder'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-119202321268957603</id><published>2008-06-06T10:31:00.000-07:00</published><updated>2009-02-03T05:27:48.781-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Radio button'/><title type='text'>Select RadioButton through  Datatable</title><content type='html'>Browser("micClass:=Browser").Page("micClass:=Page").WebRadioGroup("name:=servClass").Select&lt;br /&gt;Datatable("FlightClass, dtGlobalSheet)&lt;br /&gt;&lt;br /&gt;'Here FlightClass is (Coach,Business, First) in the datatable.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-119202321268957603?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/119202321268957603/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=119202321268957603' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/119202321268957603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/119202321268957603'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/06/select-radiobutton-through-datatable.html' title='Select RadioButton through  Datatable'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-2044263862364284669</id><published>2008-06-06T10:14:00.000-07:00</published><updated>2009-02-03T05:27:22.221-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Run Application'/><title type='text'>How to Run and Close the application during Run time</title><content type='html'>We can Invoke the application during run session using&lt;br /&gt;&lt;br /&gt;SystemUtil.Run "NameOfFile"&lt;br /&gt;&lt;br /&gt;Systemutil.Run Statement enables you to open or run any application from a given location.&lt;br /&gt;Similarly, you can use SystemUtil to close the application like this:&lt;br /&gt;&lt;br /&gt;SystemUtil.CloseProcessByName "explorer.exe"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-2044263862364284669?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/2044263862364284669/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=2044263862364284669' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/2044263862364284669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/2044263862364284669'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/06/how-to-run-and-close-application.html' title='How to Run and Close the application during Run time'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-8593453586293688634</id><published>2008-06-06T10:05:00.000-07:00</published><updated>2009-02-03T05:26:49.679-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Working with Excel'/><title type='text'>Working With Excell</title><content type='html'>Here I am discussing&lt;br /&gt;   How to create a Excel Sheet&lt;br /&gt;   Storing the data into Excel Sheet&lt;br /&gt;   Reading the data from Excel Sheet&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Creation of Excel Sheet - &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Set Excel=CreateObject("Excel.Activation")&lt;br /&gt;Set ExcelSheet=CreateObject("Excel.sheet")&lt;br /&gt;ExcelSheet.Application.visible=true&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Storing the data into Excel Sheet - &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Excel.ActiveSheet.Cells(1,1).Value="UserName"&lt;br /&gt;Excel.ActiveSheet.Cells(1,2).Value="Password"&lt;br /&gt;Excel.ActiveSheet.Cells(2,1).Value="arunsingh"&lt;br /&gt;Excel.ActiveSheet.Cells(2,2).Value="rajaputra"&lt;br /&gt;ExcelSheet.SaveAs "C:\text.xls"&lt;br /&gt;datatable.Import "C:\text.xls"             'Importing excel sheet into datatable&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Reading the data from Excel Sheet -&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;msgbox "UserName is="+Excel.ActiveSheet.Cells(2,1)&lt;br /&gt;msgbox "Password is="+Excel.AcitveSheet.Cells(2,2)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-8593453586293688634?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/8593453586293688634/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=8593453586293688634' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8593453586293688634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8593453586293688634'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/06/working-with-excell.html' title='Working With Excell'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-1469862181395474958</id><published>2008-06-06T08:58:00.000-07:00</published><updated>2009-02-03T05:26:23.643-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='capture screenshot'/><title type='text'>How to Capture the Screen Shot</title><content type='html'>By using the below script we can capture the screen shot at run time -&lt;br /&gt;&lt;br /&gt;Browser("BrowserName").Page("PageName").captureBitmap "c:\test\ScreeShot1.bmp"&lt;br /&gt;&lt;br /&gt;Below example will help you to get familiar with this-&lt;br /&gt;'Prerequisite: Open the FlightReservation Login screen&lt;br /&gt;'Then Run this Script&lt;br /&gt;&lt;br /&gt;Set Dlg=Dialog("text:=Login")&lt;br /&gt;set Wnd=Window("text:=Flight Reseravation")&lt;br /&gt;Set oDlg=wnd.Dialog("text:=Open Order")&lt;br /&gt;&lt;br /&gt;Dlg.WinEdit("attached text:=Agent Name").set "rajaputra"&lt;br /&gt;Dlg.WinEdit("attached text:=Password").setSecure "mercury"&lt;br /&gt;Dlg.WinButton("text:=OK").Click&lt;br /&gt;&lt;br /&gt;wait (7)&lt;br /&gt;&lt;br /&gt;wnd.Activate&lt;br /&gt;wnd.WinButton("window id:=5").Click&lt;br /&gt;oDlg.WinCheckBox("text:=&amp;amp;Order No.").Set "ON"&lt;br /&gt;oDlg.WinEdit("window id:=1016").set "100"&lt;br /&gt;oDlg.WinButton("text:=OK").Click&lt;br /&gt;&lt;br /&gt;if(oDlg.Dialog("text:=Flight Reservations").Exist) then&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;oDlg.Dialog("text:=Flight Reservations").CaptureBitmap "C:\ScreenShot.bmp"&lt;/span&gt;&lt;br /&gt;oDlg.Dialog("text:=Flight Reservations").WinButton("text:=OK").Click&lt;br /&gt;oDlg.WinButton("text:=Cancel").Click&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;wnd.Close&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-1469862181395474958?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/1469862181395474958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=1469862181395474958' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/1469862181395474958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/1469862181395474958'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/06/how-to-capture-screen-shot.html' title='How to Capture the Screen Shot'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-8572941013823958919</id><published>2008-06-04T20:11:00.000-07:00</published><updated>2009-02-03T05:25:45.267-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Datatable'/><title type='text'>What is Datatable</title><content type='html'>Data table assists you in parameterizing the test.&lt;br /&gt;There are two type of Data tables are available in QTP.&lt;br /&gt;1. Design time data table    2. Runtime Data table.&lt;br /&gt;&lt;br /&gt;Design time Data table -&lt;br /&gt;&lt;br /&gt;   There are two type of data sheets available, they are 1. Global Data Sheet    2.Local Data Sheet&lt;br /&gt;   The Global Data Sheet contains the data that replaces parameters in each iteration of test.&lt;br /&gt;   Each time you add a new action to the test, a new action sheet (Local Sheet) added to the data table. It contained data, replaces parameter in only one iteration of the test.&lt;br /&gt;&lt;br /&gt;Run time Data table -&lt;br /&gt;&lt;br /&gt;During a run session, Quick test creates a runtime data table.&lt;br /&gt;When the run session ends, the runtime data table closes, and the data table pane again displays the stored design time data table.&lt;br /&gt;The final data from the runtime data table is displayed in the runtime data table in the test results window.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-8572941013823958919?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/8572941013823958919/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=8572941013823958919' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8572941013823958919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8572941013823958919'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/06/what-is-datatable.html' title='What is Datatable'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-45440986001141855</id><published>2008-06-04T09:40:00.000-07:00</published><updated>2009-02-03T05:24:55.211-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Object Properties'/><title type='text'>Mandatory - Assitive - Ordinal Identifier properties</title><content type='html'>Quick test identify the objects by learning the default property values is called mandatory properties.&lt;br /&gt;Ex - attached text, native class, alt, html tag, image type.&lt;br /&gt;&lt;br /&gt;If the mandatory properties are not sufficient to create a unique object description then Quick test uses Assistive properties of the object to identify uniquely.&lt;br /&gt;Ex - Id&lt;br /&gt;&lt;br /&gt;If the mandatory and assistive properties are not sufficient to create a unique object description then Quick test uses  Ordinal identifier to create a unique description of the object.&lt;br /&gt;Ex - index, location, creation time.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-45440986001141855?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/45440986001141855/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=45440986001141855' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/45440986001141855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/45440986001141855'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/06/mandatory-assitive-ordinal-identifier.html' title='Mandatory - Assitive - Ordinal Identifier properties'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-4676489997791868482</id><published>2008-06-04T09:30:00.000-07:00</published><updated>2009-02-03T05:24:24.966-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Object Repository'/><title type='text'>How to load the Object Repository</title><content type='html'>To load the object repository at runtime -&lt;br /&gt;Write following script...&lt;br /&gt;&lt;br /&gt;  Set app=CreateObject("QuickTest.application")&lt;br /&gt;  app.test.settings.resources.ObjectRepositoryPath="Path of the Object Repository"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To load manually -&lt;br /&gt;&lt;br /&gt;  Goto Test-Settings-resources-select shared for Object Repository Type-Browse the required Object Repository.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-4676489997791868482?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/4676489997791868482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=4676489997791868482' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/4676489997791868482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/4676489997791868482'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/06/how-to-load-object-repository-at.html' title='How to load the Object Repository'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-8694006504735672930</id><published>2008-06-04T09:18:00.000-07:00</published><updated>2009-02-03T05:23:56.513-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Object Repository'/><title type='text'>What is Object Repository</title><content type='html'>Object Repository is a place where all recorded or added objects are stored.&lt;br /&gt;When you record the application, recorded objects are stored in the Object Repository, in order to use them later.&lt;br /&gt;Object Repository mainly identifies how it will recognize an object at the time of replay.&lt;br /&gt;Object Repository displays a tree of all objects in the current component or in the current action or entire test (depending on the object repository mode you selected)&lt;br /&gt;We can view or modify the test object description of any test in the repository or we can add new objects to the repository.&lt;br /&gt;There are two types of Object Repositories : Per Action and Shared Action&lt;br /&gt;&lt;br /&gt;When we are working in Object Repository, Per Action mode, Quick test creates a new object repository for each action.&lt;br /&gt;When we are working in Object Repository, Shared Action mode, Quick test adds new objects to the object repository.&lt;br /&gt;If we record operations on a object that already exists in the Shared Object Repository, Quick test uses the existing information, and does not add the object to the Object Repository.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-8694006504735672930?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/8694006504735672930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=8694006504735672930' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8694006504735672930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8694006504735672930'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/06/what-is-object-repository.html' title='What is Object Repository'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-5319110503167388602</id><published>2008-06-04T09:01:00.000-07:00</published><updated>2009-02-03T05:23:31.432-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Object recognization'/><title type='text'>How QTP Recognize the Objects in AUT</title><content type='html'>When we record the application, QTP interact with an object and stores Test object properties in its Object Repository.&lt;br /&gt;When the test runs, QTP maps the Test Object properties with the Runtime Object properties.&lt;br /&gt;If it successfully maps the runtime properties, then test passes.&lt;br /&gt;If not, test fails.&lt;br /&gt;&lt;br /&gt;Test Object Properties - are properties of an object in the Object Repository&lt;br /&gt;Runtime Object Properties - are properties of an object in the application.&lt;br /&gt;&lt;br /&gt;Runtime Object is the actual object to which a Test Object can be mapped.&lt;br /&gt;It is the actual object present in your AUT.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Example -&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Open a Notepad and add objects in Object Repository&lt;br /&gt;Then write script in QTP...&lt;br /&gt;Msgbox window("Notepad").GetTOProperty("height")&lt;br /&gt;'It gives you  empty message. Because you didn't add height in Object Repository.&lt;br /&gt;'Now try this&lt;br /&gt;Msgbox window("Notepad").GetROProperty("height")&lt;br /&gt;'You will get the height of the notepad window.&lt;br /&gt;&lt;br /&gt;For Test Object, you have to add the property then only it will show in the test object properties list.&lt;br /&gt;But for Runtime Object, always all properties are available.&lt;br /&gt;&lt;br /&gt;We can use SetTOProperty method to change the properties of the test object, But we cannot change the properties of the Runtime Object.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-5319110503167388602?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/5319110503167388602/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=5319110503167388602' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/5319110503167388602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/5319110503167388602'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/06/how-qtp-recognize-objects.html' title='How QTP Recognize the Objects in AUT'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-1874420062071347113</id><published>2008-06-03T10:07:00.000-07:00</published><updated>2009-02-03T05:22:55.809-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='smart identification'/><title type='text'>Smart Identification</title><content type='html'>When Quick test uses the recorded description, to identify the object, it searches for the object that  matches every property value in description.&lt;br /&gt;If Quick test unable to find any object that matches the recorded object description, or if it finds more than one object that fits description and uses the smart identification mechanism to try to identify the objects.&lt;br /&gt;&lt;br /&gt;A smart identification mechanism can help Quick test to identify an object, even if recorded description fails due to changes in property values.&lt;br /&gt;In Smart Identification we have to mention the set of base filter and optional filter properties to identify the object in the application.&lt;br /&gt;Smart Identification is required only if mandatory, assistive properties are failed to recognize the  object.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Base Filter&lt;/span&gt; - Fundamental properties of particular object, those whose values cannot be changed without changing the essence of original object.&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Optional Filter&lt;/span&gt; - Other properties can help to identify objects of a particular class as they are unlikely to change on a regular basis but which can be ignored if they are no longer applicable.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-1874420062071347113?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/1874420062071347113/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=1874420062071347113' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/1874420062071347113'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/1874420062071347113'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/06/smart-identification.html' title='Smart Identification'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-3482059863931044085</id><published>2008-06-03T09:57:00.000-07:00</published><updated>2009-02-03T05:22:14.693-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Library files'/><title type='text'>Library Files</title><content type='html'>Library files are containing normal VB Script code.&lt;br /&gt;We can load library files by using 2 ways -&lt;br /&gt;&lt;br /&gt;1. Choose Test-Settings-Resources tab-Click on + button - browse and select library file-click OK&lt;br /&gt;2. Use Executefile function to load library files at run time.&lt;br /&gt;&lt;br /&gt;When we associate a library file with the test, then all functions with in the library are available to the actions presents in the test.&lt;br /&gt;But when we use executefile function to load a library file, then the functions with in the library file are restricted to a specific action.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ex: ExecuteFile "FilePath"&lt;br /&gt;&lt;br /&gt;Sample Script:&lt;br /&gt;&lt;br /&gt;execute file "C:\sample.vbs"&lt;br /&gt;x=10&lt;br /&gt;y=5&lt;br /&gt;result=SumofTwoNumbers(x,y)&lt;br /&gt;msgbox (result)&lt;br /&gt;&lt;br /&gt;Code in Sample.vbs -&lt;br /&gt;&lt;br /&gt;Public Function SumOfTwoNumbers(a,b)&lt;br /&gt;Dim sum&lt;br /&gt;sum=a+b&lt;br /&gt;SumOfTwoNumbers=sum&lt;br /&gt;End Function&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-3482059863931044085?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/3482059863931044085/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=3482059863931044085' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/3482059863931044085'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/3482059863931044085'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/06/library-files.html' title='Library Files'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-5078128436596869939</id><published>2008-06-03T09:20:00.000-07:00</published><updated>2009-02-03T05:21:52.899-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Error Handling'/><title type='text'>Error Handling</title><content type='html'>Error handling enables us to convert system generated error messages to user defined messages.&lt;br /&gt;&lt;br /&gt;"On Error Resume Next" should be used when you know if an error is expected and don't want to raise it. You may want to do different actions depending upon the error that occurred.&lt;br /&gt;&lt;br /&gt;Use err.number and err.description to get more details about the error.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-5078128436596869939?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/5078128436596869939/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=5078128436596869939' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/5078128436596869939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/5078128436596869939'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/06/error-handling.html' title='Error Handling'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-8252226012238782886</id><published>2008-06-03T08:49:00.000-07:00</published><updated>2009-02-03T05:21:21.063-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Exception Handling'/><title type='text'>How to handle the exceptions</title><content type='html'>By using Recovery Scenario Manager, we can handle  the exceptions occurred while running the test.&lt;br /&gt;&lt;br /&gt;Recovery is a concept like exception handling in a programming language, which can be applied when an unexpected failure occurs.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When TO Use:&lt;br /&gt;  We should use Recovery Scenario only for unpredictable events, or events that cannot synchronize with a specific step in our test.&lt;br /&gt;&lt;br /&gt;4 Exceptions in QTP:&lt;br /&gt;  1. Popup Window - A popup window appears in an open application during a test run.&lt;br /&gt;  2. Object State - Property of the object changes its state or value.&lt;br /&gt;  3. Run Error - A step in the test does not run successfully&lt;br /&gt;  4. Application Crash - An open application fails during a test run.&lt;br /&gt;&lt;br /&gt;3 Types of Recovery Scenarios:&lt;br /&gt;  1. Triggered Events - Trigger is nothing but the cause for initiating the recovery scenario.&lt;br /&gt;  2. Recovery Steps - It defines what needs to be done, when recovery scenario has been triggered.&lt;br /&gt;  3. Post Recovery Test Run - It defines what need to be done after the recovery action has been taken. It could be repeat the step or move to next step etc..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-8252226012238782886?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/8252226012238782886/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=8252226012238782886' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8252226012238782886'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8252226012238782886'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/06/how-to-handle-exception.html' title='How to handle the exceptions'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-1449930188925056793</id><published>2008-06-02T10:08:00.000-07:00</published><updated>2009-02-03T05:20:51.746-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Parameterization'/><title type='text'>About Parameterization</title><content type='html'>To data drive we have to parameterize.&lt;br /&gt;Through parameterization only we can drive a transaction with different set of data.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Parameterization:&lt;/span&gt;&lt;br /&gt;When we test the application, we may want to check how it performs the same operations with multiple set of data.&lt;br /&gt;In parameterization, data can be typed or import from database, spread sheet or text files.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;4 Types of parameters:&lt;/span&gt;&lt;br /&gt; 1. Test, Action parameter - enable you to use values passed from the test or values from other actions in our test.&lt;br /&gt; 2. Data table parameter - enable you to create a data driven test, that runs several times using the data you supply. In each iteration quick test uses a different value from the datatable.&lt;br /&gt;3. Environment Variable parameter - enable you to use values from other sources during run session.&lt;br /&gt;4. Random Number Parameter - enable you to insert random numbers as values in our test.&lt;br /&gt;       Ex: RandomNumber(0,20)&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-1449930188925056793?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/1449930188925056793/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=1449930188925056793' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/1449930188925056793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/1449930188925056793'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/06/parameterize-vs-datadrive.html' title='About Parameterization'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-5991280844324908123</id><published>2008-05-31T10:51:00.000-07:00</published><updated>2009-02-03T05:20:22.344-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Count the objects'/><title type='text'>To Count the no of objects in a Web Page</title><content type='html'>'Open a Google page and count the no of links and buttons in that page&lt;br /&gt;&lt;br /&gt;If Browser("index:=0").Exist(1) then 'If Browser is already opened&lt;br /&gt;  a=Browser(index:=0").GetROProperty("hwnd")&lt;br /&gt;  Browser("hwnd:="&amp;amp;a).Navigate("http://www.google.com")&lt;br /&gt;  Browser("hwnd:="&amp;amp;a).Sync&lt;br /&gt;  wait(2)&lt;br /&gt;Else 'If Browser is not opened&lt;br /&gt;  Systemutil.Run "IEXPLORE.exe"&lt;br /&gt;  a=Browser("index:=0").GetROProperty("hwnd")&lt;br /&gt;  Browser("hwnd:="&amp;amp;a).Navigate("http://www.google.com")&lt;br /&gt;  Browser("hwnd:="&amp;amp;a).Sync&lt;br /&gt;  wait(2)&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;Set butObj=Description.Create    ''''For Buttons&lt;br /&gt;butObj("html tag").value="INPUT"&lt;br /&gt;butObj("type").vlaue="submit"&lt;br /&gt;&lt;br /&gt;Set linkObj=Description.Create    ''''For Links&lt;br /&gt;linkObj("html tag").value="A"&lt;br /&gt;&lt;br /&gt;Set Buttons=browser("hwnd:=&amp;amp;a).page(title:=.*") .ChildObjects(butObj)&lt;br /&gt;Set Links=browser("hwnd:=&amp;amp;a).page(title:=.*") .ChildObjects(linkObj)&lt;br /&gt;&lt;br /&gt;msgbox "Total Button are: "&amp;amp;Buttons.count&lt;br /&gt;msgbox " Total Links are: "&amp;amp;Links.count&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-5991280844324908123?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/5991280844324908123/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=5991280844324908123' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/5991280844324908123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/5991280844324908123'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/05/to-know-no-of-items-in-web-page.html' title='To Count the no of objects in a Web Page'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-9161489573127389211</id><published>2008-05-31T10:41:00.000-07:00</published><updated>2009-02-03T05:19:46.018-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Option Explicit'/><title type='text'>Option Explicit</title><content type='html'>When you use the Option Explicit statement, you must explicitly declare all variables using the Dim, Private, Public, or ReDim statements.&lt;br /&gt;If you attempt to use an undeclared variable name, an error occurs.&lt;br /&gt;VB Script in general doesn't need variable declaration. Without using Dim, a variable can be directly used for assigning. For ex - temp=1&lt;br /&gt;However, such practice can always be error prone. Ex: If i want to use the same variable in some other statement and miss spell it, say tempe=temp+1&lt;br /&gt;VB Script still considers "tempe" as valid. In this case if we use Option Explicit on top of our script and proceed, then application will not proceed unless until u declare each and every variable.&lt;br /&gt;Hence you make sure that your variable is serving your purpose.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-9161489573127389211?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/9161489573127389211/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=9161489573127389211' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/9161489573127389211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/9161489573127389211'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/05/option-explicit.html' title='Option Explicit'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-2253732519983624937</id><published>2008-05-31T10:38:00.000-07:00</published><updated>2009-02-03T05:19:17.263-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Test Object Model'/><title type='text'>Test Object Model</title><content type='html'>Test Object  Model is the model that QTP uses to recognize objects in the application.&lt;br /&gt;Every object has a set of properties and attributes which QTP uses to perform the operations.&lt;br /&gt;Also using these attributes in form of mandatory and assistive properties, QTP recognize the particular object.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-2253732519983624937?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/2253732519983624937/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=2253732519983624937' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/2253732519983624937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/2253732519983624937'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/05/test-object-model.html' title='Test Object Model'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-6730315038721380872</id><published>2008-05-31T10:31:00.000-07:00</published><updated>2009-02-03T05:18:56.461-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Automation Object Model'/><title type='text'>Automation Object Model</title><content type='html'>Quick test Automation Object Model is used to automate the quick test operations.&lt;br /&gt;For example, if you want to run a test in QTP you have to follow these steps -&lt;br /&gt;&lt;br /&gt;   'i. Open a QTP&lt;br /&gt;       Set qtApp=CreateObject("Quicktest.Application")&lt;br /&gt;       qtApp.Launch&lt;br /&gt;       qtApp.visible=true&lt;br /&gt;   'ii. Open a test in a QTP  &lt;br /&gt;         qtApp.open "testpath", true&lt;br /&gt;   'iii. Specify the result folder&lt;br /&gt;          Set qtTest=qtApp.test&lt;br /&gt;          Set qtResults=CreateObject("Quicktest.runreslutoption")&lt;br /&gt;           qtResults.ResultLocation="resultpath"&lt;br /&gt;   'iv. Run the test&lt;br /&gt;           qtTest.run qtResults&lt;br /&gt;   'v. Close QTP or Open another test and run it&lt;br /&gt;           qtTest.close&lt;br /&gt;           qtTest.open"TestPath", true&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-6730315038721380872?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/6730315038721380872/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=6730315038721380872' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/6730315038721380872'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/6730315038721380872'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/05/automation-object-model.html' title='Automation Object Model'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-737983073902204729</id><published>2008-05-31T10:23:00.000-07:00</published><updated>2009-02-03T05:18:25.201-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Automation'/><title type='text'>Before going to Automation</title><content type='html'>Before going to Automation, there is a process -&lt;br /&gt;&lt;br /&gt;  1. Whether we have to go for automation.&lt;br /&gt;  2. What are the client requirement for automation.&lt;br /&gt;  3. Which tool we have to use for automation&lt;br /&gt;  4. Gathering suggestions from others and searching for the resources.&lt;br /&gt;  5. Identifying the application components to be Automated.&lt;br /&gt;  6. Preparing the automation approach document (Which list the Functionalities, Risks,                         Assumptions, Tool Identification, and Proof of Concept functionalities)&lt;br /&gt;  7. Gathering the test cases for automation&lt;br /&gt;  8. Giving trainings&lt;br /&gt;  9. Resource allocation.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-737983073902204729?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/737983073902204729/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=737983073902204729' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/737983073902204729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/737983073902204729'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/05/before-going-to-automation.html' title='Before going to Automation'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-1828218063181238384</id><published>2008-05-31T09:04:00.000-07:00</published><updated>2009-02-03T05:17:55.152-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Environment Variables'/><title type='text'>Environment Variables</title><content type='html'>Environment variables helps us to use the variables from other sources during the run session.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Types of Environment Variable:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. User defined Internal - These variables are saved with in the test and accessible only with in the test in which they were defined.&lt;br /&gt;2. User defined External - We can use external environment variables from any other                     program.&lt;br /&gt;Example for User Defined Environment Variables is Email, FirstName,LastName, PhoneNumber, etc..&lt;br /&gt;3. Built In - It enables you to know the current information about the test and computer on which the test is run. These variables are accessible from all test and components. They are read only.&lt;br /&gt;Example for Built In Environment Variable is OperatingSystem, OSVersion, LocalHostName, ProductName, ProductVersion, etc..&lt;br /&gt;&lt;br /&gt;By default, Environment variables are internal type that means we cannot use that internal environment variables from any other program. That's why we can make it as external variables.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Deference between Built In and User Defined Environment Variables -&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; We cannot create or modified the values for built in environment variables. But we can create and modify the values for user-defined environment variables.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Use of Environment variable - &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;  Environment variable comes into picture when we try to parameterize data.&lt;br /&gt;  It is one kind of data source.&lt;br /&gt;  When we want to test an application, where the user interface string changes, depending on         the selected language.&lt;br /&gt;  We can use external environment variables from any other program by loading xml file.&lt;br /&gt;  Ex: Environment.LoadFromFile"Path of the xml file"&lt;br /&gt;&lt;br /&gt;To check whether it is exist or not -&lt;br /&gt;&lt;br /&gt;   By using "Environment("ParamterName").value" we can know that variable exist in the             environment.&lt;br /&gt;   By using "Environment.value("ParameterName")" then QTP will create a new internal                 environment variable if does not exists already.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;span style="color: rgb(0, 0, 0);font-family:georgia;" &gt; &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;  &lt;p class="MsoNormal" style="margin-left: 0.75in;"&gt;&lt;span style=";font-family:Arial;font-size:10;"  &gt;&lt;span style="color: rgb(0, 0, 0);font-family:georgia;" &gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&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/7132883052638225247-1828218063181238384?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/1828218063181238384/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=1828218063181238384' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/1828218063181238384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/1828218063181238384'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/05/environment-variables.html' title='Environment Variables'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-7551696900618285034</id><published>2008-05-31T09:00:00.000-07:00</published><updated>2009-02-03T05:17:32.492-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Functions VS Actions'/><title type='text'>Function Vs Action</title><content type='html'>If we want to use the Object Repository feature then we have to go for Actions&lt;br /&gt;If the functionality is not about any automation script we can go for functions.&lt;br /&gt;   (Example, a function like getting a string between two specific characters, now this is something         not specific to QTP and can be done by pure VB Script, so this should be done in a function not       an action.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-7551696900618285034?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/7551696900618285034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=7551696900618285034' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/7551696900618285034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/7551696900618285034'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/05/function-vs-action.html' title='Function Vs Action'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-5057542146066062908</id><published>2008-05-31T08:52:00.000-07:00</published><updated>2009-02-03T05:17:08.820-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Functions'/><title type='text'>About Functions</title><content type='html'>Function is a group of methods and instruction and it can be access by calling that function.&lt;br /&gt;&lt;br /&gt;User defined functions can be coded as part of QTP files or can be coded as separate ".vbs" files.&lt;br /&gt;These can be associated as library files under Run Settings. This would enable you to create a library functions which can be used across scripts as and when required.  &lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Example for User Defined Function for WebEdit Class:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Public function edit(name)    'Defining the function&lt;br /&gt;Browser("BrowserName").Page("PageName").WebEdit("User ID").set name&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;Call edit("rajaputra")    'Calling the function&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-5057542146066062908?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/5057542146066062908/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=5057542146066062908' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/5057542146066062908'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/5057542146066062908'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/05/about-functions.html' title='About Functions'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-8881255616895199052</id><published>2008-05-31T08:18:00.000-07:00</published><updated>2009-02-03T05:16:48.977-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='About Descriptive Programming'/><title type='text'>Descriptive Programming</title><content type='html'>&lt;div style="text-align: left;"&gt;If the object is not in the object repository, then based on the unique property of the object we can write a program on that object. It is nothing but Descriptive Programming.&lt;br /&gt;&lt;br /&gt;QTP cannot take an action on a object until unless its object description is in the Object Repository.&lt;br /&gt;&lt;/div&gt;But Descriptive programming provides a way to perform action on objects which are not in Object Repository.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;When to Use:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. The object in the application are dynamic in nature and need special handling to identify the object.&lt;br /&gt;2. When object repository is getting huge due to the no of objects being added. If the size of the object repository increases too much then it decreases the performance of QTP while recognizing the object.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Example for when to use DP:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Suppose, we have an application that has not been developed yet.&lt;br /&gt;Now QTP recording the script and adding the objects to the object repository needs the application to be up. That would mean waiting for the application to be deployed.&lt;br /&gt;But if we know the description of the objects that will be created then we can still start of with the script writing for testing.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;How to write Descriptive Programming:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;There are two ways to write.&lt;br /&gt;1. By creating the properties collection objects for the description.&lt;br /&gt;&lt;br /&gt;To use this method you need to create an empty description&lt;br /&gt;Set ObjDesc=Description.Create 'Now we have blank description in ObjDesc.&lt;br /&gt;'Each description has 3 properties, they are Name, Value, RegularExpression.&lt;br /&gt;ObjDesc("PropertyName").Value="Value of the Property"&lt;br /&gt;'When you use the property name for the first time the property is added to the collection and     'when you use it again the property is modified. Now we can use it as ....&lt;br /&gt;Browser("BrowserName").Page(PageName).WebEdit(ObjDesc) .set "Test"&lt;br /&gt;&lt;br /&gt;'To Remove the property from the collections -&lt;br /&gt;ObjDesc.remove"PropertyName"&lt;br /&gt;&lt;br /&gt;'To know the property exist or not in the property collection -&lt;br /&gt;If ObjDesc("PropertyName").value=empty then&lt;br /&gt;msgbox "Not Exist"&lt;br /&gt;else&lt;br /&gt;msgbox "Exist"&lt;br /&gt;&lt;br /&gt;2. By giving the description in form of the string arguments.&lt;br /&gt;&lt;br /&gt;Browser("PropertyName:=PropertyValue").Page ("PropertyName: =PropertyValue")..........&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-8881255616895199052?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/8881255616895199052/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=8881255616895199052' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8881255616895199052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8881255616895199052'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/05/descriptive-programming.html' title='Descriptive Programming'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-1375560382774530182</id><published>2008-05-31T07:15:00.000-07:00</published><updated>2009-02-03T05:15:50.112-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Actions'/><title type='text'>About Actions</title><content type='html'>Action is used to split out test script into more flexible and logic unit.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;When it is used:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If we require a particular step of our test scripts then we can use action by making it reusable action.&lt;br /&gt;If two or more test require the same script then we go for the actions.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Action Types:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. Non Reusable Action -It can be called only once in our test. It cannot be called in any other test.&lt;br /&gt;2. Reusable Action - It can be called multiple times in our test as well as in other test.&lt;br /&gt;When it is called in other test then it becomes External Action.&lt;br /&gt;&lt;br /&gt;By default each action is non reusable action. If we want to convert it as reusable action then there are two ways:&lt;br /&gt;1. Select Action, write click, select the check box reusable action&lt;br /&gt;2. Select Action Properties, select check box reusable action&lt;br /&gt;&lt;br /&gt;(From keyword view both methods will be possible. But from expert view only 2nd method is possible.)&lt;br /&gt;&lt;br /&gt;By making action as a reusable action, we can call that actions from other tests, rather than recording, modifying, and enhancing the same steps each time.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;How to call an Action:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;By using "Call to copy" or "Call to Existing" we can call the actions in QTP.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Defference betweeen Call to Copy and Call to Existing:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Call to Copy:&lt;br /&gt; 1. It is read and write mode&lt;br /&gt; 2. We can call both reusable actions and non reusable actions.&lt;br /&gt; 3. If we make any changes in base program, that will not be effected to the copied program&lt;br /&gt;&lt;br /&gt;Call to Existing:&lt;br /&gt; 1. It is read only mode&lt;br /&gt; 2. We can call both reusable actions and non reusable actions.&lt;br /&gt; 3. If we make any changes in base program, that will not be effected to the copied program.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-1375560382774530182?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/1375560382774530182/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=1375560382774530182' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/1375560382774530182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/1375560382774530182'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/05/about-actions.html' title='About Actions'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7132883052638225247.post-8083105219128091408</id><published>2008-05-28T08:54:00.000-07:00</published><updated>2009-02-03T05:15:20.701-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Descriptive Programming'/><title type='text'>How to Write Script</title><content type='html'>Here I am giving an idea of how we can write the script in different ways&lt;br /&gt;Here I am taking an example to write a statement to click on a specified button.&lt;br /&gt;I took two conditions, first one is when we are using object repository, second one is when we are not using object repository (Using Descriptive Programming)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Using Object Repository:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;'1st Method -&lt;br /&gt;Window("Flight Reservation").WinButton("Update Order").click 'Common Method&lt;br /&gt;&lt;br /&gt;'2nd Method -&lt;br /&gt;Set wndObject=Window("Flight Reservation") 'Assigning window object to an object variable&lt;br /&gt;wndObject.WinButton("Update Order").click&lt;br /&gt;          OR&lt;br /&gt;Set btnObject=Window("Flight Reservation").WinButton("Update Order") 'Assigning button     'object to an object variable&lt;br /&gt;&lt;br /&gt;'3rd Method -&lt;br /&gt;With Window("Flight Reservation")   'Using with statement&lt;br /&gt;      .WinButtton("Update Order").click&lt;br /&gt;End with&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Usingh Descriptive Programming :&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;'4th Method -&lt;br /&gt;Window("text:=Flight Reservation").WinButton("text:=&amp;amp;Update Order").click&lt;br /&gt;&lt;br /&gt;'5th Method&lt;br /&gt;Set oDes=Description.Create      'Creating a description Object&lt;br /&gt;oDes("nativeclass").value=Button    'Assigning description to the description object&lt;br /&gt;oDes("text").value="&amp;amp;Update Order"&lt;br /&gt;Window("text:=Flight Reservation").WinButton(oDes).click   'Clicking on button using the 'created description object&lt;br /&gt;&lt;br /&gt;'6th Method -&lt;br /&gt;Set oDes=Description.Create    'Creating a description Object&lt;br /&gt;set btnObjList=Window("text:=Flight Reservation").childObjects(oDes)    'Filtering objects&lt;br /&gt;For objIndex=0 to btnObjList.count-1&lt;br /&gt;  propVal=btnObjList(objIndex).getROProperty("text")    'Get Property value from object&lt;br /&gt;  If propVal="&amp;amp;Update Order" then    'Compare Property value&lt;br /&gt;      btnObjList(objIndex).click    'Click on identified object&lt;br /&gt;      Exit for 'Exit for loop after clicking on the button&lt;br /&gt;  End if&lt;br /&gt;Next&lt;br /&gt;&lt;br /&gt;'7th Method -&lt;br /&gt;Public const wndFlight="text:=Flight Reservation"    'Assigning a window object to a constant&lt;br /&gt;Public const btnUpdate="text:=&amp;amp;Update Order"    'Assigning a button object to a constant&lt;br /&gt;window(wndFlight).WinButton(btnUpdate).click    'clicking on a button using constants&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7132883052638225247-8083105219128091408?l=makeqtpeasy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://makeqtpeasy.blogspot.com/feeds/8083105219128091408/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7132883052638225247&amp;postID=8083105219128091408' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8083105219128091408'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7132883052638225247/posts/default/8083105219128091408'/><link rel='alternate' type='text/html' href='http://makeqtpeasy.blogspot.com/2008/05/descriptive-programming-for-biginners.html' title='How to Write Script'/><author><name>RAJAPUTRA</name><uri>http://www.blogger.com/profile/06747219451531830327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-Wk91s2cFfPo/TkUSsO3M8WI/AAAAAAAAAJI/Tr_Mv4mMRm0/s220/DSCN0741.JPG'/></author><thr:total>0</thr:total></entry></feed>
