<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Software Testing FAQs</title>
	<atom:link href="http://qatips.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://qatips.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Sun, 19 Jul 2009 16:49:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='qatips.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Software Testing FAQs</title>
		<link>http://qatips.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://qatips.wordpress.com/osd.xml" title="Software Testing FAQs" />
	<atom:link rel='hub' href='http://qatips.wordpress.com/?pushpress=hub'/>
		<item>
		<title>SQL: All about Indexes</title>
		<link>http://qatips.wordpress.com/2009/07/10/sql-all-about-indexes/</link>
		<comments>http://qatips.wordpress.com/2009/07/10/sql-all-about-indexes/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 12:45:40 +0000</pubDate>
		<dc:creator>abbey4u</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[indexes]]></category>
		<category><![CDATA[sql server]]></category>

		<guid isPermaLink="false">http://impegno.wordpress.com/?p=30</guid>
		<description><![CDATA[Following links contains articles on how one can enhance SQL server usage by optimizing Indexes Understanding Sql Server Index Get SQL Server Index Usage stats How to find a better candidate for Clustered Index Find Tables with Missing Index and their respective column candidate to create one<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qatips.wordpress.com&amp;blog=8639929&amp;post=30&amp;subd=qatips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Following links contains articles on how one can enhance SQL server usage by optimizing Indexes</p>
<ol>
<li><a href="http://www.mssqltips.com/tip.asp?tip=1206" target="_blank"><strong>Understanding Sql Server Index</strong></a></li>
<li><strong><a href="http://www.mssqltips.com/tip.asp?tip=1239" target="_blank">Get SQL Server Index Usage stats</a></strong></li>
<li><a href="http://www.mssqltips.com/tip.asp?tip=1642" target="_blank"><strong>How to find a better candidate for Clustered Index</strong></a></li>
<li><a href="http://www.sqlservercentral.com/articles/Indexing/64134/" target="_blank"><strong>Find Tables with Missing Index and their respective column candidate to create one</strong></a></li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qatips.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qatips.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qatips.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qatips.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qatips.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qatips.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qatips.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qatips.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qatips.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qatips.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qatips.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qatips.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qatips.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qatips.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qatips.wordpress.com&amp;blog=8639929&amp;post=30&amp;subd=qatips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://qatips.wordpress.com/2009/07/10/sql-all-about-indexes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e911afbcf4781c48c96e889e5c48c135?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abbey4u</media:title>
		</media:content>
	</item>
		<item>
		<title>Quick Test Professional—An Overview</title>
		<link>http://qatips.wordpress.com/2009/07/10/quick-test-professional%e2%80%94an-overview/</link>
		<comments>http://qatips.wordpress.com/2009/07/10/quick-test-professional%e2%80%94an-overview/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 11:21:25 +0000</pubDate>
		<dc:creator>abbey4u</dc:creator>
				<category><![CDATA[QTP]]></category>
		<category><![CDATA[quick test professional]]></category>

		<guid isPermaLink="false">http://impegno.wordpress.com/?p=21</guid>
		<description><![CDATA[Disclaimer: All the below post are not mine. These articles are freely available on the net. I have collated them at one place for the benefit of everyone. 1. What is QTP? QTP is a functional testing tool developed by Mercury. QuickTest Professional enables you to test standard Windows applications, Web objects, ActiveX controls, and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qatips.wordpress.com&amp;blog=8639929&amp;post=21&amp;subd=qatips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Disclaimer: All the below post are not mine. These articles are freely available on the net. I have collated them at one place for the benefit of everyone.<br />
<strong> </strong></p>
<p><strong>1. </strong><strong>What is QTP?</strong></p>
<p>QTP is a functional testing tool developed by Mercury. QuickTest Professional enables you to test standard Windows applications, Web objects, ActiveX controls, and Visual Basic applications. You can also acquire additional QuickTest add-ins for a number of special environments (such as Java, Oracle, SAP Solutions, .NET Windows and Web Forms, Siebel, PeopleSoft, Web services, and terminal emulator applications).</p>
<p><strong>2. </strong><strong>What are the different phases of testing through QTP?</strong></p>
<p>The Quick Test testing process consists of 7 main phases:</p>
<ol>
<li>Preparing to record: One needs to keep certain things in mind before actually record a test. Ex- Test cases, Steps to perform while recording, Object should be present in the window on which we are going to record</li>
<li>Recording a session on your application: As you navigate through your application or Web site, Quick Test graphically displays each step you perform as a row in the Keyword View. A step is any user action that causes or makes a change in your application, such as clicking a link or image, or entering data in a form.</li>
<li>Enhancing your test:
<ol>
<li>Inserting checkpoints into your test lets you search for a specific value of a page, object, or text string, which helps you determine whether your application or site is functioning correctly.</li>
<li>Broadening the scope of your test, by replacing fixed values with parameters, lets you check how your application performs the same operations with multiple sets of data.</li>
<li>Adding logic and conditional or loop statements enables you to add       sophisticated checks to your test.</li>
</ol>
</li>
<li>Debugging your test<strong>:</strong> You debug a test to ensure that it operates smoothly and without      interruption.</li>
<li>Running your test<strong>: </strong>You run a test to check the behavior of your application or Web site. While running, Quick Test opens the application, or connects to the Web site, and performs each step in your test.</li>
<li>Analyzing the test results<strong>:</strong> You examine the test results to pinpoint defects in your application.</li>
<li>Reporting defects<strong>: </strong>If you      have Quality       Center installed,      you can report the defects you discover to a database. Quality Center      is Mercury Imperative’s software test management tool.</li>
</ol>
<p><strong>3. </strong><strong>What is a Test pane?</strong></p>
<p>The Test pane contains two tabs to view your test or component—the <a href="/Book-04-05.htm">Keyword View</a> and the <a href="/Book-04-06.htm">Expert View</a>.</p>
<p><strong>4. </strong><strong>What is keyword view?</strong></p>
<p>The Keyword View enables you to create and view the steps of your test or component in a keyword-driven, modular, table format. Each step in your test or component is a row in the Keyword View, comprised of individual parts which you</p>
<p>can easily modify. You create and modify tests or components by selecting items and operations in the Keyword View and entering information as required.</p>
<p><strong>5. </strong><strong>What is Expert view?</strong></p>
<p>In the Expert View, Quick Test 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<strong> </strong></p>
<p><strong>6. </strong><strong>What is Active Screen?</strong></p>
<p>The Active Screen provides a snapshot of your application as it appeared when you performed a certain step during a recording session. Additionally, depending on the Active Screen capture options that you used while recording, the page displayed in the Active Screen can contain detailed property information about each object displayed on the page.</p>
<p><strong>7. </strong><strong>What is Object Repository?</strong></p>
<p>Quick Test identifies objects in your application based on a set of test object properties. It stores the object data it learns in the <em>object repository</em>. For ex- a link may have properties like class – link, HTML tag, Hyperlink, x coordinate and y coordinate. When we run the test, QTP will first read the line in the test which is going to be executed, It then checks whether the object specified is present in the repository or not. Then QTP will find the object in the Application window which is matching the object properties stored in OR. One can add or modify object properties to repository manually</p>
<p><strong>8. </strong><strong>What is Data table?</strong></p>
<p>The Data Table assists you in parameterize your test or component. Two Types of data tables</p>
<ul>
<li>Global data sheet: Accessible to all the      actions</li>
<li>Local data sheet: Accessible to the associated      action only</li>
</ul>
<p><strong>9. </strong><strong>What is Parameterization?</strong></p>
<p>When you test your applications, you may want to check how the application performs the same operations with multiple sets of data. For example, suppose you want to check how your Web site responds to ten separate sets of data. You could record ten separate tests, each with its own set of data. Alternatively, you can create Data Table parameters so that your test runs ten times, each time using a different set of data.</p>
<p>10.  What is checkpoint?</p>
<p>Quick Test enables you to add checks to your test or component. A <em>checkpoint</em> 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 Web site or application is functioning correctly.</p>
<p>When you add a checkpoint, Quick Test adds a checkpoint to the current row in the Keyword View and adds a <strong>Checkpoints</strong> statement in the Expert View. When you run the test or component, Quick Test 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.There are different kinds of checkpoints</p>
<p><strong>11. </strong><strong>What is outputting Values?</strong></p>
<p>An <em>output value</em> is a step in which one or more values are captured at a specific point in your test or component and stored for the duration of the run session. The values can later be used as input at a different point in the run session. For example – you created a prop professional named “test”. You might later need this name for searching the professional you have just created</p>
<p>12. What is<strong> </strong><strong>SMART Identification</strong></p>
<p>Smart Identification is nothing but an algorithm used by QTP when it is not able to recognize one of the object. A very generic example as per the QTP manual would be, Lets say We have recorded the left links in our IQ application. Imagine we are to click on “Tearsheet” left link of IBM. After a build lets say the link name is changed from “Tearsheet” to “Company Tearsheet”. Even now QTP will recognize the new link using SI. It will check for other properties of the link such as Hyperlink and hence would recognize and click on the correct link.So it’s the kind of PI (Programmed intelligence) not AI.</p>
<p><strong>13. When should i use SMART Identification?</strong></p>
<ul>
<li>Something that people don&#8217;t think about too much. But the thing is that you should disable SI while creating your test cases. So that you are able to recognize the objects that are dynamic or inconsistent in their properties. When the script has been created, the SI should be enabled,
<p>so that the script does not fail in case of small changes. But the developer of the script should always check for the test results to verify if the SI<br />
feature was used to identify a object or not. Sometimes SI needs to be disabled for particular objects in the OR, this is advisable when you use<br />
SetTOProperty to change any of the TO properties of an object and especially ordinal identifiers like index, location and creation time.</li>
</ul>
<p>13. <strong>What is a Recovery Scenario?</strong></p>
<ul>
<li>Recovery scenario gives you an option to take some action for recovering from a fatal error in the test. The error could range in from occasional to typical errors. Occasional error would be like &#8220;Out of paper&#8221; popup error while printing something and typical errors would be like &#8220;object is disabled&#8221; or &#8220;object not found&#8221;. A test case have more then one scenario associated with it and also have the priority or order in which it should be checked.</li>
</ul>
<p><strong>What does a Recovery Scenario consists of?</strong></p>
<ul>
<li>Trigger: Trigger is nothing but the cause for initiating the recovery scenario. It could be any popup window, any test error, particular state of an object or any application error.</li>
<li>Action: Action defines what needs to be done if scenario has been triggered. It can consist of a mouse/keyboard event, close application, call a recovery function defined in library file or restart windows. You can have a series of all the specified actions.</li>
<li>Post-recovery operation: Basically defined what need to be done after the recovery action has been taken. It could be to repeat the step, move to next step etc&#8230;</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qatips.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qatips.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qatips.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qatips.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qatips.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qatips.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qatips.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qatips.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qatips.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qatips.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qatips.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qatips.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qatips.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qatips.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qatips.wordpress.com&amp;blog=8639929&amp;post=21&amp;subd=qatips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://qatips.wordpress.com/2009/07/10/quick-test-professional%e2%80%94an-overview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e911afbcf4781c48c96e889e5c48c135?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abbey4u</media:title>
		</media:content>
	</item>
		<item>
		<title>Quick Test Professional—Tips &amp; Tricks</title>
		<link>http://qatips.wordpress.com/2009/07/10/quick-test-professional%e2%80%94tips-tricks/</link>
		<comments>http://qatips.wordpress.com/2009/07/10/quick-test-professional%e2%80%94tips-tricks/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 11:19:55 +0000</pubDate>
		<dc:creator>abbey4u</dc:creator>
				<category><![CDATA[QTP]]></category>
		<category><![CDATA[quick test professional]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://impegno.wordpress.com/?p=19</guid>
		<description><![CDATA[1. How to block comment the code in Expert View? Select The block and press CTRL+M (available in QTP 9 onwards) 2. How to instruct QTP to close the browser when the test completes Set the Browser Clean Up option 1. Go to Tools -&#62; Options. 2. Select the Web tab. 3. Click . 4. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qatips.wordpress.com&amp;blog=8639929&amp;post=19&amp;subd=qatips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>1. How to block comment the code in Expert View?</strong></p>
<p>Select The block and press CTRL+M (available in QTP 9 onwards)</p>
<p><strong>2. How to instruct QTP to close the browser when the test completes</strong></p>
<p>Set the Browser Clean Up option</p>
<p>1. Go to Tools -&gt; Options.<br />
2. Select the Web tab.<br />
3. Click .<br />
4. In the &#8220;Run Settings&#8221; section, set the &#8220;Browser cleanup&#8221; option.</p>
<p>This will close all open browsers when the test is finished.</p>
<p><strong>3. How to enable/disable the execution marker (the yellow line pointer/arrow)</strong></p>
<p>Enabling or disabling the execution marker (arrow)</p>
<p>To enable the execution marker:<br />
1. Go to Tools -&gt; Options.<br />
2. Select the Run tab.<br />
3. Select the &#8220;Normal (displays execution marker)&#8221; radio button.<br />
4. Click .</p>
<p>To disable the execution marker:<br />
1. Go to Tools -&gt; Options.<br />
2. Select the Run tab.<br />
3. Select the &#8220;Fast&#8221; radio button.<br />
4. Click .</p>
<p><strong>3. How to manage a dynamic title of a browser window</strong></p>
<p>Use the &#8220;CreationTime&#8221; value, a regular expression, or update the property with SetTOProperty</p>
<p><strong>Option1:</strong><br />
Reconfigure the property QuickTest Professional uses to learn the Browser.</p>
<p>In the test&#8217;s Object Repository check whether QuickTest Professional is using the &#8220;name&#8221; property to learn the browser windows. Instead of using the &#8220;name&#8221; property, reconfigure the learned properties so that QuickTest Professional uses &#8220;CreationTime&#8221; to learn the browser during recording. &#8220;CreationTime&#8221; is independent of the title of the browser and is based on when the browser was opened. This is used to differentiate each browser if you are testing in an environment that uses multiple browsers.</p>
<p>If &#8220;name&#8221; is used with the browser window, do the following:</p>
<p>1. Select Tools -&gt; Object Identification Tool.<br />
2. Select &#8220;Web&#8221; from the &#8220;Environment&#8221; drop-down list.<br />
3. You will most likely see &#8220;name&#8221; under the &#8220;Mandatory&#8221; or &#8220;Assistive&#8221; properties lists. Select &#8220;name&#8221; and remove it from the list.<br />
4. You should not have any properties listed under &#8220;Mandatory&#8221; or &#8220;Assistive,&#8221; but you should have &#8220;CreationTime&#8221; selected in the &#8220;Ordinal identifier&#8221; drop-down list.<br />
5. Click  and record a new test.</p>
<p>In the new test, the Browser objects should no longer pick up the &#8220;name&#8221; property, but instead use &#8220;CreationTime&#8221;.<br />
<strong>Option2:</strong><br />
If it&#8217;s necessary to use the &#8220;name&#8221; property, then use a regular expression.</p>
<p>If you must use the &#8220;name&#8221; property to identify the browsers, use a regular expression to handle the dynamic portion of the name</p>
<p><strong>4. Parameterizing object properties updates the shared Object Repository</strong></p>
<p>Update the repository at runtime or make sure each script has the parameter in the data table</p>
<p>You can use the SetTOProperty method to set a property in the Object Repository at runtime rather than parameterizing the object properties.</p>
<p>Object(description).SetTOProperty Property, Value</p>
<p>Where <em>Object</em> is an Astra QuickTest/QuickTest Professional object class. Refer to the QuickTest Object Model Reference (Help -&gt; QuickTest Object Model Reference) to determine if the object class supports the SetTOProperty method.</p>
<p><strong>Property</strong> &#8211; Test object property to set.<br />
<strong>Value</strong> &#8211; The value to assign to the listed property.</p>
<p><strong>Example:</strong><br />
Window(&#8220;WordPad&#8221;).Dialog(&#8220;Insert Object&#8221;).WinRadioButton(&#8220;Create from&#8221;).SetTOProperty &#8220;text&#8221;, DataTable(&#8220;Create_from_text&#8221;, dtGlobalSheet)<br />
Window(&#8220;WordPad&#8221;).Dialog(&#8220;Insert Object&#8221;).WinRadioButton(&#8220;Create from&#8221;).Set</p>
<p>For the above example, the Global data sheet would have a column called &#8220;Create_from_text&#8221; containing the parameterized value. If you use this method and do not parameterize the object properties, the shared Object Repository will not be updated.</p>
<p>If you prefer to parameterize the object properties, you will need to make sure that the data table has the column with the parameterized data within the specified sheet (Global or Local).</p>
<p><strong>5. How to programmatically load a Shared Object Repository</strong></p>
<p>Use the Automation Object Model to specify the path to a Shared Object Repository:</p>
<p>Dim App &#8216;As Application<br />
Set App = CreateObject(&#8220;QuickTest.Application&#8221;)<br />
App.Test.Settings.Resources.ObjectRepositoryPath = &#8220;&#8221;</p>
<p><strong>Note:</strong><br />
Be sure to replace  with the path to the repository you want to use. Now the test will load and use the specified Shared Object Repository.</p>
<p><strong>6. How to select a checkbox in an HTML table based on a value in another column</strong></p>
<p>Use the custom user-defined function WebTableSelectCheckbox</p>
<p><strong>Note:</strong><br />
This function is not part of QuickTest Professional. It is not guaranteed to work and is not supported by Mercury Technical Support. You are responsible for any and all modifications that may be required.</p>
<p>The WebTableSelectCheckbox function will search through a Web (HTML) table, locate the item being searched for, and select the item&#8217;s corresponding checkbox.</p>
<p>WebTableSelectCheckbox (WebTblObj, ItemToLocate, ItemColumn, ChkBoxCol)</p>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td><strong>WebTblObj</strong></td>
<td>The table object which is created before executing the   subprocedure.</td>
</tr>
<tr>
<td><strong>ItemToLocate</strong></td>
<td>The item in the Web table to locate.</td>
</tr>
<tr>
<td><strong>ItemColumn</strong></td>
<td>The column number that needs to be searched.</td>
</tr>
<tr>
<td><strong>ChkBoxCol</strong></td>
<td>The column number that contains the checkboxes.</td>
</tr>
</tbody>
</table>
<p>Sub WebTableSelectCheckbox (WebTblObj, ItemToLocate, ItemColumn, ChkBoxCol)<br />
&#8216; Total number of rows in html_table<br />
TotalRows = WebTblObj.RowCount</p>
<p>&#8216; Remain in loop until all rows are searched or until the item is found.<br />
For row= 3 To TotalRows<br />
&#8216; Retrieve the item from the specified column<br />
ValueShown = WebTblObj.GetCellData(row,ItemColumn)</p>
<p>&#8216; If item retrieved matches the item searching for, set the<br />
&#8216;  checkbox located in the specified column, and exit the for loop.<br />
If (ItemToLocate = Trim(ValueShown)) Then<br />
Set ChkBoxObj = WebTblObj.ChildItem(row, ChkBoxCol,&#8221;WebCheckBox&#8221;, 0)<br />
ChkBoxObj.Set &#8220;ON&#8221;<br />
Exit For<br />
End If<br />
Next<br />
End Sub<br />
<strong>Example:</strong><br />
&#8216; Corresponding column numbers for each column<br />
colSELECT = 1<br />
colNAME = 2<br />
colEMPID = 3<br />
colJOBTITLE = 4<br />
colDEPARTMENT = 5</p>
<p>&#8216; Create an object for the Web table, this object will be passed into the sub procedure.<br />
Set MyObj = Browser(&#8220;Multiple Oper&#8221;).Page(&#8220;Multiple Oper&#8221;).WebTable(&#8220;Direct Reports&#8221;)<br />
&#8216; Locate the &#8220;323214&#8243; object in the colEMPID column and set the checkbox in the first column.<br />
WebTableSelectCheckbox MyObj, &#8220;323214&#8243;, colEMPID, 1</p>
<p>Note:<br />
You can also register the function so it can be used directly with the WebTable object.</p>
<p><strong>7. How to determine the number of links in a WebTable</strong></p>
<p><strong>Note:</strong><br />
These suggestions can be modified to count other objects as well.</p>
<p>Loop through the cells in the table counting the number of links as they are found. You can use the ChildItemCount method to capture the number of links in the specified cell.</p>
<p><strong>Example:</strong><br />
Set oTable = Browser(&#8220;Link Table Example&#8221;).Page(&#8220;Link Table Example&#8221;).WebTable(&#8220;Yahoo&#8221;)<br />
Rows = oTable.RowCount<br />
Links = 0<br />
For i=1 to Rows<br />
For j=1 to oTable.ColumnCount(i)<br />
link_cnt = oTable.ChildItemCount (i,j,&#8221;Link&#8221;)<br />
&#8216; Highlight each link in the table<br />
For l = 0 to link_cnt-1<br />
oTable.ChildItem(i,j,&#8221;Link&#8221;, l).Highlight<br />
Next<br />
links = links + link_cnt<br />
Next<br />
Next</p>
<p>MsgBox &#8220;Number of links in table: &#8221; &amp; links</p>
<p>If you are only testing Internet Explorer, you can also access the DOM to determine how many links are contained in the HTML table.</p>
<p>set linkcol = Browser(&#8220;Link Table Example&#8221;).Page(&#8220;Link Table Example&#8221;).WebTable(&#8220;Yahoo&#8221;).Object.all.tags(&#8220;A&#8221;)<br />
msgbox linkcol.length</p>
<p><strong>8. Where is the Object Repository file for a script located</strong><br />
<strong> </strong></p>
<p>The Object Repository file is stored in the Action directory of the test</p>
<p>The Object Repository is stored as the Resource.mtr file. You will find this file within the test script directory in the folders for your Actions (e.g., Action1).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qatips.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qatips.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qatips.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qatips.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qatips.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qatips.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qatips.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qatips.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qatips.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qatips.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qatips.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qatips.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qatips.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qatips.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qatips.wordpress.com&amp;blog=8639929&amp;post=19&amp;subd=qatips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://qatips.wordpress.com/2009/07/10/quick-test-professional%e2%80%94tips-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e911afbcf4781c48c96e889e5c48c135?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abbey4u</media:title>
		</media:content>
	</item>
		<item>
		<title>Quality Center &#8211; Basics</title>
		<link>http://qatips.wordpress.com/2009/07/10/quality-center-basics/</link>
		<comments>http://qatips.wordpress.com/2009/07/10/quality-center-basics/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 11:18:02 +0000</pubDate>
		<dc:creator>abbey4u</dc:creator>
				<category><![CDATA[QTP]]></category>
		<category><![CDATA[Mercury Quality center]]></category>
		<category><![CDATA[QC]]></category>
		<category><![CDATA[quality center]]></category>

		<guid isPermaLink="false">http://impegno.wordpress.com/?p=17</guid>
		<description><![CDATA[NOTE: You will find it everywhere on the web. I put them together 1. What is Quality center? Quality Center helps you maintain a project of all kinds of tests (such as QuickTest tests, business process tests, manual tests, tests created using other Mercury products, and so on) that cover all aspects of your application&#8217;s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qatips.wordpress.com&amp;blog=8639929&amp;post=17&amp;subd=qatips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>NOTE: You will find it everywhere on the web. I put them together</p>
<p><strong>1. What is Quality center?</strong></p>
<p>Quality Center helps you maintain a project of all kinds of tests (such as QuickTest tests, business process tests, manual tests, tests created using other Mercury products, and so on) that cover all aspects of your application&#8217;s functionality.</p>
<p>Quality Center provides an intuitive and efficient method for scheduling and running tests, collecting results, analyzing the results, and managing test versions. It also features a system for tracking defects, enabling you to monitor defects closely from initial detection until resolution.</p>
<p>2. <strong>What is a Quality center project?</strong></p>
<p>A Quality Center project is a database for collecting and storing data relevant to a testing process.</p>
<p><strong>3. What are the components of Quality  Center?</strong></p>
<p><strong>Requirements</strong>: This is a place where one can store all the requirement of a particular project.</p>
<p><strong>Test plan:</strong> Place where the entire test plan and the respective script can be stored.</p>
<p><strong>Test lab</strong>: Place where we can create test sets and define how and when to run a particular test set</p>
<p><strong>Defect:</strong> Place from where defects can be logged</p>
<p><strong>DashBoard:</strong> Summary of project and graphical representation of test script and defects.</p>
<p><strong>4. What are Test set?</strong></p>
<p>A bunch of test to be scheduled to run.</p>
<p>5. <strong>How to run a test set?</strong></p>
<p><strong> </strong>Test set can be scheduled to run from Quality center using test lab. A test lab consist of following section</p>
<ul>
<li><strong>Execution Grid: </strong>We can select the      test which forms the part of test set.<strong></strong></li>
<li><strong>Execution Flow: </strong>One can define of      the flow of test run and there precedence.<strong></strong></li>
<li><strong>Test Set Properties:</strong>
<ul>
<li>Notification:       People who will be notified about the test run can be added here.</li>
<li>On       Failure: The behavior of QTP after a failure.</li>
<li>Attachments:</li>
<li>Details:       Detail about the test set</li>
</ul>
</li>
</ul>
<p><strong>6. What are the advantages of Using Quality center?</strong></p>
<ul>
<li>Run a      batch of test.</li>
<li>Schedule      the time of run.</li>
<li>Schedule      the test flow.</li>
<li>Email      notification.</li>
<li>Manage      test effectively.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qatips.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qatips.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qatips.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qatips.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qatips.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qatips.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qatips.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qatips.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qatips.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qatips.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qatips.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qatips.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qatips.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qatips.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qatips.wordpress.com&amp;blog=8639929&amp;post=17&amp;subd=qatips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://qatips.wordpress.com/2009/07/10/quality-center-basics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e911afbcf4781c48c96e889e5c48c135?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abbey4u</media:title>
		</media:content>
	</item>
		<item>
		<title>QTP: Function To send Email with attachment</title>
		<link>http://qatips.wordpress.com/2009/07/10/qtp-function-to-send-email-with-attachment/</link>
		<comments>http://qatips.wordpress.com/2009/07/10/qtp-function-to-send-email-with-attachment/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 11:16:35 +0000</pubDate>
		<dc:creator>abbey4u</dc:creator>
				<category><![CDATA[QTP]]></category>
		<category><![CDATA[email]]></category>

		<guid isPermaLink="false">http://impegno.wordpress.com/?p=15</guid>
		<description><![CDATA[NOTE: Not mine, but it works Sub Mail_workbook_Outlook_1() &#8216;Working in 2000-2007 &#8216;This example send the last saved version of the Activeworkbook Dim OutApp As Object Dim OutMail As Object Set OutApp = CreateObject(&#8220;Outlook.Application&#8221;) OutApp.Session.Logon Set OutMail = OutApp.CreateItem(0) On Error Resume Next With OutMail .To = &#8220;xxx@xxx.com&#8221; .CC = &#8220;yyy@yyy.com&#8221; .BCC = &#8220;&#8221; .Subject = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qatips.wordpress.com&amp;blog=8639929&amp;post=15&amp;subd=qatips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>NOTE: Not mine, but it works</p>
<p>Sub Mail_workbook_Outlook_1()<br />
&#8216;Working in 2000-2007<br />
&#8216;This example send the last saved version of the Activeworkbook<br />
Dim OutApp As Object<br />
Dim OutMail As Object</p>
<p>Set OutApp = CreateObject(&#8220;Outlook.Application&#8221;)<br />
OutApp.Session.Logon<br />
Set OutMail = OutApp.CreateItem(0)</p>
<p>On Error Resume Next<br />
With OutMail<br />
.To = &#8220;xxx@xxx.com&#8221;<br />
.CC = &#8220;yyy@yyy.com&#8221;<br />
.BCC = &#8220;&#8221;<br />
.Subject = &#8220;This is the Subject line&#8221;<br />
.Body = &#8220;Hi there&#8221;<br />
.Attachments.Add ActiveWorkbook.FullName<br />
&#8216;You can add other files also like this<br />
&#8216;.Attachments.Add (&#8220;C:\RunResult.xls&#8221;)<br />
.Send   &#8216;or use .Display<br />
End With<br />
On Error GoTo 0</p>
<p>Set OutMail = Nothing<br />
Set OutApp = Nothing<br />
End Sub</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qatips.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qatips.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qatips.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qatips.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qatips.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qatips.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qatips.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qatips.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qatips.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qatips.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qatips.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qatips.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qatips.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qatips.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qatips.wordpress.com&amp;blog=8639929&amp;post=15&amp;subd=qatips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://qatips.wordpress.com/2009/07/10/qtp-function-to-send-email-with-attachment/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e911afbcf4781c48c96e889e5c48c135?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abbey4u</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Edit URL setting of all TEST on Quality Center</title>
		<link>http://qatips.wordpress.com/2009/07/10/how-to-edit-url-setting-of-all-test-on-quality-center/</link>
		<comments>http://qatips.wordpress.com/2009/07/10/how-to-edit-url-setting-of-all-test-on-quality-center/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 11:15:08 +0000</pubDate>
		<dc:creator>abbey4u</dc:creator>
				<category><![CDATA[QTP]]></category>
		<category><![CDATA[QC]]></category>
		<category><![CDATA[quality center]]></category>
		<category><![CDATA[quick test professional]]></category>

		<guid isPermaLink="false">http://impegno.wordpress.com/?p=13</guid>
		<description><![CDATA[Dim TestFolder, NewURL, Usr, Pass, TestName TestFolder=&#8221;Subject\Folder_Name\&#8221; NewURL = &#8220;https://new_URL&#8221; &#8216; Set the Quality center username , password, Folder Name and new URL for the Record and Run settings here. Usr = InputBox(&#8220;Quality Center UserName:&#8221;) Pass = InputBox(&#8220;Quality Center Password:&#8221;) TestFolder = &#8220;Subject\&#8221;&#38;InputBox(&#8220;Specify Folder Name where test is located:&#8221;)&#38;&#8221;\&#8221; NewURL = InputBox(&#8220;New URL:&#8221;) &#8216; Retrive [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qatips.wordpress.com&amp;blog=8639929&amp;post=13&amp;subd=qatips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Dim TestFolder, NewURL, Usr, Pass, TestName<br />
TestFolder=&#8221;Subject\Folder_Name\&#8221;<br />
NewURL = &#8220;https://new_URL&#8221;</p>
<p>&#8216; Set the Quality center username , password, Folder Name and new URL for the Record and Run settings here.</p>
<p>Usr = InputBox(&#8220;Quality Center UserName:&#8221;)<br />
Pass = InputBox(&#8220;Quality Center Password:&#8221;)<br />
TestFolder = &#8220;Subject\&#8221;&amp;InputBox(&#8220;Specify Folder Name where test is located:&#8221;)&amp;&#8221;\&#8221;<br />
NewURL = InputBox(&#8220;New URL:&#8221;)</p>
<p>&#8216; Retrive Test Name into tsetList<br />
Set td=createobject(&#8220;TDApiOle80.TDConnection.1&#8243;)<br />
td.InitConnectionEx &#8220;http://QC_URL/qcbin/&#8221;<br />
td.ConnectProjectEx &#8220;Domain_Name&#8221;, &#8220;Project_Name&#8221;, Usr, Pass<br />
Set tstMgr = td.TreeManager</p>
<p>&#8216;Specify the Folder path in TestPlan, All the scripts under that will be executed.<br />
Set tsttr = tstMgr.NodeByPath(TestFolder)<br />
Set tsetFact = tsttr.TestFactory<br />
Set tsetList = tsetFact.NewList(&#8220;&#8221;)<br />
&#8216;Retrieve the Individual Test Scripts from the Test Plan Folder<br />
For Each tset in tsetList<br />
msgbox tset.Name<br />
Next<br />
&#8216; Create a QuickTest Professional instance<br />
Set qtApp = CreateObject(&#8220;QuickTest.Application&#8221;)</p>
<p>&#8216; Launch QTP and make it visible<br />
qtApp.Launch &#8216; Start QuickTest<br />
qtApp.Visible = True &#8216; Make the QuickTest application visible<br />
qtApp.TDConnection.Connect &#8220;http://QC_URL/qcbin/&#8221;, &#8220;Domain_Name&#8221;, &#8220;Project_Name&#8221;, Usr, Pass, False &#8216; Connect to Quality Center<br />
If qtApp.TDConnection.IsConnected Then &#8216; If connection is successful<br />
Msgbox &#8220;Connected&#8221;<br />
For Each tset in tsetList<br />
msgbox tset.Name<br />
&#8216;Open the specified test<br />
qtApp.Open TestFolder &amp; tset.name, False, False<br />
&#8216; Update the URL<br />
qtApp.Test.Settings.Launchers(&#8220;Web&#8221;).Address = NewURL &#8216;Change URL<br />
&#8216; Save the modified test<br />
qtApp.Test.Save<br />
Next<br />
End If</p>
<p>&#8216; Close the QuickTest Professional instance<br />
qtApp.Quit<br />
&#8216; Release the objects<br />
Set qtApp = Nothing<br />
Set td = Nothing<br />
msgbox &#8220;done&#8221;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qatips.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qatips.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qatips.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qatips.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qatips.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qatips.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qatips.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qatips.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qatips.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qatips.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qatips.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qatips.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qatips.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qatips.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qatips.wordpress.com&amp;blog=8639929&amp;post=13&amp;subd=qatips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://qatips.wordpress.com/2009/07/10/how-to-edit-url-setting-of-all-test-on-quality-center/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e911afbcf4781c48c96e889e5c48c135?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abbey4u</media:title>
		</media:content>
	</item>
		<item>
		<title>QTP: Function to Create XML file and copy XML in it</title>
		<link>http://qatips.wordpress.com/2009/07/10/qtp-function-to-create-xml-file-and-copy-xml-in-it/</link>
		<comments>http://qatips.wordpress.com/2009/07/10/qtp-function-to-create-xml-file-and-copy-xml-in-it/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 11:14:05 +0000</pubDate>
		<dc:creator>abbey4u</dc:creator>
				<category><![CDATA[QTP]]></category>
		<category><![CDATA[quick test professional]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://impegno.wordpress.com/?p=11</guid>
		<description><![CDATA[This will create an xml file and paste the innertext on it Call CreateXMLFile(Innertext, FileName) Function CreateXMLFile(Innertext, FileName) Set doc = XMLUtil.CreateXML() doc.Load Innertext doc.SaveFile &#8220;C:\QTP\Webservice\&#8221; &#38;Filename End Function<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qatips.wordpress.com&amp;blog=8639929&amp;post=11&amp;subd=qatips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This will create an xml file and paste the innertext on it</p>
<p>Call CreateXMLFile(Innertext, FileName)</p>
<p>Function CreateXMLFile(Innertext, FileName)<br />
Set doc = XMLUtil.CreateXML()<br />
doc.Load Innertext<br />
doc.SaveFile &#8220;C:\QTP\Webservice\&#8221; &amp;Filename<br />
End Function</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qatips.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qatips.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qatips.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qatips.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qatips.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qatips.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qatips.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qatips.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qatips.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qatips.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qatips.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qatips.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qatips.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qatips.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qatips.wordpress.com&amp;blog=8639929&amp;post=11&amp;subd=qatips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://qatips.wordpress.com/2009/07/10/qtp-function-to-create-xml-file-and-copy-xml-in-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e911afbcf4781c48c96e889e5c48c135?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abbey4u</media:title>
		</media:content>
	</item>
		<item>
		<title>QTP and Excel: Writes result into excel at run time</title>
		<link>http://qatips.wordpress.com/2009/07/10/qtp-and-excel-writes-result-into-excel-at-run-time/</link>
		<comments>http://qatips.wordpress.com/2009/07/10/qtp-and-excel-writes-result-into-excel-at-run-time/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 11:12:24 +0000</pubDate>
		<dc:creator>abbey4u</dc:creator>
				<category><![CDATA[QTP]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[quick test professional]]></category>

		<guid isPermaLink="false">http://impegno.wordpress.com/?p=9</guid>
		<description><![CDATA[Note: Originally Not Mine: I edited a few lines to make it work. Following is the function which writes result to an excel file at run time. If the file is there it appends the result into last row, otherwise it creates a new excel file and then writes the result Function RunResult(ReturnFlag) Dim fso, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qatips.wordpress.com&amp;blog=8639929&amp;post=9&amp;subd=qatips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Note: Originally Not Mine: I edited a few lines to make it work.</p>
<p>Following is the function which writes result to an excel file at run time. If the file is there it appends the result into last row, otherwise it creates a new excel file and then writes the result</p>
<p>Function RunResult(ReturnFlag)</p>
<p>Dim fso, msg,filename, NewSheet,col<br />
Set fso = CreateObject(&#8220;Scripting.FileSystemObject&#8221;)<br />
filename = &#8220;C:\QTP\RunResult.xls&#8221;<br />
If (fso.FileExists(filename)) Then<br />
&#8216;  Access the Excel Object Model.<br />
Set ExcelObj = CreateObject(&#8220;Excel.Application&#8221;)<br />
ExcelObj.Visible = true</p>
<p>&#8216; Open up the Excel file which has the rows or columns to be hidden.<br />
ExcelObj.Workbooks.Open filename</p>
<p>&#8216; Get the first sheet<br />
&#8216;Set NewSheet = ExcelObj.Sheets(&#8220;result&#8221;)<br />
Set NewSheet = ExcelObj.Sheets.Item(1)</p>
<p>&#8216; Get the last row and column info<br />
ExcelGetLastRowCol NewSheet, row, col</p>
<p>If int(DataTable(&#8220;Excel_Row&#8221;,dtGlobalSheet))&lt;&gt;int(row) Then<br />
row = row+1<br />
DataTable(&#8220;Excel_Row&#8221;,dtGlobalSheet) = row<br />
NewSheet.Cells(row,1) = Environment(&#8220;TestName&#8221;)<br />
NewSheet.Cells(row,1).WrapText = True<br />
NewSheet.Cells(row,2) = Date<br />
NewSheet.Cells(row,3) = Datatable(&#8220;Criteria&#8221;,dtGlobalSheet)<br />
NewSheet.Cells(row,3).WrapText = True<br />
If     InStr(1,ReturnFlag,&#8221;False&#8221;) &lt;&gt; 0 Then<br />
NewSheet.Cells(row,4).Font.ColorIndex = 3<br />
Else<br />
If InStr(1,ReturnFlag,&#8221;Not Done&#8221;) &lt;&gt; 0 Then<br />
NewSheet.Cells(row,4).Font.ColorIndex = 11<br />
Else<br />
NewSheet.Cells(row,4).Font.ColorIndex = 10<br />
End If<br />
End If<br />
NewSheet.Cells(row,4) = ReturnFlag<br />
NewSheet.Cells(row,4).WrapText = True<br />
Else<br />
row = row<br />
col = col+1<br />
If     InStr(1,ReturnFlag,&#8221;False&#8221;) &lt;&gt; 0 Then<br />
NewSheet.Cells(row,col).Font.ColorIndex = 3<br />
NewSheet.Cells(row,col).Font.Bold = True<br />
Else<br />
If InStr(1,ReturnFlag,&#8221;Not Done&#8221;) &lt;&gt; 0 Then<br />
NewSheet.Cells(row,col).Font.ColorIndex = 11<br />
Else<br />
NewSheet.Cells(row,col).Font.ColorIndex = 10<br />
End If<br />
End If<br />
NewSheet.Cells(row,col) = ReturnFlag<br />
NewSheet.Cells(row,col).WrapText = True<br />
End If</p>
<p>&#8216;NewSheet.Cells(row,2) = Datatable(&#8220;OPEN&#8221;,dtlocalSheet)<br />
&#8216; NewSheet.Cells(row,3) = Datatable(&#8220;Criteria&#8221;,dtGlobalSheet)<br />
&#8216;NewSheet.Cells(row,4) = ReturnFlag<br />
&#8216;NewSheet.Cells(row,5) = Datatable(&#8220;CLOSE&#8221;,dtlocalSheet)</p>
<p>&#8216; Release objects and close Excel<br />
&#8216;Set NewSheet = nothing<br />
ExcelObj.ActiveWorkbook.Save<br />
ExcelObj.Quit<br />
Set ExcelObj = nothing</p>
<p>Else</p>
<p>&#8216; create the Excel object<br />
Set ExcelObj = CreateObject(&#8220;Excel.Application&#8221;)</p>
<p>&#8216; add a new Workbooks and a new Sheet<br />
ExcelObj.Workbooks.Add</p>
<p>Set NewSheet = ExcelObj.Sheets.Item(1)<br />
NewSheet.Name = &#8220;Result&#8221;</p>
<p>&#8216; loop through all the information in the Dictionary object<br />
&#8216; and report it to the Excel sheet</p>
<p>NewSheet.Cells(1,1) = &#8220;Test Name&#8221;<br />
NewSheet.Cells(1,1).Font.Bold = True<br />
NewSheet.Cells(1,1).ColumnWidth = 20<br />
NewSheet.Cells(1,2) = &#8220;Run Date&#8221;<br />
NewSheet.Cells(1,2).ColumnWidth = 10<br />
NewSheet.Cells(1,2).Font.Bold = True<br />
NewSheet.Cells(1,3) = &#8220;Criteria&#8221;<br />
NewSheet.Cells(1,3).ColumnWidth = 70<br />
NewSheet.Cells(1,3).Font.Bold = True<br />
NewSheet.Cells(1,4) = &#8220;Case 1&#8243;<br />
NewSheet.Cells(1,4).ColumnWidth = 35<br />
NewSheet.Cells(1,4).Font.Bold = True<br />
NewSheet.Cells(1,5) = &#8220;Case 2&#8243;<br />
NewSheet.Cells(1,5).ColumnWidth = 35<br />
NewSheet.Cells(1,5).Font.Bold = True<br />
NewSheet.Cells(1,6) = &#8220;Case 3&#8243;<br />
NewSheet.Cells(1,6).ColumnWidth = 35<br />
NewSheet.Cells(1,6).Font.Bold = True<br />
NewSheet.Cells(1,7) = &#8220;Case 4&#8243;<br />
NewSheet.Cells(1,7).ColumnWidth = 35<br />
NewSheet.Cells(1,7).Font.Bold = True<br />
NewSheet.Cells(1,8) = &#8220;Case 5&#8243;<br />
NewSheet.Cells(1,8).ColumnWidth = 35<br />
NewSheet.Cells(1,8).Font.Bold = True<br />
NewSheet.Cells(1,9) = &#8220;Case 6&#8243;<br />
NewSheet.Cells(1,9).ColumnWidth = 35<br />
NewSheet.Cells(1,9).Font.Bold = True<br />
NewSheet.Cells(2,1) = Environment(&#8220;TestName&#8221;)<br />
NewSheet.Cells(2,1).WrapText = True<br />
NewSheet.Cells(2,2) = Date<br />
NewSheet.Cells(2,3) = Datatable(&#8220;Criteria&#8221;,dtGlobalSheet)<br />
NewSheet.Cells(2,3).WrapText = True<br />
If InStr(1,ReturnFlag,&#8221;False&#8221;) &lt;&gt; 0 Then<br />
NewSheet.Cells(2,4).Font.ColorIndex = 3<br />
Else<br />
If InStr(1,ReturnFlag,&#8221;Not Done&#8221;) &lt;&gt; 0 Then<br />
NewSheet.Cells(2,4).Font.ColorIndex = 11<br />
Else<br />
NewSheet.Cells(2,4).Font.ColorIndex = 10</p>
<p>End If<br />
End If<br />
NewSheet.Cells(2,4) = ReturnFlag<br />
NewSheet.Cells(2,4).WrapText = True<br />
DataTable(&#8220;Excel_Row&#8221;,dtGlobalSheet) = 2</p>
<p>&#8216; customize the Sheet layout<br />
&#8216;NewSheet.Columns(&#8220;A:A&#8221;).ColumnWidth = 20<br />
&#8216;NewSheet.Columns(&#8220;A:A&#8221;).Font.Bold = True<br />
&#8216;NewSheet.Columns(&#8220;B:B&#8221;).ColumnWidth = 60<br />
&#8216;NewSheet.Columns(&#8220;B:B&#8221;).HorizontalAlignment = -4108 &#8216; xlCenter</p>
<p>&#8216; save the Excel file<br />
&#8216;      Dim Filename<br />
filename = &#8220;C:\QTP\RunResult.xls&#8221;<br />
ExcelObj.ActiveWorkbook.SaveAs Filename</p>
<p>&#8216; close the application and clean the object<br />
ExcelObj.Quit<br />
Set ExcelObj = Nothing<br />
End If<br />
&#8216; ReportFileStatus = msg<br />
End Function</p>
<p>Function ExcelGetLastRowCol(Sheet, Row, Col)<br />
&#8216; Define some Excel constants<br />
const xlUp = -4162<br />
const xlToLeft = -4159</p>
<p>&#8216; Get the position of the last row containing data.<br />
LastRow = Sheet.Range(&#8220;A65536&#8243;).End(xlUp).Row<br />
&#8216; Get the position of the last column containing data for the above row.<br />
colrange = &#8220;IV&#8221; &amp; LastRow<br />
LastCol = Sheet.Range(colrange).End(xlToLeft ).Column</p>
<p>&#8216; Return the row and column values<br />
Row = LastRow<br />
Col = LastCol<br />
End Function</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qatips.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qatips.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qatips.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qatips.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qatips.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qatips.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qatips.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qatips.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qatips.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qatips.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qatips.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qatips.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qatips.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qatips.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qatips.wordpress.com&amp;blog=8639929&amp;post=9&amp;subd=qatips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://qatips.wordpress.com/2009/07/10/qtp-and-excel-writes-result-into-excel-at-run-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e911afbcf4781c48c96e889e5c48c135?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abbey4u</media:title>
		</media:content>
	</item>
		<item>
		<title>QTP: How to select radio button from a radio group</title>
		<link>http://qatips.wordpress.com/2009/07/10/qtp-how-to-select-radio-button-from-a-radio-group/</link>
		<comments>http://qatips.wordpress.com/2009/07/10/qtp-how-to-select-radio-button-from-a-radio-group/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 10:59:14 +0000</pubDate>
		<dc:creator>abbey4u</dc:creator>
				<category><![CDATA[QTP]]></category>
		<category><![CDATA[quick test professional]]></category>
		<category><![CDATA[radio]]></category>
		<category><![CDATA[radiobutton]]></category>
		<category><![CDATA[radiogroup]]></category>
		<category><![CDATA[VBscript]]></category>

		<guid isPermaLink="false">http://impegno.wordpress.com/?p=7</guid>
		<description><![CDATA[Set oDesc1 = Description.Create() oDesc1(&#8220;micclass&#8221;).Value = &#8220;WebRadioGroup&#8221; oDesc1(&#8220;html tag&#8221;).value = &#8220;INPUT&#8221; Set Radiobuttons = Browser(&#8220;Index:=0&#8243;).Page(&#8220;title:=Create.*&#8221;).ChildObjects(oDesc1) NumberOfRadioButtons = Radiobuttons.Count() If NumberOfRadioButtons &#60;&#62; 0 then Radiobuttons.Item(1).Select &#8220;#&#8221; &#38; 0 end if<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qatips.wordpress.com&amp;blog=8639929&amp;post=7&amp;subd=qatips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Set oDesc1 = Description.Create()</p>
<p>oDesc1(&#8220;micclass&#8221;).Value = &#8220;WebRadioGroup&#8221;</p>
<p>oDesc1(&#8220;html tag&#8221;).value = &#8220;INPUT&#8221;</p>
<p>Set Radiobuttons = Browser(&#8220;Index:=0&#8243;).Page(&#8220;title:=Create.*&#8221;).ChildObjects(oDesc1)</p>
<p>NumberOfRadioButtons = Radiobuttons.Count()</p>
<p>If NumberOfRadioButtons &lt;&gt; 0 then</p>
<p>Radiobuttons.Item(1).Select &#8220;#&#8221; &amp; 0</p>
<p>end if</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qatips.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qatips.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qatips.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qatips.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qatips.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qatips.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qatips.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qatips.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qatips.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qatips.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qatips.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qatips.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qatips.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qatips.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qatips.wordpress.com&amp;blog=8639929&amp;post=7&amp;subd=qatips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://qatips.wordpress.com/2009/07/10/qtp-how-to-select-radio-button-from-a-radio-group/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e911afbcf4781c48c96e889e5c48c135?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abbey4u</media:title>
		</media:content>
	</item>
	</channel>
</rss>
