<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-3132703535514457596</atom:id><lastBuildDate>Wed, 28 Aug 2024 12:02:22 +0000</lastBuildDate><category>Interview Questions - QTP</category><category>Descriptive Programming</category><category>Automation Object Model</category><category>Challenges in Regression Testing</category><category>Data Driven Testing</category><category>Features of QTP 9.2</category><category>QTP Certification Practice</category><category>QTP Questions</category><title>QTP: Expert in HP QuickTest Professional (QTP)</title><description>This QTP blog is for all who have Passion for QTP. Come on Guyz. Let&#39;s make testing better. Lets learn QTP</description><link>http://quicktesthp.blogspot.com/</link><managingEditor>noreply@blogger.com (Shruti)</managingEditor><generator>Blogger</generator><openSearch:totalResults>67</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3132703535514457596.post-3045525460003381275</guid><pubDate>Thu, 27 Oct 2011 03:53:00 +0000</pubDate><atom:updated>2011-10-27T09:56:51.032+05:30</atom:updated><title>QTP Add Comment Excel Object</title><description>&lt;div&gt;The following code will add a comment in a particular cell in excel worksheet.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;Set&lt;/span&gt; oExcel=&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;CreateObject&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 51);&quot;&gt;&quot;Excel.Application&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;     oExcel.&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Visible&lt;/span&gt;=&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;True&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;     Set&lt;/span&gt; oWorkBook=oExcel.&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Workbooks&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Add&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;     Set&lt;/span&gt; oWorkSheet=oWorkBook.&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Worksheets&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 51);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;     With&lt;/span&gt; oWorkSheet.&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Cells&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 51);&quot;&gt;1&lt;/span&gt;,&lt;span style=&quot;color: rgb(153, 51, 51);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;AddComment&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;     .&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Visible&lt;/span&gt; = &lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;False&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;     .&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Text&lt;/span&gt; &lt;span style=&quot;color: rgb(153, 51, 51);&quot;&gt;&quot;Comment for Cell 1,1&quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;With&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In case, you want to update the comment, use the following code:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;With&lt;/span&gt; oWorkSheet.&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Cells&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 51);&quot;&gt;1&lt;/span&gt;,&lt;span style=&quot;color: rgb(153, 51, 51);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Comment&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;     .&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Visible&lt;/span&gt; = &lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;True&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;     .&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Text&lt;/span&gt; &lt;span style=&quot;color: rgb(153, 51, 51);&quot;&gt;&quot;Comment Text Changed&quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;With&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;/span&gt;</description><link>http://quicktesthp.blogspot.com/2011/10/qtp-add-comment-excel-object.html</link><author>noreply@blogger.com (Shruti)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3132703535514457596.post-6112996985066223290</guid><pubDate>Thu, 22 Oct 2009 17:22:00 +0000</pubDate><atom:updated>2009-10-22T23:01:20.410+05:30</atom:updated><title>QTP Tip: Deselect all radio buttons</title><description>Yesterday I got an email from one of my esteemed readers who asked &quot;Is there any way to deselect all radio buttons using HP QTP?&quot; I thought why one would do that but since it has been asked, it has to be answered.&lt;br /&gt;&lt;br /&gt;Before answering the above question let me explain that, radio buttons work in groups unlike checkboxes. It means, in a group only a single radio button can be selected. Afterwards, its not possible to deselect all radio buttons in that group. Even manually it can not be done.&lt;br /&gt;&lt;br /&gt;Inititally the task seems impossible but its not :)&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;It is definitely possible to deselect all radio buttons using QTP but it can only be achieved with the help of Document Object Model or DOM.&lt;br /&gt;&lt;br /&gt;The QTP Script for the same goes here:&lt;br /&gt;&lt;br /&gt;Set Obj = &lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102);&quot;&gt;Browser&lt;/span&gt;(&quot;Google&quot;).&lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102);&quot;&gt;Page&lt;/span&gt;(&quot;Google&quot;).&lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102);&quot;&gt;object&lt;/span&gt;.getElementsByTagName(&quot;&lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102);&quot;&gt;INPUT&lt;/span&gt;&quot;)&lt;br /&gt;&lt;br /&gt;For each &lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102);&quot;&gt;RadioBtn &lt;/span&gt;in Obj&lt;br /&gt;If lcase(&lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102);&quot;&gt;RadioBtn&lt;/span&gt;.type) = &quot;radio&quot; Then &lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102);&quot;&gt;RadioBtn&lt;/span&gt;.checked = False&lt;br /&gt;Next&lt;br /&gt;&lt;br /&gt;To know more about the Document Object Model in QTP, see here : &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms533043%28VS.85%29.aspx&quot;&gt;http://msdn.microsoft.com/en-us/library/ms533043(VS.85).aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Also read about the Object property in WebRadioGroup Object in QTP help for more information.&lt;br /&gt;&lt;br /&gt;Note:&lt;br /&gt;&lt;br /&gt;Document Object model is supported by Internet Explorer browser only &amp;amp; not for Firefox as the underlying COM technology is not supported by Firefox. Hence, for Firefox browser, QTP will not be able to access the radio buttons using Document Object Model.&lt;br /&gt;&lt;br /&gt;Also working with Document Object Model inside HP Quicktest Professional is faster in terms of performance as no object identification is involved.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://quicktesthp.blogspot.com/2009/10/qtp-object-browser-document-object_22.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3132703535514457596.post-3073410498922361026</guid><pubDate>Sun, 04 Oct 2009 18:20:00 +0000</pubDate><atom:updated>2009-10-05T23:12:02.142+05:30</atom:updated><title>QTP: Adding Hyperlinks in Excel Spreadsheet</title><description>I was playing with the excel application along with QTP when suddenly I thought of adding a hyperlink inside an Excel spreadsheet from Quicktest. Task seemed a bit tricky initially but I took up the challenge and finally created a script.&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;The QTP script to accomplish the same goes here:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&#39;Create an object reference to Excel. Also you can see &quot;Excel.exe&quot; &lt;/span&gt; &lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&#39;process gets created in the Task Manager&lt;/span&gt;&lt;br /&gt;Set &lt;span style=&quot;font-weight: bold;&quot;&gt;objExcel &lt;/span&gt;= &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;CreateObject&lt;/span&gt;(&quot;&lt;span style=&quot;font-weight: bold;&quot;&gt;Excel.Application&lt;/span&gt;&quot;)&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&#39;Make the invisible Excel application visible&lt;/span&gt;&lt;br /&gt;objExcel.&lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;Visible &lt;/span&gt;= True&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&#39;Add a workbook to the blank excel sheet&lt;/span&gt;&lt;br /&gt;Set &lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102);&quot;&gt;objWorkbook &lt;/span&gt;= &lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102);&quot;&gt;objExcel&lt;/span&gt;.Workbooks.&lt;span style=&quot;font-weight: bold;&quot;&gt;Add&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&#39;Get the handle of first sheet&lt;/span&gt;&lt;br /&gt;Set &lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102);&quot;&gt;objWorksheet &lt;/span&gt;= &lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102);&quot;&gt;objWorkbook&lt;/span&gt;.Worksheets(1)&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&#39;Enter the value in A1 cell inside your first worksheet&lt;/span&gt;&lt;br /&gt;objWorksheet.&lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102);&quot;&gt;Cells&lt;/span&gt;(1, 1) = &quot;QTP Expert&quot;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&#39;Create a range encompassing only the single cell A1&lt;/span&gt;&lt;br /&gt;Set &lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;objRange &lt;/span&gt;= &lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102);&quot;&gt;objExcel&lt;/span&gt;.Range(&quot;A1&quot;)&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&#39;Add a hyperlink to that range. Here range is only a single&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&#39;cell so hyperlink would be created&lt;/span&gt;&lt;br /&gt;Set &lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102);&quot;&gt;objLink &lt;/span&gt;= &lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102);&quot;&gt;objWorksheet&lt;/span&gt;.Hyperlinks.&lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102);&quot;&gt;Add &lt;/span&gt;_&lt;br /&gt;(objRange, &quot;http://www.quicktesthp.blogspot.com&quot;)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;fullpost&quot;&gt;________________________________________________________________&lt;br /&gt;&lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102); font-style: italic;&quot;&gt;If you like this Article, I would suggest you to subscribe my RSS feed. This way you will get all new future articles directly into your mailbox.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;fullpost&quot;&gt;________________________________________________________________&lt;/span&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;/span&gt;</description><link>http://quicktesthp.blogspot.com/2009/10/qtp-adding-hyperlinks-excel-spreadsheet.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3132703535514457596.post-6490970648239152993</guid><pubDate>Sat, 03 Oct 2009 07:15:00 +0000</pubDate><atom:updated>2009-10-05T23:04:38.501+05:30</atom:updated><title>HP QTP Crypt Object</title><description>As the name implies, the &quot;Crypt&quot; object in HP Quicktest Professional is for encrypting the strings which can only be understood by QTP&#39;s &quot;SetSecure&quot; method. &quot;Encrypt&quot; is the only method supported by the QTP &quot;Crypt&quot; object.&lt;br /&gt;&lt;br /&gt;The syntax is:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Crypt.&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;Encrypt&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;(Your String)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;An example for the same would be:&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&#39;The string &quot;ExpertQTP&quot; would be encrypted&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;var=Crypt.&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;Encrypt&lt;/span&gt;(&quot;ExpertQTP&quot;)&lt;/span&gt; &lt;span style=&quot;font-weight: bold;&quot;&gt;msgbox va&lt;/span&gt;r&lt;br /&gt;&lt;br /&gt;The output of the above code would be &quot;&lt;span style=&quot;font-weight: bold;&quot;&gt;4ac6e9ba26cad2886bf331a767bfa1ce055f68e66bed5d61&lt;/span&gt;&quot;. As you can see, this string is encrypted which cant be understood by anyone.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Please Note&lt;/span&gt;: Recording on password protected fields automatically encrypts your string for example&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;fullpost&quot;&gt;Browser(&quot;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;micclass:=Browser&lt;/span&gt;&quot;).Page(&quot;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;micclass:=Page&lt;/span&gt;&quot;).&lt;br /&gt;WebEdit(&quot;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;name:=Password&lt;/span&gt;&quot;).SetSecure &quot;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;4ac6e9ba26cad2886bf331a767bfa1ce055f68e66bed5d61&lt;/span&gt;&quot;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;Now lets see how to decrypt our string. Sounds Interesting.. Alright!! Lets read more.&lt;br /&gt;&lt;br /&gt;Open your Internet Explorer browser and navigate to Google homepage. Copy and paste the below mentioned script in your QTP editor and run it.&lt;br /&gt;&lt;br /&gt;Browser(&quot;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;micclass:=Browser&lt;/span&gt;&quot;).Page(&quot;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;micclass:=Page&lt;/span&gt;&quot;).&lt;br /&gt;WebEdit(&quot;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;name:=q&lt;/span&gt;&quot;).&lt;br /&gt;SetSecure &quot;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;4ac6e9ba26cad2886bf331a767bfa1ce055f68e66bed5d61&lt;/span&gt;&quot;&lt;br /&gt;&lt;br /&gt;The output of the above code would be:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirHoUhMeYMOvHmxHQDa7lIJCVvGK7kpCYoyN4iWpBI8kBibCr-GaRlCydVsPe0P1gzq7uUGgXt5lzW3LTeQStp2mshehLeRtMirhHKk023HECPGy3V-grPcmQmQgmRhxRmN5uV9L6Vhsg3/s1600-h/Crypt.bmp&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 138px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirHoUhMeYMOvHmxHQDa7lIJCVvGK7kpCYoyN4iWpBI8kBibCr-GaRlCydVsPe0P1gzq7uUGgXt5lzW3LTeQStp2mshehLeRtMirhHKk023HECPGy3V-grPcmQmQgmRhxRmN5uV9L6Vhsg3/s400/Crypt.bmp&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5388270198371376354&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;span class=&quot;fullpost&quot;&gt;As you can see, you can even use SetSecure method on non password fields as well.&lt;br /&gt;&lt;br /&gt;Another example of Crypt usage would be to create a function inside a Library and call inside your QTP Script.&lt;br /&gt;&lt;br /&gt;pwd=&quot;QTPExpert&quot;&lt;br /&gt;Print Crypt_Func(pwd)&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;&#39;The below function is there in the Library&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Function Crypt_Func(password)&lt;br /&gt;Crypt_Func=Crypt.Encrypt(password)&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;I am going to present you another example how we can encrypt a string: Using &quot;&lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;Mercury.Encrypter&lt;/span&gt;&quot;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;Set var=&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;CreateObject&lt;/span&gt;(&quot;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Mercury.Encrypter&lt;/span&gt;&quot;)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;Msgbox var.&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;Encrypt&lt;/span&gt;(&quot;QTP&quot;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;Set &lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;var&lt;/span&gt;=Nothing &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;&#39;Release the Object reference&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Do you think of any other method or Utility to encrypt Strings? If your answer is No, then let me tell you there is a small utility program provided by QTP for encrypting strings. Its &quot;&lt;span style=&quot;font-style: italic;&quot;&gt;Password Encoder&lt;/span&gt;&quot;.&lt;br /&gt;&lt;br /&gt;How do I access this &quot;Password Encoder&quot; now? Thats simple!!&lt;br /&gt;Navigate to Start-&gt; All Programs-&gt; QuickTest Professional-&gt; Tools-&gt; Password Encoder&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;Provide your string inside the &quot;Password&quot; field and click on the Generate button. Your encrypted string would be displayed inside the &quot;Encoded String&quot; field.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;fullpost&quot;&gt;________________________________________________________________&lt;br /&gt;&lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102); font-style: italic;&quot;&gt;If you like this Article, I would suggest you to subscribe my RSS feed. This way you will get all new future articles directly into your mailbox.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;fullpost&quot;&gt;________________________________________________________________&lt;/span&gt;</description><link>http://quicktesthp.blogspot.com/2009/10/hp-qtp-crypt-object.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirHoUhMeYMOvHmxHQDa7lIJCVvGK7kpCYoyN4iWpBI8kBibCr-GaRlCydVsPe0P1gzq7uUGgXt5lzW3LTeQStp2mshehLeRtMirhHKk023HECPGy3V-grPcmQmQgmRhxRmN5uV9L6Vhsg3/s72-c/Crypt.bmp" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3132703535514457596.post-6365663422852156531</guid><pubDate>Sun, 15 Feb 2009 17:57:00 +0000</pubDate><atom:updated>2009-02-17T00:14:15.502+05:30</atom:updated><title>Creating Action Template in HP QuickTest Professional QTP</title><description>Did you ever thought of including some predefined statements in every new test inside your QTP software?&lt;br /&gt;&lt;br /&gt;If your answer is yes, then please read on.&lt;br /&gt;&lt;br /&gt;You can accomplish this through &lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102);&quot;&gt;Action Templates&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Let me present a very simple example to clear this. You want to get your name as the Author of the Action in every new test which means on opening a new test, your name would be displayed by default.&lt;br /&gt;&lt;br /&gt;A sample template would be like:&lt;br /&gt;&lt;br /&gt;&#39;***********************************************************************&lt;br /&gt;&#39;@Author: &lt;author name=&quot;&quot;&gt;&lt;br /&gt;&#39;@Name: &lt;action name=&quot;&quot;&gt;&lt;br /&gt;&#39;@Description: &lt;description&gt;&lt;br /&gt;&#39;***********************************************************************&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;You will notice that above shown template is fully commented out. Also, the Action Template applies to all the actions created on your own computer. &lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;Now lets see how do we create an Action Template inside HP Quicktest Professional(QTP).&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102);&quot;&gt;Creating Action Template inside HP QTP:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Open the notepad application and copy the above mentioned code inside the notepad. Save the file with this name “ActionTemplate.mst”. Please take care of adding the double quotes while saving the file in the Save as dialog box. Navigate to the path where your Quicktest Professional software is installed. Search for a “dat” folder inside it and save the above mentioned file inside the “dat” folder. &lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;The hierarchy would be&lt;br /&gt;&lt;quicktest style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot; folder=&quot;&quot; installation=&quot;&quot;&gt;&lt;quicktest&gt;QuickTest Installation Folder\dat folder&lt;/quicktest&gt;&lt;/quicktest&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;After saving this file all new actions would contain the script lines from the Action Template saved just now.&lt;br /&gt;&lt;br /&gt;Note that only the name “ActionTemplate.mst” would be recognized as an action template. It means if you change the file name to “ActionTemplate1.mst”, it would not work.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;/span&gt;&lt;/description&gt;&lt;/action&gt;&lt;/author&gt;</description><link>http://quicktesthp.blogspot.com/2009/02/creating-action-template-in-hp.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>5</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3132703535514457596.post-189120960598797800</guid><pubDate>Wed, 07 Jan 2009 12:09:00 +0000</pubDate><atom:updated>2009-01-07T18:47:32.712+05:30</atom:updated><title>Discovery of a Peculiar Bug in QTP Analog Recording</title><description>I take an opportunity of sharing my discovery of a new Bug in QTP with my esteemed readers. I discovered it while doing an Analog recording.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102);&quot;&gt;Prior to the explanation of the bug let us see the overview of the Analog Recording process according to the QTP 9.2 help file.&lt;/span&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;&lt;br /&gt;According to the &quot;Guidelines for Analog and Low Level Recording&quot; section in the QTP 9.2 help file, you will find that there are two types of Analog Recording modes:&lt;br /&gt;&lt;br /&gt;1. Record relative to the screen&lt;br /&gt;2. Record relative to a specified window&lt;br /&gt;&lt;br /&gt;Record relative to the screen option is used when you intend to perform operations on objects in either a moving window or if you have objects across multiple windows. Also, the HP Quicktest Professional (QTP) Software captures only the Active Screen image of the final state of the window, which you just recorded.&lt;br /&gt;&lt;br /&gt;Record relative to a specified window is used when you intend to perform operations on objects which are present in a single window only. Also HP QuickTest Professional does not capture any Active Screen images in this case.&lt;br /&gt;&lt;br /&gt;Now coming back to the bug which happens to be the most funny part as well. The event happens to occur the other way round in case of capturing the Active screen images. What actually happens is that QTP is capturing the Active Screen image in case of &quot;Record relative to a specified window&quot; option as against for &quot;Record relative to the screen&quot; option.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102);&quot;&gt;The illustration of the bug goes like this:&lt;/span&gt; Let us go by a very simple example being presented herewith.&lt;br /&gt;&lt;br /&gt;Open the Command prompt by navigating to Start-&gt;Run. Type &quot;cmd&quot; and press the return key.&lt;br /&gt;&lt;br /&gt;After opening the command prompt, please follow the below mentioned steps to reproduce this error.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Step – 1:&lt;/span&gt; Click on the record button inside QTP and then Click on the &quot;OK&quot; button on &quot;Record and Run Settings&quot; dialog box.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Step – 2:&lt;/span&gt; After executing Step1, Analog recording button must be activated in the Automation toolbar. Click on the Analog Recording button. You will see the following screen:&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://s360.photobucket.com/albums/oo49/qtpexpert/?action=view&amp;amp;current=SLIDE2.jpg&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://i360.photobucket.com/albums/oo49/qtpexpert/SLIDE2.jpg&quot; alt=&quot;Photobucket&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Step – 3:&lt;/span&gt; Keep the default option &quot;Record relative to the screen&quot; option selected and click on the &quot;Start Analog Record&quot; button.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Step – 4:&lt;/span&gt; Move your mouse inside the command prompt window and click anywhere inside it to make this window active and type any text for example &quot;xyz&quot;.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Step – 5:&lt;/span&gt; Stop the recording by clicking on the &quot;Stop&quot; button inside QTP.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Step – 6:&lt;/span&gt; Click on View-&gt;Active Screen.&lt;br /&gt;&lt;br /&gt;Now as per the HP Quicktest Professional Help file, the active screen should be displayed. Whereas the Output what I got is shown in the following screen shot with nothing in the Active Screen.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://s360.photobucket.com/albums/oo49/qtpexpert/?action=view&amp;amp;current=SLIDE3.jpg&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://i360.photobucket.com/albums/oo49/qtpexpert/SLIDE3.jpg&quot; alt=&quot;Photobucket&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;fullpost&quot;&gt;Pretty interesting, I must say.&lt;br /&gt;&lt;br /&gt;Now lets try the above mentioned steps for &quot;Record relative to the following window&quot; option.&lt;br /&gt;&lt;br /&gt;Execute all the above Six steps as it is, however, &lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102);&quot;&gt;execute the Step - 3 in the following manner&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;#####################################&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102);&quot;&gt;Alternative way of  Step – 3:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&quot;Check the &quot;Record relative to the following window&quot; radio button and click on the hand icon on the right. Your cursor will change to a hand.&lt;br /&gt;&lt;br /&gt;Now move this hand to the title bar of the command prompt and click on it.&lt;br /&gt;&lt;br /&gt;With this step, QTP captures the command prompt title as shown in the following screenshot.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://s360.photobucket.com/albums/oo49/qtpexpert/?action=view&amp;amp;current=SLIDE1.jpg&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://i360.photobucket.com/albums/oo49/qtpexpert/SLIDE1.jpg&quot; alt=&quot;Photobucket&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;fullpost&quot;&gt;Click on the &quot;Start Analog Record&quot; button.&lt;br /&gt;#####################################&lt;br /&gt;&lt;br /&gt;After executing the above-mentioned steps, I got the following result as shown in the following screenshot.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://s360.photobucket.com/albums/oo49/qtpexpert/?action=view&amp;amp;current=SLIDE4Modified.jpg&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://i360.photobucket.com/albums/oo49/qtpexpert/SLIDE4Modified.jpg&quot; alt=&quot;Photobucket&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;fullpost&quot;&gt;This is the expanded view of the above screenshot:&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://s360.photobucket.com/albums/oo49/qtpexpert/?action=view&amp;amp;current=SLIDE5.jpg&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://i360.photobucket.com/albums/oo49/qtpexpert/SLIDE5.jpg&quot; alt=&quot;Photobucket&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://s360.photobucket.com/albums/oo49/qtpexpert/?action=view&amp;amp;current=SLIDE6.jpg&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://i360.photobucket.com/albums/oo49/qtpexpert/SLIDE6.jpg&quot; alt=&quot;Photobucket&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;Bug confirmed, Hence proved :)&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102); font-style: italic;&quot;&gt;How about reporting this bug to the HP customer support? Whose gonna take the initiative?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Being Technology Savvy, I am sure you must be curious to read many more interesting articles on QTP; How about subscribing to my Feed? This will help you in automatically knowing the moment I post an article on my Site.&lt;br /&gt;&lt;br /&gt;So let us join and let us Learn &amp;amp; Master the great Tool QTP.&lt;br /&gt;&lt;br /&gt;Tags: HP QTP, Quicktest Professional, QTP Blog, QTP Bug, Bug inside QTP&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://quicktesthp.blogspot.com/2009/01/discovery-of-peculiar-bug-in-qtp-analog.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3132703535514457596.post-6951126564459241826</guid><pubDate>Sun, 04 Jan 2009 16:53:00 +0000</pubDate><atom:updated>2009-01-04T22:29:02.697+05:30</atom:updated><title>Lock your PC automatically after the execution of QTP Scripts</title><description>The beauty of Automation Testing is that Scripts are run in an unattended mode.Thus, what people usually do is, prepare the batch of scripts and leave for their homes. After the batch gets over, no matter even if it passes or even get failed, the PC is unlocked inviting others to view your secret project related data.&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;This remains a small issue in a simple project based company. However it can become extremely devastating issue in case of a company having Finance or Banking related projects, having top most concern for the security of its data.&lt;br /&gt;&lt;br /&gt;So one wonders as to what can be the way by which this situation can be tackled?&lt;br /&gt;&lt;br /&gt;I had been scratching my head to device a way to lock my PC automatically after my scripts get executed?&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 102); font-weight: bold;&quot;&gt;Ultimately I cracked the hard nut by a simple way. Now lets see how..&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You can use the following QTP Script to lock your PC :&lt;br /&gt;&lt;br /&gt;Set obj = &lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102);&quot;&gt;CreateObject&lt;/span&gt;(&quot;WScript.Shell&quot;)&lt;br /&gt;sCmnd = &quot;%windir%\SYSTEM32\rundll32.exe user32.dll,&lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102);&quot;&gt;LockWorkStation&lt;/span&gt;&quot;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 102);&quot;&gt;obj.Run&lt;/span&gt; sCmnd, 0, False&lt;br /&gt;&lt;br /&gt;The above QTP script will lock your PC automatically. Moreover, I will suggest you to create this script as a separate script and call this script lastly in your batch. This will solve the purpose.&lt;br /&gt;&lt;br /&gt;Being Technology Savvy, I am sure you must be curious to read many more interesting articles on QTP; How about subscribing to my Feed? This will help you in automatically knowing the moment I post an article on my Site.&lt;br /&gt;&lt;br /&gt;So let us join and let us Learn &amp;amp; Master the great Tool QTP.&lt;br /&gt;&lt;br /&gt;Tags: HP QTP, Quicktest Professional, lock PC using QTP&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://quicktesthp.blogspot.com/2009/01/lock-your-pc-automatically-after.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3132703535514457596.post-6772907766824624241</guid><pubDate>Wed, 03 Dec 2008 13:39:00 +0000</pubDate><atom:updated>2008-12-31T17:17:51.379+05:30</atom:updated><title>Run time Debugging through Print utility statement in QTP</title><description>&lt;div&gt;&lt;div&gt;I believe you have used &quot;msgbox&quot; function almost every time for debugging purposes i.e. displaying some text at run time. But the problem with &quot;msgbox&quot; function is that it keeps open till you close it and moreover you can’t debug further, since it’s a modal dialog box. You have to press OK button to move ahead. &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;How about a similar utility function, which works very similar, like &quot;msgbox&quot; and also provides the user the flexibility to perform further debugging? &lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;Yes, it is possible. HP Quicktest Professional (QTP) provides a Print utility statement which is used to display information in the &quot;QuickTest Print Log&quot; window while still continuing your Run Session. &lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;Looks pretty interesting!!!!!!! Alright, then go ahead and read more.&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;Firstly let us see what happens in case of &quot;msgbox&quot; function. As soon as the script encounters the &quot;msgbox&quot; function, it displays a dialog box and the script gets paused till the user presses the OK button. &lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;Following screenshot demonstrate the concept.&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5275559508681780242&quot; style=&quot;margin: 0px auto 10px; display: block; width: 400px; height: 314px; text-align: center;&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkouw-fDNqmMOxZNxYgJRFRsikCUSQ3uxDMH65b-9GYXFEsjhGEA67e0_ZZQp_NG9i_DcP2h9fudtCV0KlGN61UWnbpHXzbPiYoGyOYyFvlnH3gEiBecy_FFihXK6kdelcGSdp3Yr1t9FV/s400/Picture_1.JPG&quot; border=&quot;0&quot; /&gt; &lt;div&gt;&lt;/div&gt;&lt;div&gt;Here you need to press the OK button in order to continue.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;In order to counter this problem, HP QTP also provides a fantastic Print utility which is very similar to its &quot;msgbox&quot; counterpart but much more flexible. It can be used for debugging purposes. It is very simple to use inside QTP tool. &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;Following screenshot demonstrate the concept.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5275559903715903090&quot; style=&quot;margin: 0px auto 10px; display: block; width: 386px; height: 292px; text-align: center;&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwMfhSdW4s5hfhkhD7Chd4N8Ceq0yCLtDxRgnTROfAWCkR8vyWYw67pK_JVBfvpuKyM8pWaBVIfoxsvaEPyEZ2h8l3gldbQensZWvLnG8XBHleTHEZzZmH9849KNOztQk7rCJdvcczlkxY/s400/Picture_2.JPG&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;/strong&gt;As you can see from this screenshot, QuickTest Print Log window remains open even after your script has finished running, thus providing more flexibility.&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;So from now on which one you would like to use? QTP’s &quot;msgbox&quot; function or QTP’s Print Utility Statement?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;Did you like my explanation of the concept in the above article?&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Being Technology Savvy, I am sure you must be curious to read many more interesting articles on QTP; How about subscribing to my Feed? This will help you in automatically knowing the moment I post an article on my Site. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So let us join and let us Learn &amp;amp; Master the great Tool QTP.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;Keywords: HP QTP, Quicktest Professional, QTP Blog, QTP msgbox function, QTP Print utility statement&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://quicktesthp.blogspot.com/2008/12/run-time-debugging-through-print.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkouw-fDNqmMOxZNxYgJRFRsikCUSQ3uxDMH65b-9GYXFEsjhGEA67e0_ZZQp_NG9i_DcP2h9fudtCV0KlGN61UWnbpHXzbPiYoGyOYyFvlnH3gEiBecy_FFihXK6kdelcGSdp3Yr1t9FV/s72-c/Picture_1.JPG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3132703535514457596.post-6091573046089601758</guid><pubDate>Fri, 28 Nov 2008 11:37:00 +0000</pubDate><atom:updated>2008-12-31T18:48:54.942+05:30</atom:updated><title>Ways to manipulate conventional logic of naming objects in QTP</title><description>Here I am presenting a workaround to manipulate or overriding the Naming Conventions generally assigned by QTP to the test objects.&lt;br /&gt;&lt;br /&gt;Did you ever notice that QTP gives a random name to the objects after recording which even seems vague at times.&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;&lt;br /&gt;Let me show you an example to demonstrate my point. I tried recording on the Google home page and got this code from QTP after recording after writing some text in the Google search box:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;Browser(&quot;Google&quot;).Page(&quot;Google&quot;).WebEdit(&quot;q&quot;).Set &quot;This is the sample text&quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;As you can see from the above code, the name which has been assigned to the WebEdit box is &quot;q&quot;. How many of you agree that this &quot;q&quot; seems a valid name? Though this &quot;q&quot; is the name of the search box which has been hard coded by the Google developers. I have extracted the following code from the Google’s webpage to illustrate my point:&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;input maxlength=2048 &lt;strong&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;name=q&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt; size=55 title=&quot;Google Search&quot; value=&quot;&quot;&lt;br /&gt;&lt;br /&gt;I believe that QTP doesn’t name the test objects properly. There is certainly a way by which we can instruct QTP to name the text objects as per our chosen properties.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;The following are the steps for the same:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;1. Close your HP QTP software.&lt;br /&gt;&lt;br /&gt;2. Navigate to Start-&gt;Run.&lt;br /&gt;&lt;br /&gt;3. Type &quot;regedit&quot; and press enter to open the Registry Editor.&lt;br /&gt;&lt;br /&gt;4. Inside your &quot;Registry Editor&quot; navigate to HKEY_CURRENT_USER -&gt; Software -&gt; Mercury Interactive -&gt; QuickTest Professional -&gt; MicTest -&gt; Test Objects.&lt;br /&gt;&lt;br /&gt;Here, you can see so many keys like WebEdit, WebElement etc etc. Yes, you guessed right. These are in fact all the built-in keys classes of QTP. Expand any key of your choice for editing.&lt;br /&gt;&lt;br /&gt;In this tutorial, I will select WebEdit class which is very frequently used in QTP. You will see a key named &quot;tag query name&quot; as highlighted in the following screenshot which has the value &quot;logical name&quot;. You will see the same value for &quot;tag query name&quot; key for all the inbuilt classes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5273672246318634514&quot; style=&quot;margin: 0px auto 10px; display: block; width: 400px; height: 267px; text-align: center;&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnpUJ56Zqd7g_xDTFeRR1MxXXoY1PhOIbygs2htGA5v0V62_fUEVz0FcmrlyPRg1ENN8-BBGnbjHfwXGo_WybC9z8CawLsdKVQFSeMGcf2ZyHcHfcu4PKgP6FLqIZYB1TV887MQuFsooJy/s400/slide+2.JPG&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;Now double click the &quot;tag query name&quot; key. You will see the following screenshot. Provide any name of your choice. I provided &quot;QTP Expert&quot; and press enter.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5273672395011776322&quot; style=&quot;margin: 0px auto 10px; display: block; width: 397px; height: 169px; text-align: center;&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_wsHOkpaYKe-do7SkXY870p2z589Rar0xjgCgu4u3g4-8ihJ4gCos4fr7fUTyci8pjT_uidgAKlPyx7qqvU4yWB0WrfEHu3CkgbmhvlPgvrcEtx7S_VYVvGB2_gU6KhZQL2tWU8nzq3l8/s400/slide+1.JPG&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;br /&gt;Close the Registry Editor and open your HP Quicktest Professional (QTP) software. Open google.com webpage again and record again. [ Make sure you open the google webpage only after opening QTP]. You will see a code something like this:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;Browser(&quot;Google&quot;).Page(&quot;Google&quot;).WebEdit(&quot;WebEdit&quot;).Set &quot;This is the sample text &quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I hope, you must have noticed the difference after tweaking the registry editor.&lt;br /&gt;&lt;br /&gt;This technique doesn’t seem to be used too often, however it is possible to override the standard naming convention of objects through QTP by doing some minor changes in Registry Editor.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;KeyWords: QTP, Quicktest, Object Naming&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://quicktesthp.blogspot.com/2008/11/ways-to-manipulate-conventional-logic.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnpUJ56Zqd7g_xDTFeRR1MxXXoY1PhOIbygs2htGA5v0V62_fUEVz0FcmrlyPRg1ENN8-BBGnbjHfwXGo_WybC9z8CawLsdKVQFSeMGcf2ZyHcHfcu4PKgP6FLqIZYB1TV887MQuFsooJy/s72-c/slide+2.JPG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3132703535514457596.post-8594502399696039766</guid><pubDate>Tue, 18 Nov 2008 10:58:00 +0000</pubDate><atom:updated>2008-12-31T19:53:02.388+05:30</atom:updated><title>Application of Fault Tolerance Approach using QTP</title><description>Let us try to understand this concept of fault tolerance a bit Step-by-step.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;What is a Fault Tolerant System?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;When any system is able to recover from some unexpected errors and is able to restore the normal operation, it is known as a Fault Tolerant system.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;When do we need a fully Fault Tolerant System?&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;Since it is a very complex &amp;amp; costly process to ensure perfect error recovery in a fault tolerant systems, this approach is deployed in applications where safety, availability and time requirements are of prime importance.&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;Why there is a need to tackle the Errors?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Only the single major characteristic i.e. Reliability identifies any high-quality software. A good piece of software must be able to behave as expected in almost all situations. Although software development companies, during the process of development, try their best to avoid, detect and remove maximum umber of errors as possible, still they can’t take it for granted that the delivered software is free of errors. Due to this there comes the need to have adequate mechanism in place, which could protect the productive system from unacceptable behavior in case of error like situations.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;How to handle the situation in case of an error?&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;When an error occurs primarily due to some faulty design and we are not able to rectify the fault on-line, and we can not afford to move ahead with inconsistent or corrupted data. In such situation it is best to terminate the application in a controlled way (of course whenever possible) rather than trying to do recovery from the error to continue the normal operation.&lt;br /&gt;&lt;br /&gt;Usually a script designed for testing an application remains in a Technically Feasible / Good State, during the normal operation. However Good States always have their evil counterparts as well i.e. the Bad States. And the creator of the scripts would never like his script to land into such Bad States. But a patient tester keeps him mentally prepared for his script landing into a Bad State &amp;amp; he tries to minimize such problematic by anticipating such problem situations and ably converts them into expected situations for his benefit.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;What should be the realistic approach?&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;The best approach in business information systems is generally aimed at pumping maximum resources of time, money &amp;amp; efforts in prevention of errors during the development and creation of robust system. This would ensure correctness and integrity of the data and will go even one-step further in prevent any corruption and loss of the data.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;Understanding Error-handling Mechanism of a Test Tool: &lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Almost each &amp;amp; every test tool addresses following elements of its error handling mechanism:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(153, 0, 0);&quot;&gt;1) Fault:&lt;/span&gt;&lt;/strong&gt; It is the origin of any misbehavior. It is the byproduct or the cause of an error.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(153, 0, 0);&quot;&gt;2) Error:&lt;/span&gt;&lt;/strong&gt; It is a part of a system state, which leads to a failure. User errors don’t become a part of this definition, since user errors are mistakes committed by the user while operating a software system.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(153, 0, 0);&quot;&gt;3) Detector:&lt;/span&gt;&lt;/strong&gt; An error needs to be detected first before the tool can act on it. The error handling mechanisms in a tool interacts with errors and failures of the application. Thus a detector is an interface between the error and failures taking place in the system.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(153, 0, 0);&quot;&gt;4) Failure:&lt;/span&gt;&lt;/strong&gt; It is a deviation of the delivered application in its compliance with the basic specifications. It differs from error in way that the error refers to a particular state of a system, whereas a failure is a specific event, which is basically a transition from the correct delivery to the incorrect delivery.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(153, 0, 0);&quot;&gt;5) Exception:&lt;/span&gt;&lt;/strong&gt; It is an abnormal condition, which interrupts the normal control flow. To raise an exception, a program needs to detect an error or failure first.&lt;br /&gt;&lt;br /&gt;A typical relationship among above-mentioned elements of error handling mechanism are explained pictorially as under.&lt;br /&gt;&lt;br /&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5269958428264821426&quot; style=&quot;margin: 0px auto 10px; display: block; width: 400px; height: 348px; text-align: center;&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQNrcFk-At1hMVpyHp2kgaGHfBIDn-mWVbiBTS5Q60PQ3xhjpEKHp9qhSlh6D8c5GUxVnHlkXWnYj0Sz2oMa6hcCNfz-LCMZ8QskMuLUi5Uwls1TAT50QhvAShQu2PVSqT6FPE-mh7ZXqS/s400/ErrorHandling.JPG&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;QTP &amp;amp; its error handling potentials:&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;QTP along with its prime companion VBScript (if designed with care &amp;amp; consideration) are quite powerful in handling errors and Exceptions. Design &amp;amp; developments of QTP scripts is an art, but not too difficult to learn &amp;amp; master.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As said earlier, design of good script for QTP is extremely important, so that the script behaves well in almost every situation and it should be able to handle not only with the normal situations but also many unexpected situations.&lt;br /&gt;&lt;br /&gt;While designing scripts for QTP, the script designer must keep the underlying motto at the back of his mind and that is &lt;strong&gt;&quot;Expect the Unexpected&quot;.&lt;/strong&gt; Development of QTP scripts is thus treated almost similar to the development of any other software package &amp;amp; I feel that both of these need to be treated the same way.&lt;br /&gt;&lt;br /&gt;Attributes of a strong error handling system:Robust scripts capable of tackling problematic states are designed to operate under architecture, equipped with error handling facilities like:&lt;br /&gt;&lt;br /&gt;1) Ability to detect errors.&lt;br /&gt;2) Ability to handle errors.&lt;br /&gt;3) Transmission of error related information among all concerned&lt;br /&gt;4) Management of important information for analyzing &amp;amp; resolving the errors.&lt;br /&gt;5) Management of error messages for reporting to the user or the testers.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;Error handling mechanisms of QTP:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;During the run session, if an error occurs in QTP the script is halted &amp;amp; the error handling mechanism of QTP releases a popup message box describing the error to the user informing of the problem. The user is prompted to select an option of clicking a button on this message box to either continue to execute the program or end the run session. The error message can accompany a screenshot / bitmap capture of the error event for better clarity.&lt;br /&gt;&lt;br /&gt;The tester has option to accept the &lt;strong&gt;Popup Message Box&lt;/strong&gt; option or he can specify a different response by choosing one of the alternative options in the list in the &lt;strong&gt;&quot;When error occurs during run session&quot;&lt;/strong&gt; box:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(153, 0, 0);&quot;&gt;a) Proceed to next action iteration&lt;/span&gt;&lt;/strong&gt; – QTP proceeds to the next action iteration when an error occurs.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(153, 0, 0);&quot;&gt;b) Stop run&lt;/span&gt;&lt;/strong&gt; – QTP stops the run session when an error occurs.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(153, 0, 0);&quot;&gt;c) Proceed to next step&lt;/span&gt;&lt;/strong&gt; - QTP proceeds to the next step in the test when an error occurs.&lt;br /&gt;&lt;br /&gt;QTP first performs the particular recovery scenarios associated with the test, and performs the option selected above only if the associated recovery scenarios are not able to resolve the error.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;Programmatically Controlling the Recovery Mechanism in QTP:&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;Recovery object can be used to control the recovery mechanism programmatically during the run session. For example, the entire recovery mechanism or particular recovery scenarios can be enabled or disabled. The status information related to the particular recovery scenarios can be retrieved and the recovery mechanism at a certain point in the run session can be activated.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;By default, QTP checks for recovery triggers when an error is returned during the run session. We can use the Recovery object&#39;s Activate method to force QTP to check for triggers after a specific step in the run session. For example, when we are aware of the fact that an object property checkpoint will fail if certain processes are open when the checkpoint is performed. We want to be sure that these open processes, which may indicate a different problem with the application, do not affect the pass or fail of the checkpoint.&lt;br /&gt;&lt;br /&gt;However, a failed checkpoint does not result in a run error. Hence by default, the recovery mechanism would not be activated by the Object State. We can define a recovery scenario, which looks for, and closes specified open processes when an object&#39;s properties have a certain state. This state shows the object&#39;s property values, as they would be if the problematic processes were open. We can instruct QTP to activate the recovery mechanism if the checkpoint fails so that QTP will check for and close any problematic open processes and then try to perform the checkpoint again. This ensures that when the checkpoint is performed the second time the open processes do not affect it.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;Use of Check Points in QTP:&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;As said earlier that prevention is better than cure, QTP provides a very powerful tool of using Checkpoints to check various objects in the application to ensure that they function properly.&lt;br /&gt;&lt;br /&gt;Checkpoint is nothing but a point of verification, which compares a current value for a specified property with the expected value for that property. This enables the tester to identify whether the application is functioning correctly or not. When the test is run, QTP compares the expected results of the checkpoint with the current results. If the results do not match, the checkpoint fails &amp;amp; the end result gets displayed in the result window.&lt;br /&gt;&lt;br /&gt;QTP provides eleven types of checkpoints to the testers. The details of each &amp;amp; every Checkpoint are not included in this article.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;Use of Synchronization Points in QTP: &lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;As an alternative to create a checkpoint or perform a step until the application object aquires a particular status, a synchronization point can be inserted to instruct QTP to halt the testing process till the object property reaches a value specified by us (or till a timeout specified by us has exceeded).&lt;br /&gt;&lt;br /&gt;If we don’t have a synchronization point, QTP is likely to click the Update Order button too quickly during the test execution process, which will result in failure of the test.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;Finally - Understanding of the Best Practices:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;1) A best method to use error-handling mechanism is to try to prevent the errors. Whenever an error happens, try to capture the maximum related information &amp;amp; report it in detail.&lt;br /&gt;&lt;br /&gt;2) Perform a syntax check every time the script is changed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Key Words : QTP, Error Handling, Recovery Scenario, Synchronization, Check Point, Recovery Mechanism&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;/span&gt;</description><link>http://quicktesthp.blogspot.com/2008/11/application-of-fault-tolerance-approach.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQNrcFk-At1hMVpyHp2kgaGHfBIDn-mWVbiBTS5Q60PQ3xhjpEKHp9qhSlh6D8c5GUxVnHlkXWnYj0Sz2oMa6hcCNfz-LCMZ8QskMuLUi5Uwls1TAT50QhvAShQu2PVSqT6FPE-mh7ZXqS/s72-c/ErrorHandling.JPG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3132703535514457596.post-4357881459444562926</guid><pubDate>Sat, 08 Nov 2008 16:55:00 +0000</pubDate><atom:updated>2008-12-31T21:46:51.602+05:30</atom:updated><title>VBScript a Stepping-stone to learn QTP Automation Tool</title><description>&lt;div&gt;It is quite obvious that to be a successful practitioner of QTP, one needs to thoroughly understand Vbscript.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I am presenting below my first article cum tutorial in this series on VBscript, which is a step-by-step guide for all enthusiasts eager to learn QTP.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;***********************&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;VBScript:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Vbscript is a scripting language developed by Microsoft. It is the simplified version of Visual Basic. It is very closely related to BASIC programming language.&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;What is a Variable?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;A variable is a container in the computer’s memory which is used to store information that you want to store. It is possible to change the value of the variables inside your script. In VBScript, all variables are of one fundamental datatype: Variant which means it can store different types of data.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;Naming conventions for Variables&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;While creating variables, you need to follow some rules. These are:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;They should always begin with a letter and they should not contain a period(.) sign.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Variable names should not exceed 255 characters.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;They should be unique in the scope in which they are declared.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;They should not have names same as keywords like “Dim”, “For” etc.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;How can I create variables with the above knowledge?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Variables can be created using Public, Private or Dim statements. The most common statement is Dim. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For an example, you can use the following syntax to declare variables. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;###########&lt;/div&gt;&lt;div&gt;Dim var&lt;/div&gt;&lt;div&gt;###########&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Initially this variable has no value which means its empty. After initializing a variable and assigning a value like in above case, the following expressions will evaluate to True:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If var = 0 Then&lt;/div&gt;&lt;div&gt;If var = “” Then&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You can also create variables even without using Dim statement however it is not recommended to do so. Following example will clarify the concept:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Dim A&lt;/div&gt;&lt;div&gt;A=B+C&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;Is there any way to use keywords as variable names?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Yes, there is a way. Through this way we can even use keywords or some special symbols as variable names. Lets see, how it done. For this, you have to place variable names inside brackets. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Dim [For]&lt;/div&gt;&lt;div&gt;[For] = 20&lt;/div&gt;&lt;div&gt;Msgbox [For]&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here, we created a variable named [For] inside brackets which is not possible otherwise. Now the “Msgbox” is a predefined function inside VBScript which is used to display a dialog box to see the value of the variable. The output of the code is:&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggA_GqGHk27DvwZQNHNPWFSiJI0Rf0U9QIaxMYSsFqQd0b_0FRhiw1YNA1sTCiPQMFV7lBktwVSwMXE8_wiMfTUzB_EiuI1C3tvpKVxMHFUl2ENngVO7Jse6XXFFwWGmHOf30EQPuEWTR-/s1600-h/Output.JPG&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 88px; height: 89px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggA_GqGHk27DvwZQNHNPWFSiJI0Rf0U9QIaxMYSsFqQd0b_0FRhiw1YNA1sTCiPQMFV7lBktwVSwMXE8_wiMfTUzB_EiuI1C3tvpKVxMHFUl2ENngVO7Jse6XXFFwWGmHOf30EQPuEWTR-/s400/Output.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5266332826343470322&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;What is Option Explicit statement?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Option Explicit is used to force explicit declaration of all variables inside your script. This statement is always used at the top of all VBScript statements. This means, you are forced to declare all your variables using either of the statements “Dim”,“Public” or “Private”.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now lets see what happens if we try to use a variable without using Dim statement in the case when Option Explicit statement is also used.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Option Explicit&lt;/div&gt;&lt;div&gt;A=10&lt;/div&gt;&lt;div&gt;MsgBox A&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This is the output you will get:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJcP7YfGBUqrY4caTDn5G94_wdoDlAilQZuZdmxCGgXE69WFX4Iyf9fF1uaLNz9I8bE7sWejZmH1fHeVotnWxujD4xGtPKCy9SbzStJb66Rxyzt2n7rFmT-1ZCEY_kMctn8sXQwv_9gePV/s1600-h/Output.JPG&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 326px; height: 124px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJcP7YfGBUqrY4caTDn5G94_wdoDlAilQZuZdmxCGgXE69WFX4Iyf9fF1uaLNz9I8bE7sWejZmH1fHeVotnWxujD4xGtPKCy9SbzStJb66Rxyzt2n7rFmT-1ZCEY_kMctn8sXQwv_9gePV/s400/Output.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5266333127566851586&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Hence to avoid this error, use the following code:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Option Explicit&lt;/div&gt;&lt;div&gt;Dim A&lt;/div&gt;&lt;div&gt;A=10&lt;/div&gt;&lt;div&gt;MsgBox A&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Please wait for my next VBScript Tutorial in this series going to be posted very shortly.&lt;br /&gt;&lt;br /&gt;Keywords:&lt;br /&gt;QTP, QTP &amp;amp; VBScript, VBScript Tutorial, VBScript &amp;amp; QTP&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</description><link>http://quicktesthp.blogspot.com/2008/11/vbscript-stepping-stone-to-learn-qtp.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggA_GqGHk27DvwZQNHNPWFSiJI0Rf0U9QIaxMYSsFqQd0b_0FRhiw1YNA1sTCiPQMFV7lBktwVSwMXE8_wiMfTUzB_EiuI1C3tvpKVxMHFUl2ENngVO7Jse6XXFFwWGmHOf30EQPuEWTR-/s72-c/Output.JPG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3132703535514457596.post-1438369573891962162</guid><pubDate>Tue, 28 Oct 2008 06:13:00 +0000</pubDate><atom:updated>2008-10-29T19:14:50.156+05:30</atom:updated><title>How to get yourself Registered for HP Quicktest Professional(QTP) for Certification</title><description>These days I am getting several emails from the esteemed readers of my blog, who are curious to know the answer to a most sought after question; which goes like:&lt;br /&gt;&lt;br /&gt;&quot;Hi Expert !!!! Can you please suggest me how can I register for HP Quicktest Professional (QTP) Certification, what&#39;s the exam fee, What&#39;s the structure of Certification Exam etc etc.&quot;&lt;br /&gt;&lt;br /&gt;Hence for the benefit of my curious readers, I am publishing this post which will answer all such queries:&lt;br /&gt;&lt;br /&gt;1. The code for the HP QTP certification exam is HPO: M16&lt;br /&gt;&lt;br /&gt;2. You need to open this website for more details: &lt;a href=&quot;http://www.register.prometric.com/Index.asp&quot;&gt;http://www.register.prometric.com/Index.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;3. Here in this website, Select your Country for example United States. Then select a state for example Alaska. Click on the Next button.&lt;br /&gt;&lt;br /&gt;4. Select Hewlett Packard from Client as shown in the following screenshot. Click on the Next button.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhT5iSPzmxMvKRHKMLMSkEJGzhO-XB0nbbs3EgRaPieeenY2_UdySABXhckUzZu-wZodDNOO2oz5JEnzN4OTMdBW_JloCir6eS1uez2PurW-f5xoF2_eYg1WRk3Z6Dp4RPNPjABxsTjr8fU/s1600-h/HP+QTP.bmp&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5262086161914422690&quot; style=&quot;margin: 0px auto 10px; display: block; width: 400px; cursor: pointer; height: 215px; text-align: center;&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhT5iSPzmxMvKRHKMLMSkEJGzhO-XB0nbbs3EgRaPieeenY2_UdySABXhckUzZu-wZodDNOO2oz5JEnzN4OTMdBW_JloCir6eS1uez2PurW-f5xoF2_eYg1WRk3Z6Dp4RPNPjABxsTjr8fU/s400/HP+QTP.bmp&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;5. Again click on the Next button on HP Certified Professional Page. You will see the following page.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5YlzZB8rMfBXpOu4tJHATMSrIrQWlsrKHHI6DYZZ4H2jPVSzWHYLCZ90ht2gaYBjmogvz-6DlDSmA4V7CFADM5wiZXzDKoILeqVRkWZ_IibpXi6X_XMBWu-1aq9k1OZz9tYuJb230Vboa/s1600-h/HP+QTP1.bmp&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5262087669864770658&quot; style=&quot;margin: 0px auto 10px; display: block; width: 400px; cursor: pointer; height: 314px; text-align: center;&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5YlzZB8rMfBXpOu4tJHATMSrIrQWlsrKHHI6DYZZ4H2jPVSzWHYLCZ90ht2gaYBjmogvz-6DlDSmA4V7CFADM5wiZXzDKoILeqVRkWZ_IibpXi6X_XMBWu-1aq9k1OZz9tYuJb230Vboa/s400/HP+QTP1.bmp&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;6. Select HPO-M16 from Exam as shown in the following screenshot. The exam fees may vary according to the location of your country.&lt;br /&gt;&lt;br /&gt;7. In the next page, you will see a list of Center locations along with their Contact Numbers which conducts this exam. You guys can contact any of these Centers based on your choice.&lt;br /&gt;&lt;br /&gt;8. Once ready for the exam after paying the fee, be prepared to answer a set of 60 Nos. Multiple choice questions, having a Minimum Passing Score of 70%.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;9. Time commitment for the QTP Certification exam is 2 Hours.&lt;br /&gt;&lt;br /&gt;10. You will get a Scorecard after clearing the QTP certification exam and for getting a Certificate you need to clear the QC exam / HP Quality Center Exam as well.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;If you need specialized help in learning QTP leading to HP Certification, Please let me know.&lt;br /&gt;&lt;br /&gt;All the Best Friends !!!!!!!!!!!!&lt;br /&gt;&lt;br /&gt;Posted By : QTP Expert&lt;br /&gt;&lt;a href=&quot;mailto:expert.qtp@gmail.com&quot;&gt;expert.qtp@gmail.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Keywords: HP QuickTest Professional Certification, QTP Certification, HP Certified Professional Exam, Registration for QTP Certification, QTP Training&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description><link>http://quicktesthp.blogspot.com/2008/10/how-to-get-yourself-registered-for-hp.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhT5iSPzmxMvKRHKMLMSkEJGzhO-XB0nbbs3EgRaPieeenY2_UdySABXhckUzZu-wZodDNOO2oz5JEnzN4OTMdBW_JloCir6eS1uez2PurW-f5xoF2_eYg1WRk3Z6Dp4RPNPjABxsTjr8fU/s72-c/HP+QTP.bmp" height="72" width="72"/><thr:total>4</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3132703535514457596.post-4230698515612529999</guid><pubDate>Wed, 15 Oct 2008 08:23:00 +0000</pubDate><atom:updated>2008-10-15T14:10:25.453+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions - QTP</category><title>QTP - Interview Question Bank : Part 11</title><description>&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;Q. 101: What is the process of capturing visible portion of an object in QTP?&lt;br /&gt;=====================================================&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;QTP captures the visible part of the specified object as a bitmap and inserts a checkpoint in the test. QTP does not capture any part of the screen which happens to be scrolled off the screen. You can check an area of an application as a bitmap. While creating a test, you specify the area you want to check by selecting an object. You can check an entire object or any area within an object.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;==================================================&lt;br /&gt;Q. 102: What is the process of comparing selected area of object with Bitmap stored in the checkpoint?&lt;br /&gt;==================================================&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;When you run the test, QTP compares the object or selected area of the object in the application with the bitmap stored in the checkpoint.&lt;br /&gt;&lt;br /&gt;If there are differences, QTP captures a bitmap of the actual object and displays it with the expected bitmap in the details portion of the Test Results window. By comparing the two bitmaps (expected and actual), you can identify the nature of the discrepancy.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=================================================&lt;br /&gt;Q. 103: How can we define a time interval for QTP to perform a checkpoint successfully?&lt;br /&gt;=================================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;For defining some time interval (say in seconds) during which QTP shopuld attempt to perform the checkpoint successfully, we need to specify the Checkpoint Timeout. QTP continues to perform the checkpoint until it passes or until the timeout occurs. If the checkpoint does not pass before the timeout occurs, the checkpoint fails.&lt;br /&gt;&lt;br /&gt;For example, suppose it takes some time for an object to achieve an expected state. Increasing the checkpoint timeout value in this case can help ensure that the object has sufficient time to achieve that state, enabling the checkpoint to pass (if the data matches) before the maximum timeout is reached.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;==============================================&lt;br /&gt;Q. 104: How can we check the object property values in our application?&lt;br /&gt;==============================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;You can check that a specified object in your application has the property values you expect, by adding a standard checkpoint step to your test while recording or editing the test. Standard checkpoints compare the expected values of object properties to the object’s current values during a run session.&lt;br /&gt;&lt;br /&gt;We can use standard checkpoints to perform checks on images, tables, Web page properties, and other objects within our application.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=======================================&lt;br /&gt;Q. 105: How can we identify a checkpoint in QTP?=======================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;We identify a checkpoint by its name. By default, the checkpoint name is the same as the name of the test object on which the checkpoint was created. You can specify a different name for the checkpoint or accept the default name.&lt;br /&gt;&lt;br /&gt;If you want to rename a checkpoint, make sure that the name is unique, and it does not begin or end with a space, and does not contain the special charactesr like &quot; := @@&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;===============================================&lt;br /&gt;Q. 106: How can we Insert statement option when adding a checkpoint during the recording?&lt;br /&gt;===============================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The Insert statement option is not available when adding a checkpoint during recording or when modifying an existing object checkpoint. It is available only when adding a new checkpoint to an existing test while editing it.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=============================================&lt;br /&gt;Q. 107: How can we compare the image files in the Image Checkpoint?&lt;br /&gt;=============================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;We can compare the image files in the Image Checkpoint by using the Compare image content option in the Image Checkpoint Properties dialog box. It compares the expected image source file with the graphic of the actual image source file. If the expected and actual images are different, QTP displays them both in the Test Results. If the images are identical, only one graphic is displayed.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;====================================================&lt;br /&gt;Q. 108: How can we check the contents of tables in our application in QTP?&lt;br /&gt;====================================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;We can check the contents of tables in our application by adding table checkpoints to the test. For example, you can check that a specified value is displayed in a particular cell. We can also check the properties of the table object. For example, you can check that a table has the expected number of rows and columns.&lt;br /&gt;&lt;br /&gt;When you run the test, the table checkpoint compares the actual data to the expected data, as defined in the checkpoint. If the results match, the checkpoint passes.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;====================================================&lt;br /&gt;Q. 109: How do we compare actual cell values with the expected cell values in Tables in QTP?.&lt;br /&gt;====================================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;By using the Settings tab we can compare actual cell values with the expected cell values in tables. Bu using Verification type option we can compare following types of cell contents.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;1) String Content:&lt;/span&gt;&lt;/strong&gt; It is the default setting. It treats the cell values as strings and checks for the exact text, while ignoring spaces. For example, 2 and 2.00 are not recognized as the same string.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;2) Numeric Content:&lt;/span&gt;&lt;/strong&gt; Evaluates the content of the cell according to numeric values. For example, 2 and 2.00 are recognized as the same number.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;3) Numeric Range:&lt;/span&gt;&lt;/strong&gt; Compares the content of the cell against a numeric range, where the minimum and maximum values are any real number that you specify.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=====================================================&lt;br /&gt;Q. 110: How can we check the location of a cell to be checked in a Column of a table?&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=====================================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;By the use of Identify columns option available in Cell Identification tab. This specifies the location of the column containing the cells with which you want to compare the expected data. This is done in two ways:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;1) By position:&lt;/span&gt;&lt;/strong&gt; This is the Default option. It locates cells according to the column position. A shift in the position of the columns within the table results in a mismatch.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;2) By column name:&lt;/span&gt;&lt;/strong&gt; It locates cells according to the column name. A shift in the position of the columns within the table does not result in a mismatch. This option gets enabled only when the table contains more than one column.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;Keyword: QTP Interview Questions, FAQ QTP&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;</description><link>http://quicktesthp.blogspot.com/2008/10/qtp-interview-question-bank-part-11.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3132703535514457596.post-3902012795771007447</guid><pubDate>Wed, 15 Oct 2008 08:11:00 +0000</pubDate><atom:updated>2008-10-15T13:53:16.531+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions - QTP</category><title>QTP - Interview Question Bank : Part 10</title><description>&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;Q. 91: What is a Standard Check Point in QTP?=====================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;It is a checkpoint which checks the property value of an object in your application. The standard checkpoint checks a variety of objects such as buttons, radio buttons, combo boxes, lists, and so forth. For example, you can check that a radio button is activated after it is selected or you can check the value of an edit box.&lt;br /&gt;&lt;br /&gt;Standard checkpoints are supported for all add-in environments.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;===================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;Q. 92: What is a Image Check Point in QTP?===================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;It is a checkpoint ahich checks the value of an image in your application. For example, you can check that a selected image’s source file is correct. Image checkpoint is created by inserting a standard checkpoint on an image object.&lt;br /&gt;&lt;br /&gt;Image checkpoints are supported for the Web add-in environment.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;====================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;Q. 93: What is a Bitmap Check Point in QTP?====================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;It is a checkpoint which checks an area of your application as a bitmap. For example, suppose you have a Web site that can display a map of a city the user specifies. The map has control keys for zooming. You can record the new map that is displayed after one click on the control key that zooms in the map. Using the bitmap checkpoint, you can check that the map zooms in correctly.&lt;br /&gt;You can create a bitmap checkpoint for any area in your application, including buttons, text boxes, and tables.&lt;br /&gt;&lt;br /&gt;Bitmap checkpoints are supported for all add-in environments&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;==================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;Q. 94: What is a Table Check Point in QTP?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;==================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;It is a checkpoint which checks information within a table. For example, suppose your application contains a table listing all available flights from New Delhi to Chennai. You can add a table checkpoint to check that the time of the first flight in the table is correct.&lt;br /&gt;You create a table checkpoint by inserting a standard checkpoint on a table object.&lt;br /&gt;Table checkpoints are supported for Web, ActiveX, Java, Oracle, and .NET Windows Forms environments, as well as other add-in environments&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;==================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;Q. 95: What is a Text Check Point in QTP?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;==================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;It is a checkpoint which checks that a text string is displayed in the appropriate place on a Web page or application. For example, suppose a Web page displays the sentence Flight departing from New Delhi to Chennai. You can create a text checkpoint that checks that the words “New Delhi” are displayed between “Flight departing from” and “to Chennai”.&lt;br /&gt;&lt;br /&gt;Text checkpoints are supported for most add-in environments&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=====================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;Q. 96: What is a Text Area Check Point in QTP?=====================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;It is a checkpoint which checks that a text string is displayed within a defined area in a Windows-based application, according to specified criteria. For example, suppose your Visual Basic application has a button that says View Doc &lt;num&gt;, where &lt;num&gt;is replaced by the four digit code entered in a form elsewhere in the application. You can create a text area checkpoint to confirm that the number displayed on the button is the same as the number entered in the form.&lt;br /&gt;&lt;br /&gt;Text area checkpoints are supported for all Windows-based environments, such as Standard Windows, Visual Basic, and ActiveX add-in environments&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;========================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;Q. 97: What is an Accessibility Check Point in QTP?========================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;It is a checkpoint which identifies areas of your Web site that may not conform to the World Wide Web Consortium (W3C) Web Content Accessibility Guidelines. For example, guideline 1.1 of the W3C WebContent Accessibility Guidelines requires you to provide a text equivalent for every non-text element. You can add an Alt property check to check whether objects that require the Alt property under this guideline, do in fact have this tag.&lt;br /&gt;&lt;br /&gt;Accessibility checkpoints are supported for the Web add-in environment.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;===================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;Q. 98: What is a Page Check Point in QTP?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;===================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;It is a checkpoint checks the characteristics of a Web page. For example, you can check how long a Web page takes to load or whether a Web page contains broken links.&lt;br /&gt;&lt;br /&gt;You create a page checkpoint by inserting a standard checkpoint on a page object. Page checkpoints are supported for the Web add-in environment.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=====================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;Q. 99: What is a Database Check Point in QTP?=====================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;It is a checkpoint which checks the contents of a database accessed by your application. For example, you can use a database checkpoint to check the contents of a database containing flight information for your Web site.&lt;br /&gt;&lt;br /&gt;Database checkpoints are supported for all add-in environments&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;===================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;Q. 100: What is a XML Check Point in QTP?===================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;It is a checkpoint which checks the data content of XML documents in XML files or XML documents in Web pages and frames. The XML Checkpoint option is supported for the Web add-in environment &amp;amp; for all add-inenvironments.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;Keyword: QTP Interview Questions, FAQ QTP&lt;/span&gt;&lt;/strong&gt;</description><link>http://quicktesthp.blogspot.com/2008/10/qtp-interview-question-bank-part-10.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3132703535514457596.post-8420939038239698017</guid><pubDate>Wed, 08 Oct 2008 04:52:00 +0000</pubDate><atom:updated>2008-10-08T13:02:55.040+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions - QTP</category><title>QTP - Interview Question Bank : Part 9</title><description>&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;Q. 81: What is the use of Keyword View in QTP?=====================================&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;The Keyword View enables you to create and view the steps of your test in a modular, table format. Each step is a row in the Keyword View that is comprised of individual, modifiable parts. You create and modify steps by selecting items and operations in the Keyword View and entering information as required. Each step is automatically documented as youcomplete it, enabling you to view a description of your test in understandable sentences.&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;&lt;br /&gt;===================================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;Q. 82: What are the Conditional and Loop Statements used in the Keyword View in QTP?&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;===================================================&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Using conditional statements, you can incorporate decision making into the tests. Using loop statements, you can run a group of steps repeatedly, either while or until a condition is true. You can also use loop statements to repeat a group of steps a specific number of times. A few conditional &amp;amp; Loop statements are given below:&lt;br /&gt;1) If...Then statement&lt;br /&gt;2) ElseIf...Then statement&lt;br /&gt;3) Else statement&lt;br /&gt;4) While...Wend statement&lt;br /&gt;5) For...Next statement&lt;br /&gt;6) Do...While statement&lt;br /&gt;7) Do...Until statement&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=================================================&lt;br /&gt;Q. 83: What is the use of a Comment in the Comment cell of a step in QTP?&lt;br /&gt;=================================================&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;A Comment is free text entry which can help improve readability and make a test easier to update. For example,you may want to add a comment step at the beginning of each action to specify what that section includes.&lt;br /&gt;&lt;br /&gt;QTP does not process comments when it runs a test.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;============================================&lt;br /&gt;Q. 84: What are Nesting Actions &amp;amp; what is the use of them?============================================&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Sometimes you may want to call an action from within an action. This is called nesting. By nesting actions, you can:&lt;br /&gt;&lt;br /&gt;1) Maintain the modularity of your test.&lt;br /&gt;2) Run one or more actions based on the results of a conditional statement.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=============================================&lt;br /&gt;Q. 85: Splitting Actions option is not available under what circumstances in QTP?=============================================&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;You cannot split an action, and the option is disabled when:&lt;br /&gt;1) An external action is selected&lt;br /&gt;2) The first step of an action is selected&lt;br /&gt;3) You are working with a read-only test&lt;br /&gt;4) Recording a test&lt;br /&gt;5) Running a test&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=========================================&lt;br /&gt;Q. 86: What is the use of Action Parameters in QTP?=========================================&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Action parameters enable you to transfer input values from your test to a top-level action, from a parent action to a nested action, or from an action to a sibling action that occurs later in the test.&lt;br /&gt;&lt;br /&gt;You can use action parameters in any step in your action including function calls.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;&lt;br /&gt;===================================================&lt;br /&gt;Q. 87: What are the various types of Exit Action Statements in QTP?===================================================&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;There are four types of exit action statements you can use:&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;1) ExitAction:&lt;/span&gt;&lt;/strong&gt; Exits the current action, regardless of its iteration attributes.&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;2) ExitActionIteration:&lt;/span&gt;&lt;/strong&gt; Exits the current iteration of the action.&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;3) ExitRun:&lt;/span&gt;&lt;/strong&gt; Exits the test, regardless of its iteration attributes.&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;4) ExitGlobalIteration:&lt;/span&gt;&lt;/strong&gt; Exits the current global iteration.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=====================================&lt;br /&gt;Q. 88: What is the use of check points in QTP?=====================================&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;A checkpoint is a verification point that compares a current value for a specified property with the expected value for that property. This enables you to identify whether your application is functioning correctly.&lt;br /&gt;&lt;br /&gt;When you run the test, QTP compares the expected results of the checkpoint to the current results. If the results do not match, the checkpoint fails. You can view the results of the checkpoint in the Test Results window.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;==================================================&lt;br /&gt;Q. 89: What are the situations best suited for using an existing Check Point?==================================================&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;1) If each page of your application contains your organization’s logo, you can reuse a bitmap checkpoint to verify each occurrence in the application.&lt;br /&gt;&lt;br /&gt;2) If your application contains multiple edit boxes, you can reuse a checkpoint to confirm the enabled status of these edit boxes throughout your test.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;===================================================&lt;br /&gt;Q. 90: What is the reason that &quot;Add Existing Checkpoint&quot; dialog box is not visible?===================================================&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&quot;Add Existing Checkpoint&quot; dialog box option is available only if at least one of the object repositories associated with the current action (including the local object repository) contains at least one checkpoint.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;Keyword: QTP Interview Questions, FAQ QTP&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;</description><link>http://quicktesthp.blogspot.com/2008/10/qtp-interview-question-bank-part-9.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3132703535514457596.post-651484401915760212</guid><pubDate>Wed, 08 Oct 2008 04:35:00 +0000</pubDate><atom:updated>2008-11-19T10:02:09.290+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions - QTP</category><title>QTP - Interview Question Bank : Part 8</title><description>&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;Q. 71: What are the various types of objects identified by the comparison tool in QTP?&lt;br /&gt;================================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;1) Identical:&lt;/span&gt;&lt;/strong&gt; Objects that appear in both object repository files. There is no difference in their name or in their properties.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;2) Matching description, different name:&lt;/span&gt;&lt;/strong&gt; Objects that appear in both object repository files that have different names, but the same description properties and values.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;3) Similar description:&lt;/span&gt;&lt;/strong&gt; Objects that appear in both object repository files that have similar, but not identical, description properties and values. One of the objects always has a subset of the properties set of the other object. This implies that it is likely to be a less detailed description of the same object. For example, an object named Button_1 in the second object repository has the same description properties and values as an object named Button_1 in the first object repository, but also has additional properties and values.&lt;br /&gt;&lt;br /&gt;Objects that do not have a description, such as Page or Browser objects, are compared by name only. If the same object is contained in both the object repositories but with different names, they will be shown in the object repositories as two separate objects.&lt;br /&gt;&lt;br /&gt;4) Unique to first file, or Unique to second file. Objects that appear in only one of the object repository files.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=================================================&lt;br /&gt;Q. 72: What are the situations best suited to Recording in QTP?&lt;br /&gt;=================================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;Recording can be useful in the following situations:&lt;br /&gt;&lt;br /&gt;# Recording helps novice QuickTest users learn how QTP interprets the operations you perform on your application, and how it converts them to QTP objects and built-in operations.&lt;br /&gt;&lt;br /&gt;# Recording can be useful for more advanced QTP users when working with a new application or major new features of an existing application (for the same reasons described above). Recording is also helpful while developing functions that incorporate built-in QTP keywords.&lt;br /&gt;&lt;br /&gt;# Recording can be useful when you need to quickly create a test that tests the basic functionality of an application or feature, but does not require long-term maintenance.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;===================================================&lt;br /&gt;Q. 73: What are the advantages of Keyword Driven testing in QTP?&lt;br /&gt;===================================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;1) Keyword-driven testing enables you to design your tests at a business level rather than at the object level.&lt;br /&gt;&lt;br /&gt;2) By incorporating technical operations, such as a synchronization statement that waits for client-server communications to finish, into higher level keywords, tests are easier to read and easier for less technical application testers to maintain when the application changes.&lt;br /&gt;&lt;br /&gt;3) Keyword-driven testing naturally leads to a more efficient separation between resource maintenance and test maintenance. This enables the automation experts to focus on maintaining objects and functions while application testers focus on maintaining the test structure and design.&lt;br /&gt;&lt;br /&gt;4) When you record tests, you may not notice that new objects are being added to the local object repository. This may result in many testers maintaining local object repositories with copies of the same objects. When using a keyword-driven methodology, you select the objects for your steps from the existing object repository. When you need a new object, you can add it to your local object repository temporarily, but you are also aware that you need to add it to the shared object repository for future use.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=========================================&lt;br /&gt;Q. 74: What are Absolute and Relative Paths in QTP?&lt;br /&gt;=========================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;You can save QuickTest resources, such as shared object repositories, function libraries, recovery scenarios or environments, using absolute or relative paths.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;1) An absolute path:&lt;/span&gt;&lt;/strong&gt; Describes the full path to a specific file starting from a fixed location such as the root directory, or the drive on which the file is located, and contains all the other sub-directories in the path. An absolute path always points to the specified file, regardless of the current directory.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;2) A relative path:&lt;/span&gt;&lt;/strong&gt; Describes the path to a specific file starting from a given directory, and is generally only a portion of the absolute path. A relative path therefore specifies the location of the file relative to the given location in the file system.&lt;br /&gt;&lt;br /&gt;Using relative paths means that the paths remain valid when files or folders containing files are moved or copied to other locations or computers, provided that they are moved within the same folder structure. For this reason, we recommend that you use relative paths when saving resources in QTP.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;===============================================&lt;br /&gt;Q. 75: What are the situations best suited to keyword-driven methodology in QTP?&lt;br /&gt;===============================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;The keyword-driven methodology is especially useful for organizations that have both technical and less technical users because it offers a clear division of automation tasks. This enables a few experts to maintain the resource framework while less technical users design and maintain automated test steps. Additionally, once the basic infrastructure is in place, both types of users can often do their tasks simultaneously.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;===============================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;Q. 76: What are the various categories of output values in QTP?&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;===============================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style=&quot;color:#333333;&quot;&gt;we can create following categories of output values:&lt;br /&gt;&lt;br /&gt;1) Standard output values&lt;br /&gt;2) Text and text area output values&lt;br /&gt;3) Table output values&lt;br /&gt;4) Database output values&lt;br /&gt;5) XML output values&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000099;&quot;&gt;&lt;strong&gt;=================================================&lt;br /&gt;Q. 77: How do you analyze your application to determine your testing needs using QTP?.&lt;br /&gt;=================================================&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;1) Determine the development environments that QuickTest needs to support:Your application comprises of windows containing a hierarchy of objects that were created in one or more development environments. QTP provides support for these environments using add-ins. You load QTP add-ins when QTP opens by using the Add-in Manager dialog box. You can check which add-ins are loaded by choosing Help &gt; About QuickTest Professional.&lt;br /&gt;&lt;br /&gt;2) Prepare the information that QTP needs to identify objects in your application and to open your application at the beginning of a run session. You need to know the URL, the executable file name and path, or other command-line information. Later, you will enter this in Record and Run Settings dialog box.&lt;br /&gt;&lt;br /&gt;3) Navigate through your application from a customer’s perspective and perform the tasks that customers might perform. You create an action for each sub-process, or task, a customer might perform. Each process you perform in your application will be represented as a test in QTP. You can create your tests now.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;===================================================&lt;br /&gt;Q. 78: In what situations recording mechanism shall be useful in creating the tests in QTP?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;===================================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;1) You are new to QTP and want to learn how QTP interprets the operations you perform on your application and how it converts them to QTP objects and built-in operations.&lt;br /&gt;&lt;br /&gt;2) You need to quickly create a test that tests the basic functionality of an application or feature, and the test does not require long-term maintenance.&lt;br /&gt;&lt;br /&gt;3) You are working with a new application or with major new features of an existing application, and you want to learn how QTP interacts with the application.&lt;br /&gt;&lt;br /&gt;4) You are developing functions that incorporate built-in QTP keywords.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;==========================================&lt;br /&gt;Q. 79: What are the various recording modes in QTP?==========================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;1) Normal or the default recording mode:&lt;/span&gt;&lt;/strong&gt; This records the objects in your application and the operations performed on them. This mode takes full advantage of the QTP object model, recognizing the objects in your application regardless of their location on the screen.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;2) Analog Recording:&lt;/span&gt;&lt;/strong&gt; This enables you to record the exact mouse and keyboard operations you perform in relation to either the screen or the application window. In this recording mode, QTP records and tracks every movement of the mouse as you drag the mouse around a screen or window.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;3) Low Level Recording:&lt;/span&gt;&lt;/strong&gt;This enables you to record on any object in your application, whether or not QTP recognizes the specific object or the specific operation. This mode records at the object level and records all run-time objects as Window or WinObject test objects.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;===================================================&lt;br /&gt;Q. 80: How can we switch to Low Level Recording mode while editing a test?===================================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;You can switch to Low Level Recording mode only while recording a test. The option is not available while editing a test.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;Keyword: QTP Interview Questions, FAQ QTP&lt;/span&gt;&lt;/strong&gt;</description><link>http://quicktesthp.blogspot.com/2008/10/qtp-interview-question-bank-part-8.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3132703535514457596.post-8095912095396506769</guid><pubDate>Tue, 07 Oct 2008 18:21:00 +0000</pubDate><atom:updated>2008-10-08T00:30:50.781+05:30</atom:updated><title>Usage of &amp;_ in QTP Script</title><description>We use &amp;amp;_ to separate multiple lines inside our script whom we want to execute as a single command by clubbing together. Lets see the below mentioned example to make the point more clearer.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7XcGafDb-cn6wTUsvGw91_YqSXbP92IwokGcsJDxW1NLXQPsD0VtwkXEzGjGRBi4jY9MDjsbQS1LDu-pZpNA0e9PLTnQFlCB1LC9MfXrYs4dTVkrnR2QF1YZYyaszO5DcMyTGIXBocivZ/s1600-h/QTP.JPG&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7XcGafDb-cn6wTUsvGw91_YqSXbP92IwokGcsJDxW1NLXQPsD0VtwkXEzGjGRBi4jY9MDjsbQS1LDu-pZpNA0e9PLTnQFlCB1LC9MfXrYs4dTVkrnR2QF1YZYyaszO5DcMyTGIXBocivZ/s400/QTP.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5254481820925803250&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;As you must have observed above, the character “&amp;amp;” is used to concatenate the strings while the character “_” is used to concatenate multiple lines. So on combining these two characters ie “&amp;amp;_” we are instructing QTP to concatenate strings spanning across multiple lines.&lt;br /&gt;&lt;br /&gt;We could have wrote the “f.Write…………&lt;/html&gt;” in single line but it would have been very hard to read.&lt;br /&gt;&lt;br /&gt;A more simple example to illustrate the usage can be:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Browser(“QTP”).Page(“QTP”). WebEdit(&quot;TextField&quot;).Set “Expert”&amp;amp;_&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&quot;loves QTP&quot; &amp;amp;_&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&quot;Any Doubts?&quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Keywords: QTP&lt;/span&gt;</description><link>http://quicktesthp.blogspot.com/2008/10/usage-of-in-qtp-script.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7XcGafDb-cn6wTUsvGw91_YqSXbP92IwokGcsJDxW1NLXQPsD0VtwkXEzGjGRBi4jY9MDjsbQS1LDu-pZpNA0e9PLTnQFlCB1LC9MfXrYs4dTVkrnR2QF1YZYyaszO5DcMyTGIXBocivZ/s72-c/QTP.JPG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3132703535514457596.post-2453732930636849099</guid><pubDate>Tue, 30 Sep 2008 04:34:00 +0000</pubDate><atom:updated>2008-10-01T09:41:49.142+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions - QTP</category><title>QTP - Interview Question Bank : Part 7</title><description>&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;Q. 61: How can we perform Merge Operations among various object repositories?======================================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;The Object Repository Merge Tool enables you to merge test objects from the local object repository of one or more actions to a shared object repository using the Update from Local Repository option in the Object Repository Manager.&lt;br /&gt;&lt;br /&gt;For example, you may have learned test objects locally in a specific action in your test and want to add them to the shared object repository so they are available to all actions in different tests that use that object repository. You can also use the Object Repository Merge Tool to merge two shared object repositories into a single shared object repository.&lt;br /&gt;&lt;br /&gt;You open the Object Repository Merge Tool by choosing Tools &gt; Object Repository Merge Tool in the Object Repository Manager.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;==================================================&lt;br /&gt;Q. 62: How can we perform Import &amp;amp; Export Operations among various object repositories?&lt;br /&gt;==================================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;You can import and export object repositories from and to XML files. XML provides a structured, accessible format that enables you to make changes to object repositories using the XML editor of your choice and then import them back into QTP.&lt;br /&gt;&lt;br /&gt;You can import and export files either from and to the file system or a Quality Center project.&lt;br /&gt;&lt;br /&gt;You can import an XML file as an object repository. The XML file can either be an object repository that you exported to XML format using the Object Repository Manager, or an XML file created using a tool such as QTP Siebel Test Express or a custom built utility. You must adhere to the XML structure and format.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;===============================================&lt;br /&gt;Q. 63: How can we Integrate QuickTest with Quality Center?===============================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;You integrate QTP with Quality Center using the Quality Center Connectivity Add-in. This add-in is installed on your QTP computer automatically when you connect QTP to Quality Center using the Quality Center Connection dialog box. You can also install it manually from the Quality Center Add-ins page (available from the Quality Center main screen) by choosing Quality Center Connectivity.&lt;br /&gt;&lt;br /&gt;integrating QTP with Quality Center enables you to store and access QTP tests and function libraries in a Quality Center project, when QTP is connected to Quality Center.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=======================================&lt;br /&gt;Q. 64: What is the use of Template Tests in QTP?=======================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;Template tests serve as the basis for all QTP tests created in Quality Center. A template test is a QTP test that contains default test settings. For example, a template test might specify the QTP add-ins, associated function libraries, and recovery scenarios that are associated with a test. You can modify these test settings in the Test Settings dialog box (File &gt; Settings) in QuickTest.&lt;br /&gt;&lt;br /&gt;In addition to default test settings, a template test can also contain any comments or steps you want to include with all new QTP tests created in Quality Center. For example, you may want to add a comment notifying users which add-ins are associated with the template test, or you may want to add a step that opens a specific Web page or application at the beginning of every test. Any steps or comments you add to a template test are included in all new tests created in Quality Center that are based on that template test.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;============================================&lt;br /&gt;Q. 65: How can we create a QTP Test in Quality Center?============================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;In Quality Center, you create QuickTest tests in the Test Plan module. When you create a QuickTest test, you apply a template test to it. You can choose either the default template test stored on your QuickTest client, or a template test that is saved in your Quality Center project.&lt;br /&gt;If you do not have any template tests saved in your Quality Center project, or if you choose &lt;none&gt;in the Template box, Quality Center uses the settings defined in the template test that was installed with the QTP Add-in for Quality Center on your Quality Center client.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;======================================&lt;br /&gt;Q. 66: What is Business Process Testing model?======================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;The Business Process Testing model is role-based, allowing non-technical Experts working in Quality Center to collaborate effectively with Automation Engineers working in QTP.&lt;br /&gt;&lt;br /&gt;Non-technical Subject Matter Experts define and document business processes, business components, and business process tests, while Automation Engineers define the required resources and settings, such as shared object repositories, function libraries, and recovery scenarios. Together, they can build, data-drive, document, and run business process tests, without requiring programming knowledge on the part of the Non-technical Subject Matter Expert.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;==================================================&lt;br /&gt;Q. 67: What is the role of Subject Matter Expert in the Business Process Testing model?&lt;br /&gt;==================================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;The Subject Matter Expert has specific knowledge of the application logic, a high-level understanding of the entire system, and a detailed understanding of the individual elements and tasks that are fundamental to the application being tested.&lt;br /&gt;&lt;br /&gt;This enables the Subject Matter Expert to determine the operating scenarios or business processes that must be tested and identify the key business activities that are common to multiple business processes.&lt;br /&gt;&lt;br /&gt;During the design phase, the Subject Matter Expert works with the Automation Engineer to identify the resources and settings needed to automate the components, enabling the Automation Engineer to prepare them.&lt;br /&gt;&lt;br /&gt;The Subject Matter Expert configures the values used for business process tests, runs them in test sets, and reviews the results. The Subject Matter Expert is also responsible for maintaining the testing steps for each of the individual business components.&lt;br /&gt;&lt;br /&gt;While defining components, Subject Matter Experts continue collaborating with the Automation Engineer.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;==================================================&lt;br /&gt;Q. 68: What is the role of Automation Engineer in the Business Process Testing model?&lt;br /&gt;==================================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;The Automation Engineer is an expert in using an automated testing tool, such as QTP. The Automation Engineer works with the Subject Matter Expert to identify the resources that are needed for the various business process tests.&lt;br /&gt;&lt;br /&gt;The Automation Engineer then prepares the resources and settings required for testing the features associated with each specific component, and stores them in an application area within the same Quality Center project used by the Subject Matter Experts who create and run the business process tests for the specific application.&lt;br /&gt;&lt;br /&gt;The Automation Engineer uses QTP features and functionality to create these resources from within QTP.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;===================================================&lt;br /&gt;Q. 69: What are the Differences Between Components and Tests?===================================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;# A component is a single entity. It cannot contain multiple actions or have calls to other actions or to other components.&lt;br /&gt;&lt;br /&gt;# When working with components, all external files are stored in the Quality Center project to which you are currently connected.&lt;br /&gt;&lt;br /&gt;# The name of the component node in the Keyword View is the same as the saved component. You cannot rename the node.&lt;br /&gt;&lt;br /&gt;# Business components are created in the Keyword View, not the Expert View.&lt;br /&gt;&lt;br /&gt;# You add resources via the component’s application area, and not directly to the component.&lt;br /&gt;&lt;br /&gt;# Components use custom keywords created in function libraries to perform operations, such as verifying property values and opening the application you are testing.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;======================================================&lt;br /&gt;Q. 70: How can we compare objects among two object repositories?======================================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;In QTP, we can compare existing assets from two object repositories using the Object Repository Comparison Tool.&lt;br /&gt;&lt;br /&gt;The tool is accessible from the Object Repository Manager, and enables you to compare different object repository resources, or different versions of the same object repository resource, and identify similarities, variations, or changes.&lt;br /&gt;&lt;br /&gt;Differences between objects in the two object repository files, named the First and Second files, are identified according to default rules. During the comparison process, the object repository files remain unchanged.&lt;br /&gt;&lt;br /&gt;After the compare process, the Comparison Tool provides a graphic presentation of the objects in the object repositories, which are shown as nodes in a hierarchy.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Keyword: QTP Interview Questions, FAQ QTP&lt;/strong&gt;</description><link>http://quicktesthp.blogspot.com/2008/09/qtp-interview-question-bank-part-7.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3132703535514457596.post-7760280426150707045</guid><pubDate>Tue, 30 Sep 2008 04:14:00 +0000</pubDate><atom:updated>2008-10-01T09:39:01.931+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions - QTP</category><title>QTP - Interview Question Bank : Part 6</title><description>&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;Q. 51: What is the use of mapping Repository Parameter Values in QTP&lt;br /&gt;====================================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;You can map repository parameters that are used in shared object repositories that are associated with your action. Mapping a repository parameter to a value or parameter specifies the property values used toidentify the test object during a run session. You can specify that the property value is taken from a constant value, or parameterize it using a Data Table, random number, environment, or test parameter.&lt;br /&gt;&lt;br /&gt;You can map each repository parameter as required in each test that has an associated object repository containing repository parameters.&lt;br /&gt;&lt;br /&gt;If you do not map a repository parameter, the default value that was defined with the parameter, if any, is used during the action run. If the parameter is unmapped, meaning no default value was specified for it, the test run may fail if a test object cannot be identified because it has an unmapped parameter value.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;===========================================&lt;br /&gt;Q. 52: What are the various Object Properties in QTP?===========================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;QTP has a predefined set of properties that it learns for each test object. If these mandatory property values are not sufficient to uniquely identify a learned object, QTP can add some assistive properties and/or an ordinal identifier to create a unique description.&lt;br /&gt;&lt;br /&gt;Mandatory properties are properties that QTP always learns for a particular test object class.&lt;br /&gt;&lt;br /&gt;Assistive properties are properties that QTP learns only if the mandatory properties that QTP learns for a particular object in your application are not sufficient to create a unique description. If several assistive properties are defined for an object class, then QTP learns one assistive property at a time, and stops as soon as it creates a unique description for the object. If QTP does learn assistive properties, those properties are added to the test object description.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=====================================================&lt;br /&gt;Q. 53: What are the various types of ordinal identifiers used by QTP to identify an object?&lt;br /&gt;=====================================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#993300;&quot;&gt;1) Index Property:&lt;/span&gt;&lt;/strong&gt; Indicates the order in which the object appears in the application code relative to other objects with an otherwise identical description.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#993300;&quot;&gt;2) Location Property:&lt;/span&gt;&lt;/strong&gt; Indicates the order in which the object appears within the parent window, frame, or dialog box relative to other objects with an otherwise identical description.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#993300;&quot;&gt;3) CreationTime Property:&lt;/span&gt;&lt;/strong&gt; (For Browser object only.) Indicates the order in which the browser was opened relative to other open browsers with an otherwise identical description.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;===================================================&lt;br /&gt;Q. 54: What is Index Property for identifying the objects in QTP?===================================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;While learning an object, QTP can assign a value to the test object’s Index property to uniquely identify the object. The value is based on the order in which the object appears within the source code. The first occurrence is 0.&lt;br /&gt;&lt;br /&gt;Index property values are object-specific. Therefore, if you use Index:=3 to describe a WebEdit test object, QTP searches for the fourth WebEdit object in the page.&lt;br /&gt;&lt;br /&gt;However, if you use Index:=3 to describe a WebElement object, QTPt searches for the fourth Web object on the page—regardless of the type—because the WebElement object applies to all Web objects.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#000099;&quot;&gt;&lt;strong&gt;=====================================================&lt;br /&gt;Q. 55: What is Location Property for identifying the objects in QTP?=====================================================&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;While learning an object, QTP can assign a value to the test object’s Location property to uniquely identify the object. The value is based on the order in which the object appears within the window, frame, or dialog box, in relation to other objects with identical properties. The first occurrence of the object is 0. Values are assigned in columns from top to bottom, and left to right.&lt;br /&gt;&lt;br /&gt;Location property values are object-specific. Therefore, if you use Location:=3 to describe a WinButton test object, QTP searches from top to bottom, and left to right for the fourth WinButton object in the page. However, if you use Location:=3 to describe a WinObject object, QuickTest searches from top to bottom, and left to right for the fourth standard object on the page— regardless of the type—because the WinObject object applies to all standard objects.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=====================================================&lt;br /&gt;Q. 56: What is Creation Time Property for identifying the objects in QTP?&lt;br /&gt;=====================================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;While learning a browser object, if QTP is unable to uniquely identify the object according to its test object description, it assigns a value to the CreationTime test object property. This value indicates the order in which the browser was opened relative to other open browsers with an otherwise identical description. The first browser that opens receives the value CreationTime = 0.&lt;br /&gt;&lt;br /&gt;During the run session, if QTP is unable to identify a browser object based solely on its test object description, it examines the order in which the browsers were opened, and then uses the CreationTime property to identify the correct one.&lt;br /&gt;&lt;br /&gt;For example, if you record a test on three otherwise identical browsers that are opened at 9:01 pm, 9:03 pm, and 9:05 pm, QuickTest assigns the CreationTime values, as follows: CreationTime = 0 to the 9:01 am browser, CreationTime = 1 to the 9:03 am browser, and CreationTime = 2 to the 9:06 am browser.&lt;br /&gt;&lt;br /&gt;At 10:30 pm, when you run your test, suppose the browsers are opened at 10:31 pm, 10:33 pm, and 10:34 pm. QTP identifies the browsers, as follows: the 10:31 pm browser is identified with the browser test object with CreationTime = 0, 10:33 pm browser is identified with the test object with CreationTime = 1, 10:34 pm browser is identified with the test object with CreationTime = 2.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;===========================================&lt;br /&gt;Q. 57: What is the Smart Identification Process of QTP&lt;br /&gt;===========================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;If QTP activates the Smart Identification mechanism during a run session, it follows the following process to identify the object:&lt;br /&gt;&lt;br /&gt;1) QTP “forgets” the learned test object description and creates a new object candidate list containing the objects (within the object’s parent object) that match all of the properties defined in the Base Filter Properties list.&lt;br /&gt;&lt;br /&gt;2) QTP filters out any object in the object candidate list that does not match the first property listed in the Optional Filter Properties list. The remaining objects become the new object candidate list.&lt;br /&gt;&lt;br /&gt;3) QTP evaluates the new object candidate list:&lt;br /&gt;# If the new object candidate list still has more than one object, QTP uses the new (smaller) object candidate list to repeat step 2 for the next optional filter property in the list.&lt;br /&gt;&lt;br /&gt;# If the new object candidate list is empty, QTP ignores this optional filter property, returns to the previous object candidate list, and repeats step 2 for the next optional filter property in the list.&lt;br /&gt;&lt;br /&gt;# If the object candidate list contains exactly one object, then QTP concludes that it has identified the object and performs the statement containing the object.&lt;br /&gt;&lt;br /&gt;4) QTP continues the process described in steps 2 and 3 until it either identifies one object, or runs out of optional filter properties to use. If, after completing the Smart Identification elimination process, QTP still cannot identify the object, then QTP uses the learned description plus the ordinal identifier to identify the object. If the combined learned description and ordinal identifier are not sufficientto identify the object, then QuickTest stops the run session and displays aRun Error message.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;======================================================&lt;br /&gt;Q. 58: What happens in case Smart Identification fails to identify the object in QTP?&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;======================================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;If the Smart Identification mechanism cannot successfully identify the object, QTP uses the learned description plus the ordinal identifier to identify the object.&lt;br /&gt;If the object is still not identified, the test fails and a normal failed step is displayed in the results.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=============================================&lt;br /&gt;Q. 59: What is the use of Repository Parameters in QTP?=============================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;Repository parameters enable you to specify that certain property values should be parameterized, but leave the actual parameterization to be defined in each test that is associated with the object repository that contains the parameterized test object property values.&lt;br /&gt;&lt;br /&gt;Repository parameters are useful when you want to create and run tests on an object that changes dynamically. An object may change dynamically if it is frequently updated in the application, or if its property values are set using dynamic content, for example, from a database.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=================================================&lt;br /&gt;Q. 60: How can we locate test objects in an object repository?=================================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;You can search for a specific test object in your object repository in many ways.&lt;br /&gt;You can search for a test object according to its type. For example, you can search for a specific edit box, or you can point to an object in your application to automatically highlight that same object in your repository.&lt;br /&gt;&lt;br /&gt;You can replace specific property values with other property values. For example, you can replace a property value userName with the value user name.&lt;br /&gt;&lt;br /&gt;You can also select an object in your object repository and highlight it in your application to check which object it is.&lt;br /&gt;&lt;br /&gt;After making sure that your shared object repository is the active window, you locate an object in a shared object repository in the same way as you locate it in a local object repository. If you want to replace property values, you must also make sure that the object repository is editable.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Keyword: QTP Interview Questions, FAQ QTP&lt;/strong&gt;&lt;/p&gt;</description><link>http://quicktesthp.blogspot.com/2008/09/interview-question-bank.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3132703535514457596.post-2971872661363310701</guid><pubDate>Sat, 27 Sep 2008 04:09:00 +0000</pubDate><atom:updated>2008-10-01T09:30:51.383+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions - QTP</category><title>QTP - Interview Question Bank : Part 5</title><description>&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;Q. 41: What are the various utilities and tools available in QTP?&lt;br /&gt;==================================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;Tools Menu contains the following utilities and tools which are helpful in the testing process:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;# Action Conversion Tool:&lt;/span&gt;&lt;/strong&gt; Enables you to convert test actions that were created using QTP to scripted components for use in business process testing.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;# Additional Installation Requirements:&lt;/span&gt;&lt;/strong&gt; Opens the Additional Installation Requirements dialog box, which displays any prerequisite software that you must install or configure to work with QTP.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;# Business Component Upgrade Tool:&lt;/span&gt;&lt;/strong&gt; Opens the Business Component Upgrade Tool. If you are connected to a Quality Center project, this tool enables you to upgrade all of the business components in a Quality Center project, from an earlier component version to the format required by the current version.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;# HP Micro Player:&lt;/span&gt;&lt;/strong&gt; Opens the HP Micro Player, which enables you to view captured movies of a run session without opening QuickTest.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;# License Validation Utility:&lt;/span&gt;&lt;/strong&gt; Opens the License Validation utility, which enables you to retrieve and validate license information.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;# Password Encoder:&lt;/span&gt;&lt;/strong&gt; Opens the Password Encoder dialog box, which enables you to encode passwords. You can use the resulting strings as method arguments or Data Table parameter values (tests only).&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;# QTP Script Editor:&lt;/span&gt;&lt;/strong&gt; Opens the QTP Script Editor, which enables you to open and modify the scripts of multiple tests and function libraries, simultaneously.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;# Register New Browser Control:&lt;/span&gt;&lt;/strong&gt; Opens the Register Browser Control Utility, which enables you to register your browser control application so that QTP recognizes your Web object when recording or running tests.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;# Remote Agent:&lt;/span&gt;&lt;/strong&gt; Activates the QuickTest Remote Agent, which enables you to configure how QuickTest behaves when a test is run by a remote application such as Quality Center.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;# Save and Restore Settings:&lt;/span&gt;&lt;/strong&gt; Opens the Save and Restore Settings dialog box, which enables you to save your existing configurations before uninstalling an old version, and then restore them after installing a new version.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;# Silent Test Runner:&lt;/span&gt;&lt;/strong&gt; Opens the Silent Test Runner dialog box, which enables you to run a QTP test the way it is run from LoadRunner and Business Availability Center.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;# Test Batch Runner:&lt;/span&gt;&lt;/strong&gt; Opens the Test Batch Runner dialog box, which enables you to set up QTP to run several tests in succession.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;# Test Results Deletion Tool.&lt;/span&gt;&lt;/strong&gt; Opens the Test Results Deletion Tool dialog box, which enables you to delete unwanted or obsolete results from your system according to specific criteria that you define.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;============================================&lt;br /&gt;Q. 42: What is the concept of Test Object Model in QTP?============================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;QTP tests your dynamically changing application by learning and identifying test objects and their expected properties and values. To do this, QTP analyzes each object in your application in much the same way that a person would look at a photograph and remember its details.&lt;br /&gt;&lt;br /&gt;The test object model is a large set of object types or classes that QTP uses to represent the objects in your application. Each test object class has a list of properties that can uniquely identify objects of that class and a set of relevant methods that QuickTest can learn about it.&lt;br /&gt;A test object is an object that QTP creates in the test to represent the actual object in your application. QTP stores information on the object that will help it identify and check the object during the run session.&lt;br /&gt;&lt;br /&gt;A run-time object is the actual object in your application on which methods are performed during the run session.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;====================================================&lt;br /&gt;Q.43: Please explain some real world scenario explaining Object Learning process of QTP?&lt;br /&gt;====================================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;QTP learns objects just as you would. For example, suppose as part of an experiment, Alex is told that he will be shown a photograph of a picnic scene for a few seconds during which someone will point out one item in the picture. Alex is told that he will be expected to identify that item again in identical or similar pictures one week from today.&lt;br /&gt;&lt;br /&gt;Before he is shown the photograph, Alex begins preparing himself for the test by thinking about which characteristics he wants to learn about the item that the tester indicates. Obviously, he will automatically note whether it is a person, inanimate object, animal, or plant. Then, if it is a person, he will try to commit to memory the gender, skin color, and age. If it is an animal, he will try to remember the type of animal, its color, and so forth.&lt;br /&gt;&lt;br /&gt;The tester shows the scene to Alex and points out one of three children sitting on a picnic blanket. Alex notes that it is a Caucasian girl about 8 years old. In looking at the rest of the picture, however, he realizes that one of the other children in the picture could also fit that description. In addition to learning his planned list of characteristics, he also notes that the girl he is supposed to identify has long, brown hair.&lt;br /&gt;&lt;br /&gt;Now that only one person in the picture fits the characteristics he learned, he is fairly sure that he will be able to identify the girl again, even if the scene the tester shows him next week is slightly different.&lt;br /&gt;&lt;br /&gt;Since he still has a few moments left to look at the picture, he attempts to notice other, more subtle differences between the child he is supposed to remember and the others in the picture—just in case.&lt;br /&gt;&lt;br /&gt;If the two similar children in the picture appeared to be identical twins, Alex might also take note of some less permanent feature of the child, such as the child’s position on the picnic blanket. That would enable him to identify the child if he were shown another picture in which the children were sitting on the blanket in the same order.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=============================================&lt;br /&gt;Q. 44: What is the method used by QTP to learn objects?=============================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;QTP “looks” at the object being learned and stores it as a test object, determining in which test object class it fits. In the same way, Alex immediately checked whether the item was a person, animal, plant, or inanimate object. QTP might classify the test object as a standard Windows dialog box (Dialog), a Web button (WebButton), or a Visual Basic scroll bar object (VbScrollBar), for example.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Then, for each test object class, QTP has a list of mandatory properties that it always learns; similar to the list of characteristics that Alex planned to learn before seeing the picture. When QTP learns an object, it always learns these default property values, and then “looks” at the rest of the objects on the page, dialog box, or other parent object to check whether this description is enough to uniquely identify the object. If it is not, QTP adds assistive properties, one by one, to the description, until it has compiled a unique description; similar to when Alex added the hair length and color characteristics to his list. If no assistive properties are available, or if those available are not sufficient to create a unique description, QTP adds a special ordinal identifier, such as the object’s location on the page or in the source code, to create a unique description.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=================================&lt;br /&gt;Q. 45: What is Test Object Methodin QTP?&lt;br /&gt;=================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;It is a method that QTP recognizes as applicable to a particular test object. For example, the Click method is applicable to a WebButton test object. As you add steps to your test, you specify which method to perform on each test object. If you record steps, QTP records the relevant method as it is performed on an object.&lt;br /&gt;&lt;br /&gt;During a run session, QTP performs the specified test object method on the run-time object. Run-time object methods are the methods of the object in your application as defined by the object creator. You can access and perform run-time object methods using the Object property.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=======================================&lt;br /&gt;Q. 46: What are the Test object propertiesin QTP?=======================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;Test object properties are the properties whose values are captured from the objects in your application when QTP learns the object. QTP uses the values of these properties to identify run-time objects in your application during a run session.&lt;br /&gt;&lt;br /&gt;Property values of objects in your application may change dynamically each time your application opens, or based on certain conditions. You may need to modify the test object property values to match the run-time object property values. You can modify test object properties manually while designing your test, or use SetTOProperty statements during a run session.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;==================================================&lt;br /&gt;Q. 47: How to decide on whether to save the objects in Local or Shared Object Repositories?&lt;br /&gt;==================================================&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#990000;&quot;&gt;Local object repository is easiest to use when you are creating simple tests, especially under the following conditions:&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;# You have only one, or very few, tests that correspond to a given application, interface, or set of objects.&lt;br /&gt;# You do not expect to frequently modify object properties.&lt;br /&gt;# You generally create single-action tests.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;Shared object repository is the preferred option when:&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;# You are creating tests using keyword-driven methodologies (not by recording).&lt;br /&gt;# You have several tests that test elements of the same application, interface, or set of objects.&lt;br /&gt;# You expect the object properties in your application to change from time to time and/or you regularly need to update or modify object properties.&lt;br /&gt;# You often work with multi-action tests and regularly use the Insert Copy of Action and Insert Call to Action options.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#000099;&quot;&gt;&lt;strong&gt;================================================&lt;br /&gt;Q. 48: What are the possibilities of Exporting the data among various Object Repositories?&lt;br /&gt;================================================&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;When&lt;/span&gt; QTP learns a test object, it adds it to the local object repository &amp;amp; not to the shared object repository — unless the same test object already exists in an associated shared object repository. (In this case, QTP uses the existing information in the shared object repository.)&lt;br /&gt;&lt;br /&gt;You can export objects from the local object repository to a shared object repository. You can also export the local object repository and replace it with a shared object repository. This enables you to make the local objects accessible to other actions.&lt;br /&gt;&lt;br /&gt;You can also merge objects from the local object repository directly to a shared object repository that is associated with the same action. This can help reduce maintenance since you can maintain the objects in a single shared location, instead of multiple locations.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;===================================================&lt;br /&gt;Q. 49: What is the effect of restoring Default Properties for a Test Object in QTP?===================================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;When you restore the default properties, it restores the mandatory property set defined for the selected object class in the Object Identification dialog box.&lt;br /&gt;&lt;br /&gt;Any changes that you have made to the description property set for the test object will be overwritten. However, if property values were defined for any of the mandatory properties they are not modified.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;========================================&lt;br /&gt;Q. 50: What is the use of Ordinal Identifiers in QTP&lt;br /&gt;========================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;An ordinal identifier assigns a numerical value to a test object that indicates its order or location relative to other objects with an otherwise identical description (objects that have the same values for all properties).&lt;br /&gt;&lt;br /&gt;This ordered value provides a backup mechanism that enables QTP to create a unique description to recognize an object when the defined properties are not sufficient to do so. You can specify the ordinal identifier for test objects in the local object repository using the Object Repository window or Object Properties dialog box, and for test objects in the shared object repository using the Object Repository Manager.&lt;br /&gt;&lt;br /&gt;Keyword: QTP Interview Questions, FAQ QTP&lt;/p&gt;</description><link>http://quicktesthp.blogspot.com/2008/09/qtp-interview-question-bank-part-5.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3132703535514457596.post-2164536977624608611</guid><pubDate>Sat, 27 Sep 2008 03:55:00 +0000</pubDate><atom:updated>2008-10-01T09:25:52.015+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions - QTP</category><title>QTP - Interview Question Bank : Part 4</title><description>&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;Q. 31: What are the Environment Variables?&lt;br /&gt;===================================&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Environment variables are global variables available to all Actions&lt;br /&gt;# They can be used to run a test case on different environment&lt;br /&gt;# To add a new Environment variable go to Test -&gt; Settings…-&gt;Environment (Tab)&lt;br /&gt;# Environment variables are of two type:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;1. Built in environment variables:&lt;/span&gt;&lt;/strong&gt; Provide information about the system and the current test&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;2. User-Defined environment variables:&lt;/span&gt;&lt;/strong&gt; are added in the Environment tab of Test Settings. These are Read-only during the test run&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;============================================&lt;br /&gt;Q. 32: How many types of Parameters are there in QTP?============================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;There are two types of parameters:&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;1. Test parameters:&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;# These can be set in Test-&gt;Settings…-&gt;Parameters (Tab)&lt;br /&gt;# Test parameters value can be provided when replaying the test&lt;br /&gt;# Test arguments can be accessed in the test using TestArgs(&quot;&quot;)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;2. Action parameters :&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;# Used to pass parameters to Action&lt;br /&gt;# Output parameters can only be used when Action is being called for a single iteration&lt;br /&gt;# Ex - RunAction &quot;Login&quot;, oneIteration, &quot;TestUser&quot;, &quot;TestPass&quot;, out&lt;br /&gt;# A parameter can be accessed using Parameter(&quot;ParamName&quot;)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;================================&lt;br /&gt;Q. 33: What is Descriptive Programming?&lt;br /&gt;================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;Descriptive Programming is an alternate way of writing test cases without having objects in object repository&lt;br /&gt;&lt;br /&gt;Descriptive programming can be done in two ways&lt;br /&gt;1. Using Object description&lt;br /&gt;2. Using String description&lt;br /&gt;&lt;br /&gt;In Descriptive programming objects are identified by describing all the identification properties&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;===================================================&lt;br /&gt;Q. 34: After creating the test, what is the purpose of runing them?===================================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;1) To check your application: The test starts running from the first line in your test and stops at the end of the test. While running, QTP connects to your application and performs each operation in your test, including any checkpoints, such as checking any text strings, objects, tables, and so forth. If you parameterized your test with Data Table parameters, QTP repeats the test (or specific actions in your test) for each set of data values you defined.&lt;br /&gt;&lt;br /&gt;2) To debug your application: You can control your run session to help you identify and eliminate defects in your test. You can use the Step Into, Step Over, and Step Out commands to run your test step by step. You can begin your run session from a specific step in your test, or run the test until a specific step is reached. You can also set breakpoints to pause your test at predetermined points. You can view the value of variables in your test each time it stops at a breakpoint in the Debug Viewer.&lt;br /&gt;&lt;br /&gt;3) To update your application: You can run your test using Update Run Mode to update the property sets used for test object descriptions, the expected checkpoint values, the data available to retrieve in output values, and/or the Active Screen images and values.&lt;br /&gt;&lt;br /&gt;You can run your test using Maintenance Run Mode when you know that your application has changed, and you therefore expect that QTP will not be able to identify the objects in your test. When you run tests in Maintenance Run Mode, a wizard opens for steps that fail because an object could not be found in the application. The wizard then guides you through the steps of resolving the issue, and, after you resolve the issue, the run continues.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;==========================================&lt;br /&gt;Q. 35: What are the main stages of Testing with QTP?==========================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;Testing with QuickTest involves the following main stages:&lt;br /&gt;1) Planning&lt;br /&gt;2) Creating Tests&lt;br /&gt;3) Running Tests&lt;br /&gt;4) Analysing Results&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;===========================================&lt;br /&gt;Q. 36 : How can we do the Analysis of Results in QTP?===========================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;After you run your test, you can view the results.&lt;br /&gt;&lt;br /&gt;# View the results in the Test Results window: After you run your test, you can view the results of the run in the Test Results window. You can view a summary of your results as well as a detailed report. If you captured still images or movies of your application during therun, you can view these from the Test Results window.&lt;br /&gt;&lt;br /&gt;# Report defects detected during a run session: If you have access to Quality Center, the HP centralized quality solution, you can report the defects you discover to the project database. You can instruct QTP to automatically report each failed step in your test, oryou can report them manually from the Test Results window.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;================================&lt;br /&gt;Q. 37: What is Business Process Testing?&lt;br /&gt;================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;# Business Process Testing is a role-based testing model that enables Subject Matter Experts—who understand the various parts of the application being tested—to create business process tests in Quality Center. Automation Engineers—who are experts in QTP and automated testing—use QTP to define all of the resources and settings required to create business process tests.&lt;br /&gt;&lt;br /&gt;# Business Process Testing uses a keyword-driven methodology for testing, based on the creation and implementation of business components and business process tests. A business component is an easily-maintained, reusable unit comprising one or more steps that perform a specific task within an application.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;============================================&lt;br /&gt;Q. 38: What are Permissions Required to Run QuickTest Professional?============================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;You must have the following file system permissions:&lt;br /&gt;&lt;br /&gt;1) Full read and write permissions for all the files and folders under the folder in which QTP is installed&lt;br /&gt;&lt;br /&gt;2) Full read and write permissions to the Temp folder&lt;br /&gt;&lt;br /&gt;3) Read permissions to the Windows folder and to the System folder&lt;br /&gt;&lt;br /&gt;You must have the following registry key permissions:&lt;br /&gt;1) Full read and write permissions to all the keys under HKEY_CURRENT_USER\Software\Mercury Interactive&lt;br /&gt;&lt;br /&gt;2) Read and Query Value permissions to all the HKEY_LOCAL_MACHINE and HKEY_CLASSES_ROOT keys&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;======================================&lt;br /&gt;Q. 39: What is the role of Keyword view in QTP?======================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;The Keyword View enables you to create and view the steps of your test in a keyword-driven, modular, table format. The Keyword View is comprised of a table-like view, in which each step is a separate row in the table, and each column represents different parts of the steps. You can modify the columns displayed to suit your requirements.&lt;br /&gt;&lt;br /&gt;You create and modify tests by selecting items and operations in the Keyword View and entering information as required. Each step is automatically documented as you complete it, enabling you to view a description of your test steps in understandable English.&lt;br /&gt;&lt;br /&gt;Each operation performed on your application during a recording session is recorded as a row in the Keyword View.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;====================================&lt;br /&gt;Q. 40: What is the role of Expert view in QTP?====================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;In the Expert View, QTP displays each operation performed on your application in the form of a script, comprised of VBScript statements. The Expert View is a script editor with many script editing capabilities. For each object and method in an Expert View statement, a corresponding row exists in the Keyword View.&lt;br /&gt;&lt;br /&gt;Keyword: QTP Interview Questions, FAQ QTP&lt;/p&gt;</description><link>http://quicktesthp.blogspot.com/2008/09/q.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3132703535514457596.post-5380898707781536957</guid><pubDate>Sat, 27 Sep 2008 03:43:00 +0000</pubDate><atom:updated>2008-10-01T09:14:57.124+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions - QTP</category><title>QTP - Interview Question Bank : Part 3</title><description>&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;Q. 21: Where can we use a Function or an Action? ========================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;It all depends on the scenario.&lt;br /&gt;&lt;br /&gt;If you want to use the OR feature then you have to go for Action only. If the functionality is not about any automation script i.e. a function like getting a string between to specific characters, now this is something not specific to QTP and can be done on pure VB Script, so this should be done in a function and not an action. Code specific to QTP can also be put into an function using DP. Decision of using function/action depends on what any one would be comfortable using in a given situation.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;===================================================&lt;br /&gt;Q. 22: What is the difference between an Action and a Function? ===================================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;Action is a activity specific to QTP while functions are a generic thing which is a feature of VB Scripting. Action can have a object repository associated with it while a function can&#39;t. A function is just lines of code with some / none parameters and a single return value while an action can have more than one output parameters.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;================================================&lt;br /&gt;Q. 23: What are the various events available in the Recovery Scenario Manager? ================================================&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#990000;&quot;&gt;1) Application Crash:&lt;/span&gt;&lt;/strong&gt; This event is useful in handling crashed applications at runtime.&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;&lt;br /&gt;2) Pop Up Window:&lt;/span&gt;&lt;/strong&gt; This event is useful in managing various unwanted application windows, which get built-up at runtime.&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;&lt;br /&gt;3) Test Run Error:&lt;/span&gt;&lt;/strong&gt; This event is useful in handling VBScript statement errors at runtime.&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;&lt;br /&gt;4) Object State:&lt;/span&gt;&lt;/strong&gt; This event is useful in handling object related errors at runtime.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=========================================&lt;br /&gt;Q. 24: What are the Elements of Recovery Scenario?=========================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;Steps to handle the exceptions are&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;1) Trigger Event:&lt;/span&gt;&lt;/strong&gt; Is an unexpected event like appearance of a Pop-up window, object state, test run error causing application crash or interruption in our running session.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;2) Recovery Steps:&lt;/span&gt;&lt;/strong&gt; Constitutes a series of steps required to be performed to enable QTP to proceed further with the process of test after some trigger event has interrupted the run session. Examples of a recovery operation can be 1) A keyboard or mouse Operation like a Click over the &quot;OK&quot; button in the Pop-up window 2) Close Application Process 3) Function Call 4) Restarting the OS etc.&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;&lt;br /&gt;3) Post-Recovery Test Run:&lt;/span&gt;&lt;/strong&gt; Are a set of instructions designed to be provided to QTP on proceeding further with the test after some recovery operation has been carried out. Examples of Post Recovery actions can be repeating the complete test from the beginning or some steps may be skipped altogether &amp;amp; continuing with the remaining steps in the test.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=====================================================&lt;br /&gt;Q. 25: When to use a Recovery Scenario and When to use &quot;on error resume next&quot;?=====================================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;Recovery scenarios are useful when it is difficult to predict at which step the errors can come or when we are confident that the error will not come in the QTP script, whereas it can be anywhere outside the QTP Script. For illustration; Pop-up message of &quot;out of paper&quot;, as caused by the printer device driver. &quot;On error resume next&quot; is preferred when we sure that the error is expected one and wish to perform some other actions.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=========================================&lt;br /&gt;Q. 26: What are the key features of QTP at a glance:&lt;br /&gt;=========================================&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#990000;&quot;&gt;# Ease of use:&lt;/span&gt;&lt;/strong&gt; QTP allows even novice testers to become productive in minutes. You can create a test script by simply pressing a Record button and using an application to perform a typical business process. Each step in the business process is automated documented with a plain-English sentence and screen shot. Users can easily modify, remove, or rearrange test steps in the Keyword View.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;# Simple interface:&lt;/span&gt;&lt;/strong&gt; QTP is much simpler to understand. It presents a test case as a simple business workflow to the tester.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;# Simple Language:&lt;/span&gt;&lt;/strong&gt; QTP uses Microsoft&#39;s VBScript for its test procedures, and to manipulate the objects and controls of the application under test. VBScript is a real programming language where several existing functions &amp;amp; resources are easily available for implementation these days.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;# Use of zero-configuration Technology:&lt;/span&gt;&lt;/strong&gt; QTP uses next-generation &quot;zero-configuration&quot; Keyword Driven testing technology. This helps in faster test creation, easier maintenance, and provides more powerful data-driving capability.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;# Automatic insertion of checkpoints:&lt;/span&gt;&lt;/strong&gt; QTP enables thorough validation of applications through a full complement of checkpoints. QTP can automatically introduce checkpoints to verify application properties and functionality, for example to validate output or check link validity.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;# Marvelous interface with Data-tables:&lt;/span&gt;&lt;/strong&gt; QTP allows entry of test data into the Data Table, an integrated spreadsheet with the full functionality of Excel, to manipulate data sets and create multiple test iterations, without programming, to expand test case coverage. Data can be typed in or imported from databases, spreadsheets, or text files. QTP has better and easier to use Data table integration compared to WinRunner.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;# Better object identification mechanism:&lt;/span&gt;&lt;/strong&gt; QTP Identifies objects with Unique Smart Object Recognition, even if objects change from build to build, thereby enabling reliable unattended script execution.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;# Support of variety of environment:&lt;/span&gt;&lt;/strong&gt; QTP supports functional testing of all popular environments, like Windows, Web, .Net, Visual Basic, ActiveX, Java, SAP, Siebel, Oracle, PeopleSoft, terminal emulators, and Web services.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;# Easy adaptability of Microsoft Object Models:&lt;/span&gt;&lt;/strong&gt; QTP can easily create and implement Microsoft Object Model like: Outlook objects, ADO objects, FileSystem objects, supports DOM, WSH, etc.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;# Auto-documentation technology:&lt;/span&gt;&lt;/strong&gt; QTP renders test documentation and test creation to a single step with the help of its auto-documentation technology&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=================================================&lt;br /&gt;Q. 27: What are various types of properties when using object identification in QTP?&lt;br /&gt;=================================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;QTP uses three types of properties when identifying a object&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;1. Mandatory Properties&lt;/span&gt;&lt;/strong&gt; - Always learn these properties for the object&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;&lt;br /&gt;2. Assistive Properties&lt;/span&gt;&lt;/strong&gt; - Learn in case Mandatory properties are not enough to identify the object uniquely&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;&lt;br /&gt;3. Ordinal identifiers&lt;/span&gt;&lt;/strong&gt; - Learn in case both mandatory and assistive properties are not able to recognize the objects correctly&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=====================================================&lt;br /&gt;Q. 28: What are the various ways to insert a Action in a test in QTP?=====================================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;There are three ways to insert a Action in a test&lt;br /&gt;1. Insert Call to New…&lt;br /&gt;2. Insert Call to Copy…&lt;br /&gt;3. Insert Call to Existing…&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;========================================&lt;br /&gt;Q. 29: What is the use of Parameterization in QTP?========================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;Parameterization is helpful in following aspects.# Parameterization allows us to pick different values at run time.&lt;br /&gt;# Reduces Time and Effort.&lt;br /&gt;&lt;br /&gt;# Usage of data drivers allows us to use the same data for various input boxes.&lt;br /&gt;&lt;br /&gt;# Parameterization can also be done for checkpoints.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=============================&lt;br /&gt;Q. 30: What are Data Tables in QTP?&lt;br /&gt;=============================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;Data Table is MS Excel like spreadsheet which can be used for parameterizing a test case&lt;br /&gt;DataTable are of two types:&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;1. Global Data Table&lt;/span&gt;&lt;/strong&gt; - Data table for Test flow&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;2. Local data table&lt;/span&gt;&lt;/strong&gt; - Data table for every action&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Keyword: QTP Interview Questions, FAQ QTP</description><link>http://quicktesthp.blogspot.com/2008/09/qtp-interview-question-bank-part-3.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3132703535514457596.post-7084919081449173207</guid><pubDate>Sat, 27 Sep 2008 03:32:00 +0000</pubDate><atom:updated>2008-10-01T09:06:51.395+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions - QTP</category><title>QTP - Interview Question Bank : Part 2</title><description>&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;Q. 11: What is a Virtual Object in QTP?&lt;br /&gt;===============================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Since sometimes complex objects are not recognized &amp;amp; recorded properly by QTP. Hence an experienced user can define that object as a personal virtual object and build a virtual object repository. This way by the concept of Virtual Object, the user can add some sort of support for such complex objects.&lt;br /&gt;&lt;br /&gt;If it is possible to extract the desired information from the object, we can do successful record and playback against that object.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=================================&lt;br /&gt;Q. 12: How results are generated in QTP?&lt;br /&gt;=================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;At the end of the test, QTP generates a result file for the test cases, which is in the form of a XML tree.&lt;br /&gt;&lt;br /&gt;This results file provides detail regarding &#39;Pass&#39; or &#39;Fail&#39; counts, error messages, and all supporting information which allows the user to diagnose the main cause of a failure.&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;===================================================&lt;br /&gt;Q. 13: How many types of main views of a script are available in QTP?===================================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;QTP provides two main views of a script. These are&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;1) Keyword View:&lt;/span&gt;&lt;/strong&gt; is the default test procedure interface of QTP &amp;amp; is most useful for the beginners. It displays the automation steps of a test procedure as a descriptive tree of Actions and functions. The tree contains columns listing the Action or function name, any parameters, and comments.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;2) Expert View:&lt;/span&gt;&lt;/strong&gt; is most suitable for the advanced users, enabling them to customize the test, like writing user-defined functions. It is meant for displaying and editing of the source code of the test. Except for the root Global action, all other test actions can be edited here. Expert View acts as an IDE for the test. It includes most standard IDE features, such as breakpoints.&lt;br /&gt;&lt;br /&gt;Both Keyword View &amp;amp; the Expert View can be selected from tabs available at the bottom of the QTP window.&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=======================&lt;br /&gt;Q. 14: What is a Checkpoint?&lt;br /&gt;=======================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;In QTP, Checkpoint is used to verify the application under test. It can introduce a checkpoint to verify as to whether a particular object, text or a bitmap is present in the automation run.&lt;br /&gt;During a test execution, a checkpoint verifies that the behavior or state of the actual application is consistent with the expected application or not.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;===============================================&lt;br /&gt;Q. 15: How many types of Checkpoints are available in QTP&lt;br /&gt;===============================================&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#990000;&quot;&gt;1) Standard Checkpoint&lt;/span&gt;&lt;/strong&gt; - for checking the properties of an object.&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;2) Table Checkpoint&lt;/span&gt;&lt;/strong&gt; - for checking the properties of a table.&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;3) Image Checkpoint&lt;/span&gt;&lt;/strong&gt; - for checking the properties of an image.&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;4) Bitmap Checkpoint&lt;/span&gt;&lt;/strong&gt; - for comparing an area of the application under test pixel-by-pixel with the screen as seen at record-time.&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;5) Database Checkpoint&lt;/span&gt;&lt;/strong&gt; - for automating the back-end testing.&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;6) Text Checkpoint&lt;/span&gt;&lt;/strong&gt; - for checking that a section of text is found between two other sections of text.&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;7) Text Area Checkpoint&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;8) Page Checkpoint&lt;/span&gt;&lt;/strong&gt; - for checking the properties of a web page.&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;9) Accessibility Checkpoint&lt;/span&gt;&lt;/strong&gt; - for checking the accessibility of an application.&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;10) XML Checkpoint&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;========================================&lt;br /&gt;Q. 16: What is the use of Text output value in QTP? ========================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Text Output values enable us to view the values which are taken by the application during the run time. If parameterized, the values change for every iteration. Hence by creating output values, we can capture the values which are taken by the application during the run time and output them to the data table.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=================================================&lt;br /&gt;Q. 17: What&#39;s the difference between a Checkpoint and Output Value?=================================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;Checkpoint only checks for the specific attribute of an object in AUT while Output value can output those attributes value to a column in data table.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;==================================================&lt;br /&gt;Q. 18: How can we Disable Smart Identification During the Run Session?==================================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;Selection of the option &quot;Disable Smart Identification during the run session&quot;, Instructs QTP not to use the Smart Identification mechanism during the run session.&lt;br /&gt;&lt;br /&gt;When we select this option, the Enable Smart Identification check boxes in the Object Properties and Object Repository dialog boxes get disabled, although the settings are saved. However when you clear this option, the Enable Smart Identification check boxes return to their previous on or off setting.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=====================================================&lt;br /&gt;Q. 19: What are the Properties used by Smart Identification Feature of QTP?=====================================================&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#990000;&quot;&gt;1) Base filter properties:&lt;/span&gt;&lt;/strong&gt; Are the most fundamental properties of a particular test object class. Her we can not change their values without changing the essence of the original object.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;2) Optional filter properties:&lt;/span&gt;&lt;/strong&gt; Are other properties, which help us in identifying the objects of a particular class since these are not likely to get changed frequently. These properties can be ignored in case these are not applicable any more.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;====================================================&lt;br /&gt;Q. 20: How can we check if an environment variable exists or not? ====================================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;When we use Environment(&quot;Param1&quot;).value then QTP expects the environment variable to be already defined. But when we use Environment.value(&quot;Param1&quot;) then QTP will create a new internal environment variable if it does not exists already. So to be sure that variable exist in the environment try using Environment(&quot;Param1&quot;).value.&lt;br /&gt;&lt;br /&gt;Keyword: QTP Interview Questions, FAQ QTP</description><link>http://quicktesthp.blogspot.com/2008/09/qtp-interview-question-bank-part-2.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3132703535514457596.post-9033198718458002957</guid><pubDate>Sat, 27 Sep 2008 03:16:00 +0000</pubDate><atom:updated>2008-10-01T09:03:40.270+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions - QTP</category><title>QTP - Interview Question Bank : Part 1</title><description>&lt;p&gt;&lt;span style=&quot;color:#000099;&quot;&gt;&lt;strong&gt;Q. 1: What is Automation Object Model in QTP?======================================&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;Like we use QTP for automating the testing of our applications, we can use the automation object model of QTP to automate its own operations as well. With the help of objects, methods, and properties exposed by the automation object model of QTP along with standard programming elements like loops and conditional statements, we can write programs which can configure QTP options and run tests or components instead of performing these operations manually using the QTP interface. &lt;/p&gt;&lt;p&gt;Automation programs are especially useful for performing the same tasks several times or on multiple tests or components, or quickly configuring QTP according to the needs for a particular environment or application. &lt;/p&gt;&lt;p&gt;Most of the dialog boxes in QTP have a corresponding automation object. Most of the options in dialog boxes can be set retrieved using the corresponding object property, and most of the menu commands and other operations have corresponding automation methods.&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;============================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;&lt;strong&gt;Q. 2: What is a Recovery Scenario?&lt;br /&gt;============================&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Recovery scenario gives you an option to take some action for recovering from a fatal error in the test. Such problems are quite frequent especially when the tests are made to run unattended. In such a case the test process halts until the user perform some desired recovery operation. &lt;/p&gt;&lt;p&gt;Recovery scenarios are useful when it is difficult to predict at which step the errors can come or when we are confident that the error will not come in the QTP script, whereas it can be anywhere outside the QTP Script. For illustration; Pop-up message of &quot;out of paper&quot;, as caused by the printer device driver. &quot;On error resume next&quot; is preferred when we sure that the error is expected one and wish to perform some other actions.&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=================================&lt;br /&gt;Q. 3: What is Smart Identification in QTP?&lt;br /&gt;=================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;QTP has a unique feature by the name Smart Object Identification or recognition which is used for identifying the objects smartly, whenever the normal identification fails due to the dynamic changes in the properties of the objects.&lt;br /&gt;&lt;br /&gt;Smart Identification is nothing but an algorithm used by the QTP when it is not able to recognize an object.&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;=================================&lt;br /&gt;Q. 4: How QTP identifies various Objects?&lt;br /&gt;=================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;During recording QTP identifies various objects and stores them as test objects. For each test object QTP learns a set of default properties called mandatory properties. Simultaneously QTP looks at rest of the objects to check whether these properties are sufficient to uniquely identify the object or not. During the test run, QTP searches for the run time objects, which match with the test objects which, have been captured by it during recording.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;==================================&lt;br /&gt;Q. 5: What are Object Repositories in QTP? ==================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;When planning and creation of tests is done, we firstly consider how we would like to store the objects in our tests. In QTP, the test objects can be stored in two types of object repositories&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;a) Shared object repository:&lt;/span&gt;&lt;/strong&gt; It stores test objects in a file that can be accessed by multiple tests (in read-only mode). If someone is new to QTP, he can prefer to use local object repositories. This way he can record and run the tests without creating, choosing, or modifying shared object repositories because all objects are automatically getting saved in a local object repository which can be accessed by its corresponding action.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;b) Local object repository:&lt;/span&gt;&lt;/strong&gt; It stores objects in a file that is associated with one specific action, so that only that action can access the stored objects. If someone is familiar with QTP testing, he can find that it is quite efficient to save the objects in a shared object repository. This way, he can use the same shared object repository for multiple actions - if the actions include the same objects. Test object information that applies to many actions is kept in one centralized location. When the objects in the application change, we can update them in one location for all the actions that use this shared object repository.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;==============================================&lt;br /&gt;Q. 6: How QTP recognizes objects in Object Repositories? ==============================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;Object Repository displays a tree of all the objects in the current component or in the current action or in the entire test , depending on the object repository mode selected by the user. We can view or modify the test object description of any test object in the repository or to add new objects to the repository.&lt;br /&gt;&lt;br /&gt;QTP remembers the default property values and determines in which test object class it fits. If it is not found enough it automatically adds assistive properties, one by one to the description until it successfully compiles the unique description. If no assistive properties are available, then it adds a special Ordinal identifier such as object location on the page or in the source code.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;========================================&lt;br /&gt;Q. 7: How many types of Actions are there in QTP? ========================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;QTP uses following three kinds of actions:&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;a) Non-reusable action&lt;/span&gt;&lt;/strong&gt; - can be called only in the test with which it is stored, and can be called only once.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;b) Reusable action&lt;/span&gt;&lt;/strong&gt; - can be called multiple times by the test with which it is stored (the local test) as well as by other tests.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#990000;&quot;&gt;c) External action&lt;/span&gt;&lt;/strong&gt; - is a reusable action which is stored with another test. External actions are read-only in the calling test, but we can choose to use a local, editable copy of the Data Table information for the external action.&lt;br /&gt;&lt;br /&gt;By default, all new actions are non-reusable. We can mark every action created by us in the test as reusable or non-reusable.&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;===========================================&lt;br /&gt;Q. 8: Is there any built-in function for scripting in QTP? ===========================================&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;QTP uses an in-built functionality called &quot;Step Generator&quot; to create scripts while appropriate steps are entered into it. Step Generator utility enables us to add steps by selecting from a range of context-sensitive options and entering the required values.&lt;br /&gt;&lt;br /&gt;You can open the Step Generator from the Keyword View or Expert View while recording or editing your test. You can also open the Step Generator from the Active Screen while editing.&lt;br /&gt;Method to open the Step Generator from a function library is as under&lt;br /&gt;&lt;br /&gt;a) In the function library, click the location in which you want to insert the new step.&lt;br /&gt;&lt;br /&gt;b) Choose Insert &gt; Step Generator, or right-click and choose Step Generator. Alternatively, press F7.&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;&lt;br /&gt;====================================&lt;br /&gt;Q. 9: What is a Run-Time Data Table in QTP? ====================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;During the run session, QTP creates a Runtime Data Table, which is live version of the Data Table associated with our test. During the run session, QTP displays the run-time data in the Data Table pane so that we can see the changes taking place in the Data Table.&lt;br /&gt;&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. Data entered in the run-time Data Table during the run session does not get saved along with the test. The final data from the run-time Data Table gets displayed in the Run-Time Data Table in the Test Results window.&lt;br /&gt;&lt;br /&gt;Runtime Data Table is an excel file, which gets stored in the folder of the test created, its name is Default.xls by default.&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;====================================&lt;br /&gt;Q. 10: What is the Object Spy feature in QTP? ====================================&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;Using the Object Spy pointing hand mechanism, you can view the supported properties and methods of any object in an open application. As you move the pointing hand over the objects in the application, their details are displayed in the Object Spy. These details may include the test object’s hierarchy tree, its properties and values, and the methods associated with the object. For methods, the syntax is also displayed.&lt;br /&gt;&lt;br /&gt;Keyword: QTP Interview Questions, FAQ QTP&lt;/p&gt;</description><link>http://quicktesthp.blogspot.com/2008/09/qtp-interview-question-bank-part-1.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3132703535514457596.post-753247334877219272</guid><pubDate>Wed, 03 Sep 2008 09:30:00 +0000</pubDate><atom:updated>2008-09-05T13:51:36.549+05:30</atom:updated><title>Guidelines to select an Appropriate Automation Tool</title><description>If your organization is currently using manual means to test your software applications &amp;amp; is believing that it can derive tangible benefits by automating its software testing process, then simply jumping to a conclusion of buying some tool simply because it is popular among many, may not be wise. What should be done now is to take a judicious decision through a scientific process to find out as to which tool will best be suited to your needs. Since this is an capital intensive move aimed at taking your company to the world of Automated Testing, needs careful examination.&lt;br /&gt;&lt;br /&gt;When you are shopping for a proper automation tool, you will come across several people ambitiously marketing their products, which may provide solution to variety of automated testing needs. Now the question arises as to whether a particular tool is really suitable to your needs or not. Are you not inclining your choice for a particular tool by making lot many compromises in features. Think that in times to come, your testing needs may become more complicated by the variety of applications coming across for testing &amp;amp; that too under variety of operating systems.&lt;br /&gt;&lt;br /&gt;Thus following guidelines shall be helpful in evaluating &amp;amp; zeroing down your choice of an appropriate tool for the job at hand, out of a bunch of many testing tools sold by different vendors.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:130%;color:#000099;&quot;&gt;&lt;strong&gt;Guideline – 1: Understand your True Requirement&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;First of all don’t look at &amp;amp; form any type of opinion about any XYZ tool available in the market. This is high time for doing deep introspection of your real needs. It is wise to prepare a comprehensive list of your requirements of software testing at the present moment. Identify the time consuming problems, which you want to solve with the new tool. Identify the technical capabilities your prospective tool should have to be compatible with the environment of your application.&lt;br /&gt;&lt;br /&gt;Following checklist can be helpful in a judicious compilation of your requirements:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;a) List down the Compatibility issues:&lt;/span&gt;&lt;/strong&gt; Remember that the tool selected by you has to be compatible with:&lt;br /&gt;# The operating systems supported by your application to be tested&lt;br /&gt;&lt;br /&gt;# The development environments under which the application shall be created&lt;br /&gt;&lt;br /&gt;# Third party software if any with whom your application needs to be integrated at some stage&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;b) List down the Users of the Tool&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;# List down the people who will be actually using the prospective tool. Keep the skill levels of the available persons at the back of your mind.&lt;br /&gt;&lt;br /&gt;# Remember that more powerful tools are bound to be more complex as well. If the skill level of the available manpower (who will be expected to use the prospective tool everyday), does not match the complexity level of the tool, believe me, you are likely to land into many problems in smooth implementation of the tool in your organization.&lt;br /&gt;&lt;br /&gt;# Think as to whether there is enough time for training your staff within the prevailing time &amp;amp; budgetary constraints, if any.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#000099;&quot;&gt;&lt;strong&gt;c) List down the Testing requirements&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;Technical requirements like the following needs to be listed down before zeroing down your choice on a particular automation tool.&lt;br /&gt;# Identify the types of your own testing problems you wish that your new tool should solve for you.&lt;br /&gt;&lt;br /&gt;# Identify the problems faced by you during manual testing.&lt;br /&gt;&lt;br /&gt;# Identify the time constraints coming across while making minor changes to your system.&lt;br /&gt;&lt;br /&gt;# Identify the shorter regression testing time frames.&lt;br /&gt;&lt;br /&gt;# Identify the Test data setup requirements.&lt;br /&gt;&lt;br /&gt;# Identify the Defect tracking requirements you are aiming at.&lt;br /&gt;&lt;br /&gt;# Identify the Increased test coverage you are looking for.&lt;br /&gt;&lt;br /&gt;# Identify the Increase in efficiency of the testing process you are looking for.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:130%;color:#000099;&quot;&gt;&lt;strong&gt;Guideline – 2: Understand the constraints you have&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;You need to understand various factors, which may compel you to drop down some of the tools from your initial selection list. Such crucial factors need to be identified during the early stages of your tool selection process.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;a) Environmental constraints&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;# Environmental constraints can be either related to hardware or the software itself.&lt;br /&gt;&lt;br /&gt;# The prospective tool must be able to work on the desired operating systems&lt;br /&gt;&lt;br /&gt;# The prospective tool must not dictate the terms of having some specialized hardware for its working.&lt;br /&gt;&lt;br /&gt;# Up-gradation of existing hardware like providing more hard disk / More Ram etc. to cope with the requirements of additional scripts and test data likely to be added.&lt;br /&gt;&lt;br /&gt;# Consider your likely objections to your new tool running under some specific environment, while the software application might be required to run under different environment or operating system. This issue may gain importance from the consideration of the future use of the new tool.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;b) Credentials of the Vendors &amp;amp; their Clientele&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;It is certain that you won’t desire to hang on with problems with your new testing tool. Certainly anyone would like to have a quick, competent &amp;amp; professional solution to the tool related problems arising may be occasionally.&lt;br /&gt;&lt;br /&gt;Following checklist may come handy in such a situation.&lt;br /&gt;# The tool supplier must represent a genuine company.&lt;br /&gt;&lt;br /&gt;# The tool as a product &amp;amp; its supplying company must be matured enough.&lt;br /&gt;&lt;br /&gt;# The tool may not be worthwhile at all unless there is enough technical support available.&lt;br /&gt;&lt;br /&gt;# Find out the clientele of the prospective tool &amp;amp; try to obtain the feedback from such organizations if possible.&lt;br /&gt;&lt;br /&gt;# Find out the past history of the prospective tool?&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;c) Understand the Quality related characteristics&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Following quality related constraints of the prospective tool should be helpful&lt;br /&gt;# Identify the skill level required for using the prospective tool&lt;br /&gt;&lt;br /&gt;# Verify as to whether it is possible to have multiple user access&lt;br /&gt;&lt;br /&gt;# Identify the support and help documentation required.&lt;br /&gt;&lt;br /&gt;# Verify as to whether it is possible to integrate the prospective tool with other tools.&lt;br /&gt;&lt;br /&gt;# Ensure that there should not be any possibility of getting your data corrupted by the tool.&lt;br /&gt;&lt;br /&gt;# Frequency of failure during realistic use&lt;br /&gt;&lt;br /&gt;# Identify the budgetary constraints if any. Such financial constraints can restrict your choice of buying a particular tool.&lt;br /&gt;&lt;br /&gt;Remember that it is not the question of just purchasing a particular tool by spending some money. In fact it has been seen that in many cases, the cost of fully implementing the tool can be much higher than the cost of the tool itself. Budgetary constraints shall be applicable not only to the tool purchase cost, but shall cover costs of licensing / AMC’s, costs of training and cost of tool implementation etc.&lt;br /&gt;&lt;br /&gt;We can be in a position to evaluate various tools available in the market after compiling a comprehensive list of our requirements and various constraints.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:130%;color:#000099;&quot;&gt;&lt;strong&gt;Guideline – 3: Shortlist the most likely suitable tools&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This is the stage when an extensive research is needed to identify various types of tools available in the market. WWW can be a good place to explore the tool. Preliminary study of the technical brochure of every tool shall reveal the capabilities of the tool fitting your requirements &amp;amp; constraints.&lt;br /&gt;&lt;br /&gt;We can identify various features of every tool by classifying them like a) Essential features b) Desirable features c) Less relevant features etc.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;a) Essential features:&lt;/span&gt;&lt;/strong&gt; are the ones, which are extremely necessary to meet your requirements within the defined constraints.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;b) Desirable features:&lt;/span&gt;&lt;/strong&gt; are the ones, which will make a particular tool standout among many of its competitors. Based upon the presence of variety desirable features, your decision can be favor of a particular tool among many more.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;c) Irrelevant features:&lt;/span&gt;&lt;/strong&gt; are the ones, which are not of any great significance &amp;amp; may not be able to provide some tangible benefit to you in your present requirements.&lt;br /&gt;&lt;br /&gt;Evaluation of the above types of features is the next exhaustive &amp;amp; iterative exercise. At this stage you should evaluate as much number of tools as possible and try to zero down your focus on around 5-6 tools any one of which could qualify to be the final tool fitting your ultimate choice.&lt;br /&gt;&lt;br /&gt;The next step in the process should be establishing a contact with the tool suppliers &amp;amp; organizing a practical demonstration. If possible you can ask for an evaluation or trial version of the tool for refining your decision. At this stage you should clearly explain all your requirements of testing along with set of constraints to the tool supplier, who shall be in a better position to clarify many points left out by you during your short-listing process.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:130%;color:#000099;&quot;&gt;&lt;strong&gt;Guideline – 4: Making a Final Choice&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Having gone through the above-defined rigorous process of evaluation, the time has come for you to take a decision in favor of one particular tool, which suits best into your slot of requirements &amp;amp; constraints.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;a) Final Comparison of Features:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;# With the help of all available data now you should be able to draw a clear comparison of the performance related features of the tools as desired by you vis-a-vis features claimed to be present in the technical literature provided by the persons marketing the tool.&lt;br /&gt;&lt;br /&gt;# This is stage to go on for verification of the credential of the particular tool from the present users by visiting their web sites or making contact through other channels. This shall help you in refining your choice of a particular tool.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;b) Practical demonstration at your site:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;If a particular tool has already caught your attention, you can ask the supplier to organize a live demonstration of the tool under your actual working environment. This way you will be able to judge the technical capability of the supplier as well in providing support later-on.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;c) Maintenance of Test Script&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Proper maintenance of automation scripts &amp;amp; ease of handling them is very important aspect of the tool under evaluation. Although we may not be able to make an on the spot judgement about this capability, but this aspect gets confirmed during the second or third release of testing after implementing the new tool.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#000099;&quot;&gt;d) Final Comparative Trial&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Now this is the time for conducting same test on one particular application time &amp;amp; again on each &amp;amp; every short-listed tool independently. This way you shall be in a position to make a final decision in favor of a particular tool out of a box of many.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Key Word : Automation Tool, Tool Selection&lt;/strong&gt;</description><link>http://quicktesthp.blogspot.com/2008/06/choosing-automation-tool-for-your.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item></channel></rss>