<?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>qaPages &#187; Puneet Kalra</title>
	<atom:link href="http://www.qapages.org/author/puneetkalra/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.qapages.org</link>
	<description>qaPages - a collection of Software Testing &#38; Quality pages...</description>
	<lastBuildDate>Tue, 10 Nov 2009 10:36:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Run QTP framework in quality center</title>
		<link>http://www.qapages.org/run-qtp-framework-quality-center/</link>
		<comments>http://www.qapages.org/run-qtp-framework-quality-center/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 06:05:03 +0000</pubDate>
		<dc:creator>Puneet Kalra</dc:creator>
				<category><![CDATA[QTP]]></category>
		<category><![CDATA[Quality Center]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[QC-OTA]]></category>
		<category><![CDATA[running scripts]]></category>

		<guid isPermaLink="false">http://www.qapages.org/?p=7</guid>
		<description><![CDATA[If you have made an excel driven framework in QTP which runs on the local machine and now want to run it from quality center as well without making major changes in the script, then this post is for you.
In this scenario, you can download QTP files from quality center using QC-OTA.
Create folders/subfolders on the drives using vbs and download the appropriate files that are attached to a testset / testsetfolder etc.
Keywords for OTA:-

AttachmentFactory
Attachment
ExtendedStorage
TestSetFolder
TestSetFactory
TestSet

There is one more way to do the same. You need to save the QTP script in ...]]></description>
			<content:encoded><![CDATA[<p>If you have made an excel driven framework in QTP which runs on the local machine and now want to run it from quality center as well without making major changes in the script, then this post is for you.</p>
<p>In this scenario, you can download QTP files from quality center using QC-OTA.</p>
<p>Create folders/subfolders on the drives using vbs and download the appropriate files that are attached to a testset / testsetfolder etc.</p>
<p>Keywords for OTA:-</p>
<ul>
<li>AttachmentFactory</li>
<li>Attachment</li>
<li>ExtendedStorage</li>
<li>TestSetFolder</li>
<li>TestSetFactory</li>
<li>TestSet</li>
</ul>
<p>There is one more way to do the same. You need to save the QTP script in Quality Centre and run it from there under the test set.</p>
<p>To save the attachment as the attachment of the test run, here is the code:</p>
<p>File in file system to attach:</p>
<p>SaveAttachment &#8220;C:\BusServiceMVI_IT_OT_QTP8_081506.xls&#8221;, &#8220;Test Description&#8221;</p>
<p>Public Sub SaveAttachmentToTestObj(TestObj, LocalFilePath, FileDescription)<br />
Set Attachments = TestObj.Attachments<br />
Set Attachment = Attachments.AddItem(Null)<br />
Attachment.FileName = LocalFilePath<br />
Attachment.Description = FileDescription<br />
Attachment.Type = 1&#8242;TDATT_FILE<br />
Attachment.Post &#8216; Commit changes<br />
End Sub</p>
<p>This function saves an attachment to the current test (the test must be existing on TestDirector).</p>
<p><strong>LocalFilePath:</strong> Path indicating the location of the attachment on the local filesystem</p>
<p><strong>FileDescription:</strong> Description of the file (Description field on TestDirector)</p>
<p>Public Function SaveAttachment(LocalFilePath, FileDescription)<br />
SaveAttachmentToTestObj QCUtil.CurrentTest, LocalFilePath, FileDescription<br />
End Function</p>
<p>Just remember, all you need is QTP and access to a project created in quality Center. This is all that is required. Rest can be done by the code.</p>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.qapages.org/run-qtp-framework-quality-center/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Designing Test Object Configuration XML File in QTP</title>
		<link>http://www.qapages.org/designing-test-object-configuration-xml-file-qtp/</link>
		<comments>http://www.qapages.org/designing-test-object-configuration-xml-file-qtp/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 07:43:24 +0000</pubDate>
		<dc:creator>Puneet Kalra</dc:creator>
				<category><![CDATA[QTP]]></category>
		<category><![CDATA[test object class definition]]></category>
		<category><![CDATA[Test Object Configuration]]></category>

		<guid isPermaLink="false">http://www.qapages.org/?p=3</guid>
		<description><![CDATA[In this file, you define any custom test object classes that you want QTP to use to represent your custom controls in tests and components. Define a test object class for each custom control that cannot be adequately represented by an existing Delphi test object class.
In a test object configuration XML, you define the test object classes (for example, their identification properties, the test object methods they support, and so on). To do this you define a ClassInfo element for each test object class. In addition, you define the name ...]]></description>
			<content:encoded><![CDATA[<p>In this file, you define any custom test object classes that you want QTP to use to represent your custom controls in tests and components. Define a test object class for each custom control that cannot be adequately represented by an existing Delphi test object class.</p>
<p>In a test object configuration XML, you define the test object classes (for example, their identification properties, the test object methods they support, and so on). To do this you define a <strong>ClassInfo</strong> element for each test object class. In addition, you define the name of the environment or custom toolkit for which the test object classes are intended (in the <strong>TypeInformation\PackageName</strong> attribute), and the QTP add-in which these test object classes extend (in the <strong>TypeInformation\AddinName</strong> attribute). If the relevant add-in is not loaded when QTP opens, QTP does not load the information in this XML. Similarly, if the name of the environment or custom toolkit is displayed in the Add-in Manager dialog box and its check box is not selected, the information in this XML is not loaded.</p>
<p>A test object class definition can include the following:</p>
<ul>
<li>The name of the new test object class and its attributes, including the base class—the test object class that the new test object class extends. The test object class name must be unique among all of the environments whose support a QTP user might load simultaneously.</li>
<li>The generic type for the new test object class, if you want the new test object class to belong to a different generic type than the one to which its base class belongs. (For example, if your new test object class extends DelphiObject (whose generic type is <strong>object</strong>), but you would like QTP to group this test object class with the <strong>edit</strong> test object classes.)</li>
<li>The path of the icon file to use for this test object class (Optional. If not defined, a default icon is used.) The file can be a <strong>.dll</strong> or <strong>.ico</strong> file.</li>
<li>A context-sensitive Help topic to open when F1 is pressed for the test object in the Keyword View or Expert View. The definition includes the Help file path and the relevant Help ID within the file.</li>
<li>A list of methods for the test object class</li>
<li>The test object operation that is selected by default in the Keyword View and Step Generator when a step is generated for an object of this class.</li>
<li>A list of identification properties for the test object class</li>
</ul>
<p><strong>Note:</strong> You can also create a definition for an existing test object class in the test object configuration XML. This definition is added to the existing definition of this test object class, affecting all test objects of this class. It is therefore not recommended to modify existing test object classes in this way.</p>
<p>If you add a test object method, it appears in the list of test object methods in QTP, but if you use the test object method in a test, and it is not implemented for the specific object, a run-time error occurs.</p>
<p>If you add test object methods to existing test object classes, you might add a prefix to the method name that indicates the toolkit support for which you added the method (for example, <strong>CustomButtonClick</strong>, <strong>CustomEditSet</strong>). This enables test designers to easily identify the custom methods and use them in test steps only if they know that the custom method is supported for the specific object.</p>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.qapages.org/designing-test-object-configuration-xml-file-qtp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
