<?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; Quality Center</title>
	<atom:link href="http://www.qapages.org/category/quality-center/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>
	</channel>
</rss>
