<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LoadRunner TnT &#187; Object Spy</title>
	<atom:link href="http://www.loadrunnertnt.com/tag/object-spy/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.loadrunnertnt.com</link>
	<description>Performance Testing, LoadRunner Tips &#38; Tricks</description>
	<lastBuildDate>Mon, 08 Mar 2010 07:57:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>What’s QTP?</title>
		<link>http://www.loadrunnertnt.com/products/what%e2%80%99s-qtp/</link>
		<comments>http://www.loadrunnertnt.com/products/what%e2%80%99s-qtp/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 08:20:28 +0000</pubDate>
		<dc:creator>TnT Admin</dc:creator>
				<category><![CDATA[Products]]></category>
		<category><![CDATA[Licenses]]></category>
		<category><![CDATA[Object Spy]]></category>
		<category><![CDATA[QTP]]></category>
		<category><![CDATA[VB Script]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.loadrunnertnt.com/?p=712</guid>
		<description><![CDATA[Quick Test Professional (QTP) is another product from HP/Mercury (originally from Mercury Interactive) that provides automated functional testing capabilities.  The current version at the time of this writing is QTP version 10.0.  Generally, QTP is a record and playback tool similar to LoadRunner.  Although they look similar in terms of record and playback, they differ [...]]]></description>
			<content:encoded><![CDATA[<p><strong><a href="http://www.loadrunnertnt.com/wp-content/uploads/2010/02/company_hp_logo1.gif"><img class="alignleft size-full wp-image-714" title="company_hp_logo" src="http://www.loadrunnertnt.com/wp-content/uploads/2010/02/company_hp_logo1.gif" alt="" width="64" height="55" /></a>Quick Test Professional (QTP)</strong> is another product from HP/Mercury (originally from Mercury Interactive) that provides automated functional testing capabilities.  The current version at the time of this writing is <strong>QTP version 10.0</strong>.  Generally, QTP is a record and playback tool similar to <a href="../products/whats-loadrunner/">LoadRunner</a>.  Although they look similar in terms of record and playback, they differ greatly in terms of what is recorded and what is playback.  QTP identify and records objects on the windows and rewrite the process of launching the object in a script (VB).  Example, QTP identifies and recognizes the click activity of the button on the web-browser or the web-application.  However, LoadRunner records whatever request made after the button is clicked (although <strong>Web Click &amp; Script protoc</strong>ol supports this).<span id="more-712"></span></p>
<p>During replay, the script will then be replayed like a <a href="http://technet.microsoft.com/en-us/scriptcenter/default.aspx">Windows VB Script</a>, launching the windows and activating the buttons as what is being recorded.  A sound knowledge of VB script is actually helpful in maintaining the scripts however not necessarily needed as QTP is relatively easy to use.  A tip here is you can actually use VB script in Windows to run automation without even using QTP.  It works the same way but a little low-level work is required and you need to understand the various ways the windows and objects are called in the Windows environment.</p>
<p>In QTP, you can add check points to determine if your application response as intended.  You can also use output values similar to the concept of correlation in QTP to handle dynamic data.  The output values are also used to be input values for the next step depending on how the test case is designed.</p>
<p>As for the licenses, they worked in two ways.  Either you use a <strong>Seat license</strong> or a <strong>Concurrent license</strong>.  The seat license is tied to the machine that installed the license while the concurrent license requires a license server to be available for it to retrieve the license information.  The license will decide the type of application you can record; generally called an Add-In.  QTP has various Add-In to suit the needs of the customer.  The common one is Web, Java script and ActiveX.  Other supported technologies that require an Add-In are Java, Oracle, SAP, etc.</p>
<p>Of all the virtues of using QTP, you will still need to be careful on the following and use it correctly:</p>
<ul>
<li><strong>Resolution of the      recording machine and replay machine MUST be the same</strong> – QTP rely on the resolution      of the machines to recognize the coordinates and size of the objects.  Problem will arise when the resolution      of the recording machine and replay machine is different.  Example, the script was recorded in 1024      x 768 resolution while it was replayed in a 1280 x 800 resolution may      result in the script generating error as the objects have changed their      coordinates.</li>
<li><strong>Iteration of the      script requires the start and end point to be the same </strong>– For a script to iterate      successfully, the script should be recorded in a way that the start and      end point are the same.  Example,      the script starts off with the login page and proceeds with login and some      activities then logout to return to the login page.  In this manner, the script will be able      to iterate with the next set of value such as a new login account.</li>
<li><strong>Context</strong>-<strong>sensitive – </strong>Context sensitive menus may require the use of <strong>Object Spy</strong> feature in QTP.  Context sensitive menu such as      mouse-over menu that will show the sub-menu.  This will require pressing “Crtl-Key”      when using the Object Spy and inserting the action (and object) into the      script.  However, we recommend      recording in a lower granularity (in analog) to capture as much objects as      you can before proceeding to use the Object Spy.</li>
<li><strong>Preparation of      initial test data</strong> – Most often people ignored the need for a baseline set of data      for testing.  After each functional      (regression) test, the data needs to be refreshed to a clean set before      the script can work again.</li>
<li><strong>Still dependent      on a well-designed test case – </strong>To make the tool really useful, the tool      still highly depends on a well-designed test case.  Without a well designed test case, the      downstream activities such as recording and modifying may not serve its      purpose well.</li>
</ul>
<p>The information should give you an overview of how <strong>QTP</strong> works and what you should take note after purchase (or even before purchase).  We hope that it will be useful to you and do share with us on anything related to QTP.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.loadrunnertnt.com/products/what%e2%80%99s-qtp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
