<?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/"
	>

<channel>
	<title>QTP SRIDHAR</title>
	<atom:link href="http://qtpsridhar.blog.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://qtpsridhar.blog.com</link>
	<description></description>
	<pubDate>Mon, 10 Nov 2008 07:17:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>QTP COURSE CONTENT</title>
		<link>http://qtpsridhar.blog.com/2008/11/10/qtp-course-content/</link>
		<comments>http://qtpsridhar.blog.com/2008/11/10/qtp-course-content/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 07:17:59 +0000</pubDate>
		<dc:creator>siri</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p class="MsoNormal" style="margin-left: 1.75in; line-height: 150%;"><span>Q T P 9 .2</span></p>
<p class="MsoNormal" style="margin-left: 0.25in; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%;">&#160;</span><strong><span style="font-size: 10pt; line-height: 150%;">Introduction to Automated Testing</span></strong> <span style="font-size: 10pt; line-height: 150%;"><br />
<!--[if !supportLineBreakNewLine]--></span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Need of automation Testing</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Difference between manual and automation Testing</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Requirements to move from WinRunner to QTP</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Introduction to QTP and Discussion on various versions of QTP</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Understanding the complete test process of QTP</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Discussion on the Difference between process and QTP process</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Discussion on various components of the QTP window</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Implementing GUI and Bit map Regression Test</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Understanding Add-in manager</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Working with Record and Run settings Tool options</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Working with active screen</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Working with debug viewer</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Creating Test Scenarios /Components</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Creating the basic script</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Understanding the Objects Repository</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Working with shared and per action object Repository</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Working with the object spy option</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Working with the check points for both windows and web applications</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Working with the run time properties of various GUI objects</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Understanding the Environment Variables</span></p>
<p class="MsoNormal" style="margin-left: 0.25in; line-height: 150%;"><strong><span style="font-size: 10pt; line-height: 150%;">Actions</span></strong></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Introduction</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Creating New Actions</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Splitting Actions</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Renaming Actions</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Types of Actions</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Normal Actions</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%;">&#160;</span><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Reusable Actions</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">External Actions</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><strong><span style="font-size: 10pt; line-height: 150%;">Functions</span></strong></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Need of Functions</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Creating User Defined Functions</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Working with User Defined Functions</span></p>
<p class="MsoNormal" style="margin-left: 0.25in; line-height: 150%;"><strong><span style="font-size: 10pt; line-height: 150%;">Libraries</span></strong></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;"><span>&#160;</span>Introduction<span>&#160;&#160;&#160;&#160;</span></span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Creating Library files</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Associating Library file</span></p>
<p class="MsoNormal" style="margin-left: 0.25in; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%;">&#160;</span><strong><span style="font-size: 10pt; line-height: 150%;">Step Generators</span></strong></p>
<p class="MsoNormal" style="margin-left: 0.25in; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%;">&#160;</span><strong><span style="font-size: 10pt; line-height: 150%;">Additional concepts</span></strong></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">File System Object</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Environment variables</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Database Connections</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">MS Access</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">SQL Server</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Oracle</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Creating Log Files</span></p>
<p class="MsoNormal" style="margin-left: 0.25in; line-height: 150%;"><strong><span style="font-size: 10pt; line-height: 150%;">&#160;Virtual object Configuration</span></strong></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><strong><span style="font-size: 10pt; line-height: 150%;">Recovery Scenario Manager</span></strong></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Introduction</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Types of Trigger events</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Creating the Recovery files</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Associating the Recovery files</span></p>
<p class="MsoNormal" style="margin-left: 0.25in; line-height: 150%;"><strong><span style="font-size: 10pt; line-height: 150%;">&#160;Descriptive Programming</span></strong></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Introduction</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Creating Descriptive Scripts Advantages</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Regular Expressions</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Introduction</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Advantages of Regular Expressions</span></p>
<p class="MsoNormal" style="margin-left: 0.25in; line-height: 150%;"><strong><span style="font-size: 10pt; line-height: 150%;">Reporting Methods</span></strong> <strong><span style="font-size: 10pt; line-height: 150%;"><br />
Working with the option result in test log</span></strong></p>
<p class="MsoNormal" style="margin-left: 0.25in; line-height: 150%;"><strong><span style="font-size: 10pt; line-height: 150%;"><br />
Creating a separate test Log File<br />
Writing the results <span>&#160;</span>testing to the log File<br />
Reading the data from the text Files<br />
<span>XML Operations</span><br />
<span>ADVANCED OPTIONS</span><br />
<span>VB Scripting Language Options</span></span></strong></p>
<p class="MsoNormal" style="margin-left: 0.25in; line-height: 150%;"><strong><span style="font-size: 10pt; line-height: 150%;">Utility Objects</span></strong></p>
<p class="MsoNormal" style="margin-left: 0.25in; line-height: 150%;"><strong><span style="font-size: 10pt; line-height: 150%;"><span>Coding standards for QTP</span><br />
<br />
<span>Frame work for the QTP Automation</span><br />
Sessions on writing the script for a Window /Web based applications</span></strong></p>
<p class="MsoNormal" style="margin-left: 0.25in; line-height: 150%;"><strong><span style="font-size: 10pt; line-height: 150%;">Framework Implementation</span></strong></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Linear</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Modular</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Keyword Driven</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Hybrid</span></p>
<p class="MsoNormal" style="line-height: 150%;"><strong>&#160;</strong><strong>Quality</strong> <strong>Center</strong> <strong>and Connections to</strong> <strong>Quality</strong> <strong>Center</strong></p>
<p class="MsoNormal" style="line-height: 150%;"><br /></p>

]]></description>
			<content:encoded><![CDATA[<div>
<p class="MsoNormal" style="margin-left: 1.75in; line-height: 150%;"><span>Q T P 9 .2</span></p>
<p class="MsoNormal" style="margin-left: 0.25in; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%;">&#160;</span><strong><span style="font-size: 10pt; line-height: 150%;">Introduction to Automated Testing</span></strong> <span style="font-size: 10pt; line-height: 150%;"><br />
<!--[if !supportLineBreakNewLine]--></span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Need of automation Testing</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Difference between manual and automation Testing</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Requirements to move from WinRunner to QTP</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Introduction to QTP and Discussion on various versions of QTP</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Understanding the complete test process of QTP</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Discussion on the Difference between process and QTP process</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Discussion on various components of the QTP window</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Implementing GUI and Bit map Regression Test</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Understanding Add-in manager</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Working with Record and Run settings Tool options</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Working with active screen</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Working with debug viewer</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Creating Test Scenarios /Components</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Creating the basic script</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Understanding the Objects Repository</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Working with shared and per action object Repository</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Working with the object spy option</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Working with the check points for both windows and web applications</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Working with the run time properties of various GUI objects</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Understanding the Environment Variables</span></p>
<p class="MsoNormal" style="margin-left: 0.25in; line-height: 150%;"><strong><span style="font-size: 10pt; line-height: 150%;">Actions</span></strong></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Introduction</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Creating New Actions</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Splitting Actions</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Renaming Actions</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Types of Actions</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Normal Actions</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%;">&#160;</span><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Reusable Actions</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">External Actions</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><strong><span style="font-size: 10pt; line-height: 150%;">Functions</span></strong></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Need of Functions</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Creating User Defined Functions</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Working with User Defined Functions</span></p>
<p class="MsoNormal" style="margin-left: 0.25in; line-height: 150%;"><strong><span style="font-size: 10pt; line-height: 150%;">Libraries</span></strong></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;"><span>&#160;</span>Introduction<span>&#160;&#160;&#160;&#160;</span></span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Creating Library files</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Associating Library file</span></p>
<p class="MsoNormal" style="margin-left: 0.25in; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%;">&#160;</span><strong><span style="font-size: 10pt; line-height: 150%;">Step Generators</span></strong></p>
<p class="MsoNormal" style="margin-left: 0.25in; line-height: 150%;"><span style="font-size: 10pt; line-height: 150%;">&#160;</span><strong><span style="font-size: 10pt; line-height: 150%;">Additional concepts</span></strong></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">File System Object</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Environment variables</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Database Connections</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">MS Access</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">SQL Server</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Oracle</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Creating Log Files</span></p>
<p class="MsoNormal" style="margin-left: 0.25in; line-height: 150%;"><strong><span style="font-size: 10pt; line-height: 150%;">&#160;Virtual object Configuration</span></strong></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><strong><span style="font-size: 10pt; line-height: 150%;">Recovery Scenario Manager</span></strong></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Introduction</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Types of Trigger events</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Creating the Recovery files</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Associating the Recovery files</span></p>
<p class="MsoNormal" style="margin-left: 0.25in; line-height: 150%;"><strong><span style="font-size: 10pt; line-height: 150%;">&#160;Descriptive Programming</span></strong></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Introduction</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Creating Descriptive Scripts Advantages</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Regular Expressions</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Introduction</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Advantages of Regular Expressions</span></p>
<p class="MsoNormal" style="margin-left: 0.25in; line-height: 150%;"><strong><span style="font-size: 10pt; line-height: 150%;">Reporting Methods</span></strong> <strong><span style="font-size: 10pt; line-height: 150%;"><br />
Working with the option result in test log</span></strong></p>
<p class="MsoNormal" style="margin-left: 0.25in; line-height: 150%;"><strong><span style="font-size: 10pt; line-height: 150%;"><br />
Creating a separate test Log File<br />
Writing the results <span>&#160;</span>testing to the log File<br />
Reading the data from the text Files<br />
<span>XML Operations</span><br />
<span>ADVANCED OPTIONS</span><br />
<span>VB Scripting Language Options</span></span></strong></p>
<p class="MsoNormal" style="margin-left: 0.25in; line-height: 150%;"><strong><span style="font-size: 10pt; line-height: 150%;">Utility Objects</span></strong></p>
<p class="MsoNormal" style="margin-left: 0.25in; line-height: 150%;"><strong><span style="font-size: 10pt; line-height: 150%;"><span>Coding standards for QTP</span></p>
<p><span>Frame work for the QTP Automation</span><br />
Sessions on writing the script for a Window /Web based applications</span></strong></p>
<p class="MsoNormal" style="margin-left: 0.25in; line-height: 150%;"><strong><span style="font-size: 10pt; line-height: 150%;">Framework Implementation</span></strong></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Linear</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Modular</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Keyword Driven</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-size: 10pt; line-height: 150%; font-family: Wingdings;"><span>v<span>&#160;&#160;&#160;&#160;&#160;</span></span></span> <!--[endif]--><span style="font-size: 10pt; line-height: 150%;">Hybrid</span></p>
<p class="MsoNormal" style="line-height: 150%;"><strong>&#160;</strong><strong>Quality</strong> <strong>Center</strong> <strong>and Connections to</strong> <strong>Quality</strong> <strong>Center</strong></p>
<p class="MsoNormal" style="line-height: 150%;"></p>
</div>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://qtpsridhar.blog.com/2008/11/10/qtp-course-content/feed/</wfw:commentRss>
		</item>
		<item>
		<title>QTP SAMPLE VB SCRIPTS</title>
		<link>http://qtpsridhar.blog.com/2008/11/10/qtp-sample-vb-scripts/</link>
		<comments>http://qtpsridhar.blog.com/2008/11/10/qtp-sample-vb-scripts/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 07:06:58 +0000</pubDate>
		<dc:creator>siri</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial; color: blue;">Login Window:-</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial; color: blue;">&#160;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial; color: blue;">****To enter Data in U.N and Password fields...</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial; color: blue;">Browser("Yahoo").Page("Yahoo").Webedit("UserID").Set"Aruna"<br />
Browser("Yahoo").Page("Yahoo").Webedit("Password").Set"Aruna"</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial; color: blue;">****Click on Login button***</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial; color: blue;">Browser("Yahoo").Page("Yahoo").Webbutton("Login").Click</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Arial;">&#160;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial; color: blue;">***Clicking on Link****</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial; color: blue;">Browser("Yahoo").Page("Yahoo").Link("Inbox").Click</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Arial;">&#160;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial; color: blue;">***Getting value from list box***</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial; color: blue;">Browser("Yahoo").Page("Yahoo").Weblist("List").GetRoProperty("text") ....here text is the property name..</span></p>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 1.<span>  </span>To Count and display Object Properties and Values</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Dim Obj1,ObPrp</tt>
</pre>
<pre>
<tt>Set Obj1=Window ("Flight Reservation")</tt>
</pre>
<pre>
<tt>Set ObPrp=Obj1.GetToProperties</tt>
</pre>
<pre>
<tt>For i=0 To ObPrp.Count -1</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt><span>        </span>msgbox i+1 &#38; " - " &#38; ObPrp(i).Name &#38; " ....... “&#38; ObPrp(i).Value</tt>
</pre>
<pre>
<tt>Next</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>'2 . Login Verification with constant input values</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>InvokeApplication "C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Agent Name:").Set "Pulse"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Password:").Set "Mury"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>If Dialog("Login").Dialog("Flight Reservations").Exist Then</tt>
</pre>
<pre>
<tt>Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Dialog("Login").WinButton("Cancel").Click</tt>
</pre>
<pre>
<tt>Reporter.ReportEvent 1,"Login Verify","Invalid Values...Test Failed"</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"</tt>
</pre>
<pre>
<tt>Reporter.ReportEvent 0,"Login Verify","Valid Inputs...Test Passed"</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 3. Login Verification with Runtime Input Values</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Dim Flights,Agt,Pwd</tt>
</pre>
<pre>
<tt>Flights="C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe"</tt>
</pre>
<pre>
<tt>For i=1 To 4</tt>
</pre>
<pre>
<tt>Agt=InputBox("Enter Agent Name Plzzz")</tt>
</pre>
<pre>
<tt>Pwd=InputBox("Enter PAssword ..Plzzz")</tt>
</pre>
<pre>
<tt>InvokeApplication Flights</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Agent Name:").Set sreedhar</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Password:").Set Pwd</tt>
</pre>
<pre>
<tt>Dialog("Login").WinButton("OK").Click</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>If Dialog("Login").Dialog("Flight Reservations").Exist Then</tt>
</pre>
<pre>
<tt> wait(3)</tt>
</pre>
<pre>
<tt><span>  </span>Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>wait(3)</tt>
</pre>
<pre>
<tt> Dialog("Login").WinButton("Cancel").Click</tt>
</pre>
<pre>
<tt>Reporter.ReportEvent 1,"Login","Test Failed"</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"</tt>
</pre>
<pre>
<tt>Reporter.ReportEvent 0,"Login","Test Passed"</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt>Next</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 4. Login with Parameterization ... Data Table (Global Sheet) Should </tt>
</pre>
<pre>
<tt>contain Values</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>SystemUtil.Run "C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe","","C:\Program Files\Mercury </tt>
</pre>
<pre>
<tt>Interactive\QuickTest Professional\samples\flight\app","open"</tt>
</pre>
<pre>
<tt>'InvokeApplication "C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Agent Name:").Set DataTable("Agent_Name", </tt>
</pre>
<pre>
<tt>dtGlobalSheet)</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Password:").Set DataTable("Pword", </tt>
</pre>
<pre>
<tt>dtGlobalSheet)</tt>
</pre>
<pre>
<tt>Dialog("Login").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>If Dialog("Login").Dialog("Flight Reservations").Exist Then</tt>
</pre>
<pre>
<tt>Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Dialog("Login").WinButton("Cancel").Click</tt>
</pre>
<pre>
<tt>Reporter.ReportEvent 1,"Login Verify","Invalid Values...Test Failed"</tt>
</pre>
<pre>
<tt>DataTable.Value("Act_Res")="Fail"</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"</tt>
</pre>
<pre>
<tt>Reporter.ReportEvent 0,"Login Verify","Valid Inputs...Test Passed"</tt>
</pre>
<pre>
<tt>DataTable.Value("Act_Res")="Pass"</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt><span>        </span>er=DataTable("Exp_Res",dtGlobalSheet)</tt>
</pre>
<pre>
<tt><span>        </span>ar=DataTable("Act_Res",dtGlobalSheet)</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt><span>        </span>If StrComp(er,ar)=0 Then</tt>
</pre>
<pre>
<tt><span>               </span>DataTable.Value("Remarks")="OK"</tt>
</pre>
<pre>
<tt><span>        </span>Else</tt>
</pre>
<pre>
<tt><span>               </span>DataTable.Value("Remarks")="Defect"</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt><span>        </span>DataTable.Export("E:\QTP730\LoginResults.xls")</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>'5.<span>   </span>Compare Total Tickets and Amount for First 5 Orders</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Tot_ts=0</tt>
</pre>
<pre>
<tt>Tot_amt=0</tt>
</pre>
<pre>
<tt>For Ord=1 To 5</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Open </tt>
</pre>
<pre>
<tt>Order..."</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Order </tt>
</pre>
<pre>
<tt>No.").Set "ON"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit_2").Set </tt>
</pre>
<pre>
<tt>Ord</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Tkts=Window("Flight </tt>
</pre>
<pre>
<tt>Reservation").WinEdit("Tickets:").GetROProperty("text")</tt>
</pre>
<pre>
<tt>Tot_ts = Tot_ts + Cint(Tkts)</tt>
</pre>
<pre>
<tt>Amt=Window("Flight </tt>
</pre>
<pre>
<tt>Reservation").WinEdit("Total:").GetROProperty("text")</tt>
</pre>
<pre>
<tt>Tot_amt = Tot_amt + Cint(Amt)</tt>
</pre>
<pre>
<tt>Next</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>msgbox "Total Tickets are....." &#38; Tot_ts</tt>
</pre>
<pre>
<tt>msgbox "Total Amount is....." &#38; Tot_amt</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 6. To compare Customer Name and No.of tickets (Get and compare </tt>
</pre>
<pre>
<tt>Paroperty Values)</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Exp_Cna="Suresh"</tt>
</pre>
<pre>
<tt>Exp_tkts=5</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Open </tt>
</pre>
<pre>
<tt>Order..."</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Order </tt>
</pre>
<pre>
<tt>No.").Set "ON"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit_2").Set </tt>
</pre>
<pre>
<tt>"15"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Act_Cna=Window("Flight </tt>
</pre>
<pre>
<tt>Reservation").WinEdit("Name:").GetROProperty("text")</tt>
</pre>
<pre>
<tt>Act_Tkts=WinDow("Flight </tt>
</pre>
<pre>
<tt>Reservation").WinEdit("Tickets:").GetROProperty("text")</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>If StrComp(Exp_Cna,Act_Cna)=0 Then</tt>
</pre>
<pre>
<tt><span>        </span>Reporter.ReportEvent 0,"Cust_Name","Customer is OK<span>   </span>" &#38; Exp_Cna &#38; " </tt>
</pre>
<pre>
<tt>...." &#38; Act_Cna</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt><span>        </span>Reporter.ReportEvent 1,"Cust_Name","Customer is Not OK<span>   </span>" &#38; Exp_Cna &#38; </tt>
</pre>
<pre>
<tt>" ...." &#38; Act_Cna</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt>If Exp_tkts=Cint(Act_tkts) Then</tt>
</pre>
<pre>
<tt><span>        </span>Reporter.ReportEvent 0,"No_Tickets","Tickets are OK<span>   </span>" &#38; Exp_tkts &#38; " </tt>
</pre>
<pre>
<tt>...." &#38; Act_tkts</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt><span>        </span>Reporter.ReportEvent 1,"No_Tickets","Tickets are Not OK<span>   </span>" &#38; Exp_tkts </tt>
</pre>
<pre>
<tt>&#38; " ...." &#38; Act_tkts</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>'7.<span>  </span>Example of CrateObject....to execute an application</tt>
</pre>
<pre>
<tt>'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Dim MyObj</tt>
</pre>
<pre>
<tt>Set MyObj = CreateObject("Wscript.Shell")</tt>
</pre>
<pre>
<tt>MyObj.Run "Excel.Exe"</tt>
</pre>
<pre>
<tt>wait(5)</tt>
</pre>
<pre>
<tt>MyObj.Run "Notepad.Exe"</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 8. Object Verification</tt>
</pre>
<pre>
<tt>'~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Dim Flights,Calc</tt>
</pre>
<pre>
<tt>Calc="c:\windows\system32\calc.exe"</tt>
</pre>
<pre>
<tt>Flights="C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe"</tt>
</pre>
<pre>
<tt>InvokeApplication Calc</tt>
</pre>
<pre>
<tt>'InvokeApplication Flights</tt>
</pre>
<pre>
<tt>wait(3)</tt>
</pre>
<pre>
<tt>If Dialog("Login").Exist Then</tt>
</pre>
<pre>
<tt><span>        </span>msgbox "Login Existed"</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt><span>        </span>msgbox "Login Not Existed"</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 9.<span>  </span>to get a single Property Value</tt>
</pre>
<pre>
<tt>'~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Dim Dlog,Agt</tt>
</pre>
<pre>
<tt>Set Dlog = Dialog("Login")</tt>
</pre>
<pre>
<tt>Set Agt = Dlog.WinEdit("Agent Name:")</tt>
</pre>
<pre>
<tt>agent=Agt.GetROProperty("text")</tt>
</pre>
<pre>
<tt>msgbox "Agent Name is ......" &#38; agent</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>'10.<span>  </span>To get all property values of an object</tt>
</pre>
<pre>
<tt>'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Dim Dlog,Agt,Props</tt>
</pre>
<pre>
<tt>Set Dlog = Dialog("Login")</tt>
</pre>
<pre>
<tt>Set Agt = Dlog.WinEdit("Agent Name:")</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Set Props = Agt.GetToProperties</tt>
</pre>
<pre>
<tt>msgbox "Total Properties are...." &#38; Props.Count</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt><span>        </span>For i=0 To Props.Count -1</tt>
</pre>
<pre>
<tt>msgbox i+1 &#38; ".<span>  </span>Property...." &#38; Props(i).Name &#38; " ....." &#38; </tt>
</pre>
<pre>
<tt>Props(i).Value</tt>
</pre>
<pre>
<tt><span>        </span>Next</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 11. Text Comparision</tt>
</pre>
<pre>
<tt>'~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>agt=InputBox("Agent Name Plzzz....")</tt>
</pre>
<pre>
<tt>Expt_Agt="Pulse"</tt>
</pre>
<pre>
<tt>InvokeApplication "C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Agent Name:").Set agt</tt>
</pre>
<pre>
<tt>Act_Agt=Dialog("Login").WinEdit("Agent Name:").GetROProperty("text")</tt>
</pre>
<pre>
<tt>If StrComp(Expt_Agt,Act_Agt)=0 Then</tt>
</pre>
<pre>
<tt><span>        </span>Dialog("Login").WinEdit("Password:").Set "Mercury"</tt>
</pre>
<pre>
<tt><span>        </span>Dialog("Login").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt><span>        </span>msgbox "Expt..." &#38; Expt_Agt &#38; " ..Actual ...." &#38;Act_Agt</tt>
</pre>
<pre>
<tt><span>        </span>Dialog("Login").WinButton("Cancel").Click</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 12. Working with Transactions</tt>
</pre>
<pre>
<tt>'~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Services.StartTransaction "test1"</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Services.StartTransaction "Log1"</tt>
</pre>
<pre>
<tt>Window("Program Manager").WinListView("SysListView32").Activate </tt>
</pre>
<pre>
<tt>"QTPflights"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Agent Name:").Set "asasasa"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Password:").SetSecure </tt>
</pre>
<pre>
<tt>"4484160870f801d29b69e178723a172e57e00b6a"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Move 87,74</tt>
</pre>
<pre>
<tt>Services.EndTransaction "Log1"</tt>
</pre>
<pre>
<tt>Services.StartTransaction "op1"</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Services.StartTransaction "Ins1"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;New Order"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinObject("Date of Flight:").Type "060606"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinComboBox("Fly From:").Select "</tt><tt>London</tt><tt>"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinComboBox("Fly To:").Select "</tt><tt>Frankfurt</tt><tt>"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinButton("FLIGHT").Click</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Flights </tt>
</pre>
<pre>
<tt>Table").WinList("From").Activate "12492<span>   </span>LON<span>   </span></tt><tt>10:24 AM</tt><tt><span>   </span>FRA<span>   </span></tt><tt>11:09 AM</tt><tt><span>   </span>AA<span>     </span>$104.00"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinEdit("Name:").Set "asdfgh"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinButton("Insert Order").Click</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;New Order"</tt>
</pre>
<pre>
<tt>Services.EndTransaction "Ins1"</tt>
</pre>
<pre>
<tt>Services.StartTransaction "Fax1"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Open </tt>
</pre>
<pre>
<tt>Order..."</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Order </tt>
</pre>
<pre>
<tt>No.").Set "ON"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit").Set </tt>
</pre>
<pre>
<tt>"1"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Fax Order..."</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Fax Order No. 1").WinObject("Fax </tt>
</pre>
<pre>
<tt>Number:").Type "12122121212"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Fax Order No. </tt>
</pre>
<pre>
<tt>1").WinButton("Send").Click</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;New Order"</tt>
</pre>
<pre>
<tt>Services.EndTransaction "Fax1"</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Services.EndTransaction "op1"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"</tt>
</pre>
<pre>
<tt>Services.EndTransaction "test1"</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>****** Run the Script and open Test Result and from Test Summary select </tt>
</pre>
<pre>
<tt>End Transaction Statement</tt>
</pre>
<pre>
<tt>will diasplays the Operation Execution time.</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Working with Actions:</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Working with Actions:</tt>
</pre>
<pre>
<tt><span>        </span>1. Recording into Multiple Actions</tt>
</pre>
<pre>
<tt><span>        </span>2. Slipt Action </tt>
</pre>
<pre>
<tt><span>        </span>3. Copy of Action</tt>
</pre>
<pre>
<tt><span>        </span>4. Call to Action</tt>
</pre>
<pre>
<tt><span>        </span>5. Change Action Properties</tt>
</pre>
<pre>
<tt><span>        </span>6. Types of Actions</tt>
</pre>
<pre>
<tt><span>               </span>a. Internal Actions</tt>
</pre>
<pre>
<tt><span>               </span>b. External Actions</tt>
</pre>
<pre>
<tt><span>               </span>c. Nested Actions</tt>
</pre>
<pre>
<tt><span>               </span>d. Reusable Actions</tt>
</pre>
<pre>
<tt><span>               </span>e. Non-Reusable Actions</tt>
</pre>
<pre>
<tt><span>        </span>7. Parameterization with Action</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>'To Create an Excel Sheet</tt>
</pre>
<pre>
<tt>Dim ExcelSheet</tt>
</pre>
<pre>
<tt>Set ExcelSheet = CreateObject("Excel.Sheet")</tt>
</pre>
<pre>
<tt>ExcelSheet.Application.Visible = True</tt>
</pre>
<pre>
<tt>ExcelSheet.ActiveSheet.Cells(1,1).Value = "Surya"</tt>
</pre>
<pre>
<tt>ExcelSheet.ActiveSheet.Cells(1,2).Value = "Testing"</tt>
</pre>
<pre>
<tt>ExcelSheet.ActiveSheet.Cells(1,3).Value = "KPHB"</tt>
</pre>
<pre>
<tt>ExcelSheet.ActiveSheet.Cells(1,4).Value = "No DUE"</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>ExcelSheet.SaveAs "d:\class6qtp\mysheet.XLS"</tt>
</pre>
<pre>
<tt>ExcelSheet.Application.Quit</tt>
</pre>
<pre>
<tt>Set ExcelSheet = Nothing</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>'Open and Execute QTP Test with VBS</tt>
</pre>
<pre>
<tt>Dim Ttool,Qtest</tt>
</pre>
<pre>
<tt>Qtest= "d:\class6qtp\LoginTest1"</tt>
</pre>
<pre>
<tt>Set Ttool=CreateObject("QuickTest.Application")</tt>
</pre>
<pre>
<tt>Ttool.Launch</tt>
</pre>
<pre>
<tt>Ttool.Visible=True</tt>
</pre>
<pre>
<tt>Ttool.open Qtest</tt>
</pre>
<pre>
<tt>Ttool.Test.Run</tt>
</pre>
<pre>
<tt>Ttool.Test.close</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Create environment variables:</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>&#60;Environment&#62;</tt>
</pre>
<pre>
<tt><span>        </span>&#60;Variable&#62;</tt>
</pre>
<pre>
<tt><span>               </span>&#60;Name&#62;agent&#60;/Name&#62;</tt>
</pre>
<pre>
<tt><span>               </span>&#60;Value&#62;Pulse&#60;/Value&#62;</tt>
</pre>
<pre>
<tt><span>        </span>&#60;/Variable&#62;</tt>
</pre>
<pre>
<tt><span>        </span>&#60;Variable&#62;</tt>
</pre>
<pre>
<tt><span>               </span>&#60;Name&#62;flights&#60;/Name&#62;</tt>
</pre>
<pre>
<tt><span>               </span>&#60;Value&#62;"C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe"&#60;/Value&#62;</tt>
</pre>
<pre>
<tt><span>        </span>&#60;/Variable&#62;</tt>
</pre>
<pre>
<tt><span>        </span>&#60;Variable&#62;</tt>
</pre>
<pre>
<tt><span>               </span>&#60;Name&#62;password&#60;/Name&#62;</tt>
</pre>
<pre>
<tt><span>               </span>&#60;Value&#62;mercury&#60;/Value&#62;</tt>
</pre>
<pre>
<tt><span>        </span>&#60;/Variable&#62;</tt>
</pre>
<pre>
<tt>&#60;/Environment&#62;</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<p><em>Plain Text Attachment</em> [ <a href="http://in.f86.mail.yahoo.com/ym/ShowLetter?box=Inbox&#38;MsgId=5404_4485934_35559_1691_10007_0_1181_28068_3333472759&#38;bodyPart=3&#38;YY=37354&#38;y5beta=yes&#38;y5beta=yes&#38;order=down&#38;sort=date&#38;pos=0&#38;view=a&#38;head=b&#38;VScan=1&#38;Idx=3">Scan and Save to Computer</a> &#124; <a href="http://in.f86.mail.yahoo.com/ym/ShowLetter/download?box=Inbox&#38;MsgId=5404_4485934_35559_1691_10007_0_1181_28068_3333472759&#38;bodyPart=3&#38;filename=download&#38;Briefcase=1&#38;tnef=&#38;VScan=1&#38;YY=37354&#38;y5beta=yes&#38;y5beta=yes&#38;order=down&#38;sort=date&#38;pos=0&#38;view=a&#38;head=b&#38;Idx=3">Save to Yahoo! Briefcase</a> ]</p>
<pre>
<tt>' 1.<span>  </span>To Count and display Object Properties and Values</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Dim Obj1,ObPrp</tt>
</pre>
<pre>
<tt>Set Obj1=Window("Flight Reservation")</tt>
</pre>
<pre>
<tt>Set ObPrp=Obj1.GetToProperties</tt>
</pre>
<pre>
<tt>For i=0 To ObPrp.Count -1</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt><span>        </span>msgbox i+1 &#38; " - " &#38; ObPrp(i).Name &#38; " ....... " &#38; ObPrp(i).Value</tt>
</pre>
<pre>
<tt>Next</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>'2 . Login Verification with constant input values</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>InvokeApplication "C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Agent Name:").Set "Pulse"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Password:").Set "Mury"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>If Dialog("Login").Dialog("Flight Reservations").Exist Then</tt>
</pre>
<pre>
<tt>Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Dialog("Login").WinButton("Cancel").Click</tt>
</pre>
<pre>
<tt>Reporter.ReportEvent 1,"Login Verify","Invalid Values...Test Failed"</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"</tt>
</pre>
<pre>
<tt>Reporter.ReportEvent 0,"Login Verify","Valid Inputs...Test Passed"</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 3. Login Verification with Runtime Input Values</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Dim Flights,Agt,Pwd</tt>
</pre>
<pre>
<tt>Flights="C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe"</tt>
</pre>
<pre>
<tt>For i=1 To 4</tt>
</pre>
<pre>
<tt>Agt=InputBox("Enter Agent Name Plzzz")</tt>
</pre>
<pre>
<tt>Pwd=InputBox("Enter PAssword ..Plzzz")</tt>
</pre>
<pre>
<tt>InvokeApplication Flights</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Agent Name:").Set Agt</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Password:").Set Pwd</tt>
</pre>
<pre>
<tt>Dialog("Login").WinButton("OK").Click</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>If Dialog("Login").Dialog("Flight Reservations").Exist Then</tt>
</pre>
<pre>
<tt> wait(3)</tt>
</pre>
<pre>
<tt><span>  </span>Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>wait(3)</tt>
</pre>
<pre>
<tt> Dialog("Login").WinButton("Cancel").Click</tt>
</pre>
<pre>
<tt>Reporter.ReportEvent 1,"Login","Test Failed"</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"</tt>
</pre>
<pre>
<tt>Reporter.ReportEvent 0,"Login","Test Passed"</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt>Next</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 4. Login with Parameterization ... Data Table (Global Sheet) Should </tt>
</pre>
<pre>
<tt>contain Values</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>SystemUtil.Run "C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe","","C:\Program Files\Mercury </tt>
</pre>
<pre>
<tt>Interactive\QuickTest Professional\samples\flight\app","open"</tt>
</pre>
<pre>
<tt>'InvokeApplication "C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Agent Name:").Set DataTable("Agent_Name", </tt>
</pre>
<pre>
<tt>dtGlobalSheet)</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Password:").Set DataTable("Pword", </tt>
</pre>
<pre>
<tt>dtGlobalSheet)</tt>
</pre>
<pre>
<tt>Dialog("Login").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>If Dialog("Login").Dialog("Flight Reservations").Exist Then</tt>
</pre>
<pre>
<tt>Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Dialog("Login").WinButton("Cancel").Click</tt>
</pre>
<pre>
<tt>Reporter.ReportEvent 1,"Login Verify","Invalid Values...Test Failed"</tt>
</pre>
<pre>
<tt>DataTable.Value("Act_Res")="Fail"</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"</tt>
</pre>
<pre>
<tt>Reporter.ReportEvent 0,"Login Verify","Valid Inputs...Test Passed"</tt>
</pre>
<pre>
<tt>DataTable.Value("Act_Res")="Pass"</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt><span>        </span>er=DataTable("Exp_Res",dtGlobalSheet)</tt>
</pre>
<pre>
<tt><span>        </span>ar=DataTable("Act_Res",dtGlobalSheet)</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt><span>        </span>If StrComp(er,ar)=0 Then</tt>
</pre>
<pre>
<tt><span>               </span>DataTable.Value("Remarks")="OK"</tt>
</pre>
<pre>
<tt><span>        </span>Else</tt>
</pre>
<pre>
<tt><span>               </span>DataTable.Value("Remarks")="Defect"</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt><span>        </span>DataTable.Export("E:\QTP730\LoginResults.xls")</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>'5.<span>   </span>Compare Total Tickets and Amount for First 5 Orders</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Tot_ts=0</tt>
</pre>
<pre>
<tt>Tot_amt=0</tt>
</pre>
<pre>
<tt>For Ord=1 To 5</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Open </tt>
</pre>
<pre>
<tt>Order..."</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Order </tt>
</pre>
<pre>
<tt>No.").Set "ON"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit_2").Set </tt>
</pre>
<pre>
<tt>Ord</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Tkts=Window("Flight </tt>
</pre>
<pre>
<tt>Reservation").WinEdit("Tickets:").GetROProperty("text")</tt>
</pre>
<pre>
<tt>Tot_ts = Tot_ts + Cint(Tkts)</tt>
</pre>
<pre>
<tt>Amt=Window("Flight </tt>
</pre>
<pre>
<tt>Reservation").WinEdit("Total:").GetROProperty("text")</tt>
</pre>
<pre>
<tt>Tot_amt = Tot_amt + Cint(Amt)</tt>
</pre>
<pre>
<tt>Next</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>msgbox "Total Tickets are....." &#38; Tot_ts</tt>
</pre>
<pre>
<tt>msgbox "Total Amount is....." &#38; Tot_amt</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 6. To compare Customer Name and No.of tickets (Get and compare </tt>
</pre>
<pre>
<tt>Paroperty Values)</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Exp_Cna="Suresh"</tt>
</pre>
<pre>
<tt>Exp_tkts=5</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Open </tt>
</pre>
<pre>
<tt>Order..."</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Order </tt>
</pre>
<pre>
<tt>No.").Set "ON"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit_2").Set </tt>
</pre>
<pre>
<tt>"15"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Act_Cna=Window("Flight </tt>
</pre>
<pre>
<tt>Reservation").WinEdit("Name:").GetROProperty("text")</tt>
</pre>
<pre>
<tt>Act_Tkts=WinDow("Flight </tt>
</pre>
<pre>
<tt>Reservation").WinEdit("Tickets:").GetROProperty("text")</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>If StrComp(Exp_Cna,Act_Cna)=0 Then</tt>
</pre>
<pre>
<tt><span>        </span>Reporter.ReportEvent 0,"Cust_Name","Customer is OK<span>   </span>" &#38; Exp_Cna &#38; " </tt>
</pre>
<pre>
<tt>...." &#38; Act_Cna</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt><span>        </span>Reporter.ReportEvent 1,"Cust_Name","Customer is Not OK <span>  </span>" &#38; Exp_Cna &#38; </tt>
</pre>
<pre>
<tt>" ...." &#38; Act_Cna</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt>If Exp_tkts=Cint(Act_tkts) Then</tt>
</pre>
<pre>
<tt><span>        </span>Reporter.ReportEvent 0,"No_Tickets","Tickets are OK<span>   </span>" &#38; Exp_tkts &#38; " </tt>
</pre>
<pre>
<tt>...." &#38; Act_tkts</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt><span>        </span>Reporter.ReportEvent 1,"No_Tickets","Tickets are Not OK<span>   </span>" &#38; Exp_tkts </tt>
</pre>
<pre>
<tt>&#38; " ...." &#38; Act_tkts</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>'7.<span>  </span>Example of CrateObject....to execute an application</tt>
</pre>
<pre>
<tt>'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Dim MyObj</tt>
</pre>
<pre>
<tt>Set MyObj = CreateObject("Wscript.Shell")</tt>
</pre>
<pre>
<tt>MyObj.Run "Excel.Exe"</tt>
</pre>
<pre>
<tt>wait(5)</tt>
</pre>
<pre>
<tt>MyObj.Run "Notepad.Exe"</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 8. Object Verification</tt>
</pre>
<pre>
<tt>'~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Dim Flights,Calc</tt>
</pre>
<pre>
<tt>Calc="c:\windows\system32\calc.exe"</tt>
</pre>
<pre>
<tt>Flights="C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe"</tt>
</pre>
<pre>
<tt>InvokeApplication Calc</tt>
</pre>
<pre>
<tt>'InvokeApplication Flights</tt>
</pre>
<pre>
<tt>wait(3)</tt>
</pre>
<pre>
<tt>If Dialog("Login").Exist Then</tt>
</pre>
<pre>
<tt><span>        </span>msgbox "Login Existed"</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt><span>        </span>msgbox "Login Not Existed"</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 9.<span>  </span>to get a single Property Value</tt>
</pre>
<pre>
<tt>'~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Dim Dlog,Agt</tt>
</pre>
<pre>
<tt>Set Dlog = Dialog("Login")</tt>
</pre>
<pre>
<tt>Set Agt = Dlog.WinEdit("Agent Name:")</tt>
</pre>
<pre>
<tt>agent=Agt.GetROProperty("text")</tt>
</pre>
<pre>
<tt>msgbox "Agent Name is ......" &#38; agent</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>'10.<span>  </span>To get all property values of an object</tt>
</pre>
<pre>
<tt>'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Dim Dlog,Agt,Props</tt>
</pre>
<pre>
<tt>Set Dlog = Dialog("Login")</tt>
</pre>
<pre>
<tt>Set Agt = Dlog.WinEdit("Agent Name:")</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Set Props = Agt.GetToProperties</tt>
</pre>
<pre>
<tt>msgbox "Total Properties are...." &#38; Props.Count</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt><span>        </span>For i=0 To Props.Count -1</tt>
</pre>
<pre>
<tt>msgbox i+1 &#38; ".<span>  </span>Property...." &#38; Props(i).Name &#38; " ....." &#38; </tt>
</pre>
<pre>
<tt>Props(i).Value</tt>
</pre>
<pre>
<tt><span>        </span>Next</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 11. Text Comparision</tt>
</pre>
<pre>
<tt>'~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>agt=InputBox("Agent Name Plzzz....")</tt>
</pre>
<pre>
<tt>Expt_Agt="Pulse"</tt>
</pre>
<pre>
<tt>InvokeApplication "C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Agent Name:").Set agt</tt>
</pre>
<pre>
<tt>Act_Agt=Dialog("Login").WinEdit("Agent Name:").GetROProperty("text")</tt>
</pre>
<pre>
<tt>If StrComp(Expt_Agt,Act_Agt)=0 Then</tt>
</pre>
<pre>
<tt><span>        </span>Dialog("Login").WinEdit("Password:").Set "Mercury"</tt>
</pre>
<pre>
<tt><span>        </span>Dialog("Login").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt><span>        </span>msgbox "Expt..." &#38; Expt_Agt &#38; " ..Actual ...." &#38;Act_Agt</tt>
</pre>
<pre>
<tt><span>        </span>Dialog("Login").WinButton("Cancel").Click</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 12. Working with Transactions</tt>
</pre>
<pre>
<tt>'~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Services.StartTransaction "test1"</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Services.StartTransaction "Log1"</tt>
</pre>
<pre>
<tt>Window("Program Manager").WinListView("SysListView32").Activate </tt>
</pre>
<pre>
<tt>"QTPflights"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Agent Name:").Set "asasasa"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Password:").SetSecure </tt>
</pre>
<pre>
<tt>"4484160870f801d29b69e178723a172e57e00b6a"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Move 87,74</tt>
</pre>
<pre>
<tt>Services.EndTransaction "Log1"</tt>
</pre>
<pre>
<tt>Services.StartTransaction "op1"</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Services.StartTransaction "Ins1"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;New Order"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinObject("Date of Flight:").Type "060606"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinComboBox("Fly From:").Select "</tt><tt>London</tt><tt>"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinComboBox("Fly To:").Select "</tt><tt>Frankfurt</tt><tt>"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinButton("FLIGHT").Click</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Flights </tt>
</pre>
<pre>
<tt>Table").WinList("From").Activate "12492<span>   </span>LON<span>   </span></tt><tt>10:24 AM</tt><tt><span>   </span>FRA<span>   </span></tt><tt>11:09 AM</tt><tt><span>   </span>AA<span>     </span>$104.00"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinEdit("Name:").Set "asdfgh"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinButton("Insert Order").Click</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;New Order"</tt>
</pre>
<pre>
<tt>Services.EndTransaction "Ins1"</tt>
</pre>
<pre>
<tt>Services.StartTransaction "Fax1"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Open </tt>
</pre>
<pre>
<tt>Order..."</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Order </tt>
</pre>
<pre>
<tt>No.").Set "ON"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit").Set </tt>
</pre>
<pre>
<tt>"1"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Fax Order..."</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Fax Order No. 1").WinObject("Fax </tt>
</pre>
<pre>
<tt>Number:").Type "12122121212"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Fax Order No. </tt>
</pre>
<pre>
<tt>1").WinButton("Send").Click</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;New Order"</tt>
</pre>
<pre>
<tt>Services.EndTransaction "Fax1"</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Services.EndTransaction "op1"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"</tt>
</pre>
<pre>
<tt>Services.EndTransaction "test1"</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>****** Run the Script and open Test Result and from Test Summary select </tt>
</pre>
<pre>
<tt>End Transaction Statement</tt>
</pre>
<pre>
<tt>will diasplays the Operation Execution time.</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Working with Actions:</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Working with Actions:</tt>
</pre>
<pre>
<tt><span>        </span>1. Recording into Multiple Actions</tt>
</pre>
<pre>
<tt><span>        </span>2. Slipt Action </tt>
</pre>
<pre>
<tt><span>        </span>3. Copy of Action</tt>
</pre>
<pre>
<tt><span>        </span>4. Call to Action</tt>
</pre>
<pre>
<tt><span>        </span>5. Change Action Properties</tt>
</pre>
<pre>
<tt><span>        </span>6. Types of Actions</tt>
</pre>
<pre>
<tt><span>               </span>a. Internal Actions</tt>
</pre>
<pre>
<tt><span>               </span>b. External Actions</tt>
</pre>
<pre>
<tt><span>               </span>c. Nested Actions</tt>
</pre>
<pre>
<tt><span>               </span>d. Reusable Actions</tt>
</pre>
<pre>
<tt><span>               </span>e. Non-Reusable Actions</tt>
</pre>
<pre>
<tt><span>        </span>7. Parameterization with Action</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>'To Create an Excel Sheet</tt>
</pre>
<pre>
<tt>Dim ExcelSheet</tt>
</pre>
<pre>
<tt>Set ExcelSheet = CreateObject("Excel.Sheet")</tt>
</pre>
<pre>
<tt>ExcelSheet.Application.Visible = True</tt>
</pre>
<pre>
<tt>ExcelSheet.ActiveSheet.Cells(1,1).Value = "Surya"</tt>
</pre>
<pre>
<tt>ExcelSheet.ActiveSheet.Cells(1,2).Value = "Testing"</tt>
</pre>
<pre>
<tt>ExcelSheet.ActiveSheet.Cells(1,3).Value = "KPHB"</tt>
</pre>
<pre>
<tt>ExcelSheet.ActiveSheet.Cells(1,4).Value = "No DUE"</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>ExcelSheet.SaveAs "d:\class6qtp\mysheet.XLS"</tt>
</pre>
<pre>
<tt>ExcelSheet.Application.Quit</tt>
</pre>
<pre>
<tt>Set ExcelSheet = Nothing</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>'Open and Execute QTP Test with VBS</tt>
</pre>
<pre>
<tt>Dim Ttool,Qtest</tt>
</pre>
<pre>
<tt>Qtest= "d:\class6qtp\LoginTest1"</tt>
</pre>
<pre>
<tt>Set Ttool=CreateObject("QuickTest.Application")</tt>
</pre>
<pre>
<tt>Ttool.Launch</tt>
</pre>
<pre>
<tt>Ttool.Visible=True</tt>
</pre>
<pre>
<tt>Ttool.open Qtest</tt>
</pre>
<pre>
<tt>Ttool.Test.Run</tt>
</pre>
<pre>
<tt>Ttool.Test.close</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Create environment variables:</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>&#60;Environment&#62;</tt>
</pre>
<pre>
<tt><span>        </span>&#60;Variable&#62;</tt>
</pre>
<pre>
<tt><span>               </span>&#60;Name&#62;agent&#60;/Name&#62;</tt>
</pre>
<pre>
<tt><span>               </span>&#60;Value&#62;Pulse&#60;/Value&#62;</tt>
</pre>
<pre>
<tt><span>        </span>&#60;/Variable&#62;</tt>
</pre>
<pre>
<tt><span>        </span>&#60;Variable&#62;</tt>
</pre>
<pre>
<tt><span>               </span>&#60;Name&#62;flights&#60;/Name&#62;</tt>
</pre>
<pre>
<tt><span>               </span>&#60;Value&#62;"C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe"&#60;/Value&#62;</tt>
</pre>
<pre>
<tt><span>        </span>&#60;/Variable&#62;</tt>
</pre>
<pre>
<tt><span>        </span>&#60;Variable&#62;</tt>
</pre>
<pre>
<tt><span>               </span>&#60;Name&#62;password&#60;/Name&#62;</tt>
</pre>
<pre>
<tt><span>               </span>&#60;Value&#62;mercury&#60;/Value&#62;</tt>
</pre>
<pre>
<tt><span>        </span>&#60;/Variable&#62;</tt>
</pre>
<pre>
<tt>&#60;/Environment&#62;</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<p class="MsoNormal">&#160;</p>

]]></description>
			<content:encoded><![CDATA[<div>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial; color: blue;">Login Window:-</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial; color: blue;">&#160;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial; color: blue;">****To enter Data in U.N and Password fields&#8230;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial; color: blue;">Browser(&#8220;Yahoo&#8221;).Page(&#8220;Yahoo&#8221;).Webedit(&#8220;UserID&#8221;).Set&#8221;Aruna&#8221;<br />
Browser(&#8220;Yahoo&#8221;).Page(&#8220;Yahoo&#8221;).Webedit(&#8220;Password&#8221;).Set&#8221;Aruna&#8221;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial; color: blue;">****Click on Login button***</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial; color: blue;">Browser(&#8220;Yahoo&#8221;).Page(&#8220;Yahoo&#8221;).Webbutton(&#8220;Login&#8221;).Click</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Arial;">&#160;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial; color: blue;">***Clicking on Link****</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial; color: blue;">Browser(&#8220;Yahoo&#8221;).Page(&#8220;Yahoo&#8221;).Link(&#8220;Inbox&#8221;).Click</span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Arial;">&#160;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial; color: blue;">***Getting value from list box***</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial; color: blue;">Browser(&#8220;Yahoo&#8221;).Page(&#8220;Yahoo&#8221;).Weblist(&#8220;List&#8221;).GetRoProperty(&#8220;text&#8221;) &#8230;.here text is the property name..</span></p>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 1.<span>  </span>To Count and display Object Properties and Values</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Dim Obj1,ObPrp</tt>
</pre>
<pre>
<tt>Set Obj1=Window ("Flight Reservation")</tt>
</pre>
<pre>
<tt>Set ObPrp=Obj1.GetToProperties</tt>
</pre>
<pre>
<tt>For i=0 To ObPrp.Count -1</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt><span>        </span>msgbox i+1 &amp; " - " &amp; ObPrp(i).Name &amp; " ....... “&amp; ObPrp(i).Value</tt>
</pre>
<pre>
<tt>Next</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>'2 . Login Verification with constant input values</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>InvokeApplication "C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Agent Name:").Set "Pulse"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Password:").Set "Mury"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>If Dialog("Login").Dialog("Flight Reservations").Exist Then</tt>
</pre>
<pre>
<tt>Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Dialog("Login").WinButton("Cancel").Click</tt>
</pre>
<pre>
<tt>Reporter.ReportEvent 1,"Login Verify","Invalid Values...Test Failed"</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"</tt>
</pre>
<pre>
<tt>Reporter.ReportEvent 0,"Login Verify","Valid Inputs...Test Passed"</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 3. Login Verification with Runtime Input Values</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Dim Flights,Agt,Pwd</tt>
</pre>
<pre>
<tt>Flights="C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe"</tt>
</pre>
<pre>
<tt>For i=1 To 4</tt>
</pre>
<pre>
<tt>Agt=InputBox("Enter Agent Name Plzzz")</tt>
</pre>
<pre>
<tt>Pwd=InputBox("Enter PAssword ..Plzzz")</tt>
</pre>
<pre>
<tt>InvokeApplication Flights</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Agent Name:").Set sreedhar</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Password:").Set Pwd</tt>
</pre>
<pre>
<tt>Dialog("Login").WinButton("OK").Click</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>If Dialog("Login").Dialog("Flight Reservations").Exist Then</tt>
</pre>
<pre>
<tt> wait(3)</tt>
</pre>
<pre>
<tt><span>  </span>Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>wait(3)</tt>
</pre>
<pre>
<tt> Dialog("Login").WinButton("Cancel").Click</tt>
</pre>
<pre>
<tt>Reporter.ReportEvent 1,"Login","Test Failed"</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"</tt>
</pre>
<pre>
<tt>Reporter.ReportEvent 0,"Login","Test Passed"</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt>Next</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 4. Login with Parameterization ... Data Table (Global Sheet) Should </tt>
</pre>
<pre>
<tt>contain Values</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>SystemUtil.Run "C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe","","C:\Program Files\Mercury </tt>
</pre>
<pre>
<tt>Interactive\QuickTest Professional\samples\flight\app","open"</tt>
</pre>
<pre>
<tt>'InvokeApplication "C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Agent Name:").Set DataTable("Agent_Name", </tt>
</pre>
<pre>
<tt>dtGlobalSheet)</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Password:").Set DataTable("Pword", </tt>
</pre>
<pre>
<tt>dtGlobalSheet)</tt>
</pre>
<pre>
<tt>Dialog("Login").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>If Dialog("Login").Dialog("Flight Reservations").Exist Then</tt>
</pre>
<pre>
<tt>Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Dialog("Login").WinButton("Cancel").Click</tt>
</pre>
<pre>
<tt>Reporter.ReportEvent 1,"Login Verify","Invalid Values...Test Failed"</tt>
</pre>
<pre>
<tt>DataTable.Value("Act_Res")="Fail"</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"</tt>
</pre>
<pre>
<tt>Reporter.ReportEvent 0,"Login Verify","Valid Inputs...Test Passed"</tt>
</pre>
<pre>
<tt>DataTable.Value("Act_Res")="Pass"</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt><span>        </span>er=DataTable("Exp_Res",dtGlobalSheet)</tt>
</pre>
<pre>
<tt><span>        </span>ar=DataTable("Act_Res",dtGlobalSheet)</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt><span>        </span>If StrComp(er,ar)=0 Then</tt>
</pre>
<pre>
<tt><span>               </span>DataTable.Value("Remarks")="OK"</tt>
</pre>
<pre>
<tt><span>        </span>Else</tt>
</pre>
<pre>
<tt><span>               </span>DataTable.Value("Remarks")="Defect"</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt><span>        </span>DataTable.Export("E:\QTP730\LoginResults.xls")</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>'5.<span>   </span>Compare Total Tickets and Amount for First 5 Orders</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Tot_ts=0</tt>
</pre>
<pre>
<tt>Tot_amt=0</tt>
</pre>
<pre>
<tt>For Ord=1 To 5</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Open </tt>
</pre>
<pre>
<tt>Order..."</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Order </tt>
</pre>
<pre>
<tt>No.").Set "ON"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit_2").Set </tt>
</pre>
<pre>
<tt>Ord</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Tkts=Window("Flight </tt>
</pre>
<pre>
<tt>Reservation").WinEdit("Tickets:").GetROProperty("text")</tt>
</pre>
<pre>
<tt>Tot_ts = Tot_ts + Cint(Tkts)</tt>
</pre>
<pre>
<tt>Amt=Window("Flight </tt>
</pre>
<pre>
<tt>Reservation").WinEdit("Total:").GetROProperty("text")</tt>
</pre>
<pre>
<tt>Tot_amt = Tot_amt + Cint(Amt)</tt>
</pre>
<pre>
<tt>Next</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>msgbox "Total Tickets are....." &amp; Tot_ts</tt>
</pre>
<pre>
<tt>msgbox "Total Amount is....." &amp; Tot_amt</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 6. To compare Customer Name and No.of tickets (Get and compare </tt>
</pre>
<pre>
<tt>Paroperty Values)</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Exp_Cna="Suresh"</tt>
</pre>
<pre>
<tt>Exp_tkts=5</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Open </tt>
</pre>
<pre>
<tt>Order..."</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Order </tt>
</pre>
<pre>
<tt>No.").Set "ON"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit_2").Set </tt>
</pre>
<pre>
<tt>"15"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Act_Cna=Window("Flight </tt>
</pre>
<pre>
<tt>Reservation").WinEdit("Name:").GetROProperty("text")</tt>
</pre>
<pre>
<tt>Act_Tkts=WinDow("Flight </tt>
</pre>
<pre>
<tt>Reservation").WinEdit("Tickets:").GetROProperty("text")</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>If StrComp(Exp_Cna,Act_Cna)=0 Then</tt>
</pre>
<pre>
<tt><span>        </span>Reporter.ReportEvent 0,"Cust_Name","Customer is OK<span>   </span>" &amp; Exp_Cna &amp; " </tt>
</pre>
<pre>
<tt>...." &amp; Act_Cna</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt><span>        </span>Reporter.ReportEvent 1,"Cust_Name","Customer is Not OK<span>   </span>" &amp; Exp_Cna &amp; </tt>
</pre>
<pre>
<tt>" ...." &amp; Act_Cna</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt>If Exp_tkts=Cint(Act_tkts) Then</tt>
</pre>
<pre>
<tt><span>        </span>Reporter.ReportEvent 0,"No_Tickets","Tickets are OK<span>   </span>" &amp; Exp_tkts &amp; " </tt>
</pre>
<pre>
<tt>...." &amp; Act_tkts</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt><span>        </span>Reporter.ReportEvent 1,"No_Tickets","Tickets are Not OK<span>   </span>" &amp; Exp_tkts </tt>
</pre>
<pre>
<tt>&amp; " ...." &amp; Act_tkts</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>'7.<span>  </span>Example of CrateObject....to execute an application</tt>
</pre>
<pre>
<tt>'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Dim MyObj</tt>
</pre>
<pre>
<tt>Set MyObj = CreateObject("Wscript.Shell")</tt>
</pre>
<pre>
<tt>MyObj.Run "Excel.Exe"</tt>
</pre>
<pre>
<tt>wait(5)</tt>
</pre>
<pre>
<tt>MyObj.Run "Notepad.Exe"</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 8. Object Verification</tt>
</pre>
<pre>
<tt>'~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Dim Flights,Calc</tt>
</pre>
<pre>
<tt>Calc="c:\windows\system32\calc.exe"</tt>
</pre>
<pre>
<tt>Flights="C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe"</tt>
</pre>
<pre>
<tt>InvokeApplication Calc</tt>
</pre>
<pre>
<tt>'InvokeApplication Flights</tt>
</pre>
<pre>
<tt>wait(3)</tt>
</pre>
<pre>
<tt>If Dialog("Login").Exist Then</tt>
</pre>
<pre>
<tt><span>        </span>msgbox "Login Existed"</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt><span>        </span>msgbox "Login Not Existed"</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 9.<span>  </span>to get a single Property Value</tt>
</pre>
<pre>
<tt>'~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Dim Dlog,Agt</tt>
</pre>
<pre>
<tt>Set Dlog = Dialog("Login")</tt>
</pre>
<pre>
<tt>Set Agt = Dlog.WinEdit("Agent Name:")</tt>
</pre>
<pre>
<tt>agent=Agt.GetROProperty("text")</tt>
</pre>
<pre>
<tt>msgbox "Agent Name is ......" &amp; agent</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>'10.<span>  </span>To get all property values of an object</tt>
</pre>
<pre>
<tt>'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Dim Dlog,Agt,Props</tt>
</pre>
<pre>
<tt>Set Dlog = Dialog("Login")</tt>
</pre>
<pre>
<tt>Set Agt = Dlog.WinEdit("Agent Name:")</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Set Props = Agt.GetToProperties</tt>
</pre>
<pre>
<tt>msgbox "Total Properties are...." &amp; Props.Count</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt><span>        </span>For i=0 To Props.Count -1</tt>
</pre>
<pre>
<tt>msgbox i+1 &amp; ".<span>  </span>Property...." &amp; Props(i).Name &amp; " ....." &amp; </tt>
</pre>
<pre>
<tt>Props(i).Value</tt>
</pre>
<pre>
<tt><span>        </span>Next</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 11. Text Comparision</tt>
</pre>
<pre>
<tt>'~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>agt=InputBox("Agent Name Plzzz....")</tt>
</pre>
<pre>
<tt>Expt_Agt="Pulse"</tt>
</pre>
<pre>
<tt>InvokeApplication "C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Agent Name:").Set agt</tt>
</pre>
<pre>
<tt>Act_Agt=Dialog("Login").WinEdit("Agent Name:").GetROProperty("text")</tt>
</pre>
<pre>
<tt>If StrComp(Expt_Agt,Act_Agt)=0 Then</tt>
</pre>
<pre>
<tt><span>        </span>Dialog("Login").WinEdit("Password:").Set "Mercury"</tt>
</pre>
<pre>
<tt><span>        </span>Dialog("Login").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt><span>        </span>msgbox "Expt..." &amp; Expt_Agt &amp; " ..Actual ...." &amp;Act_Agt</tt>
</pre>
<pre>
<tt><span>        </span>Dialog("Login").WinButton("Cancel").Click</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 12. Working with Transactions</tt>
</pre>
<pre>
<tt>'~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Services.StartTransaction "test1"</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Services.StartTransaction "Log1"</tt>
</pre>
<pre>
<tt>Window("Program Manager").WinListView("SysListView32").Activate </tt>
</pre>
<pre>
<tt>"QTPflights"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Agent Name:").Set "asasasa"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Password:").SetSecure </tt>
</pre>
<pre>
<tt>"4484160870f801d29b69e178723a172e57e00b6a"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Move 87,74</tt>
</pre>
<pre>
<tt>Services.EndTransaction "Log1"</tt>
</pre>
<pre>
<tt>Services.StartTransaction "op1"</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Services.StartTransaction "Ins1"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;New Order"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinObject("Date of Flight:").Type "060606"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinComboBox("Fly From:").Select "</tt><tt>London</tt><tt>"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinComboBox("Fly To:").Select "</tt><tt>Frankfurt</tt><tt>"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinButton("FLIGHT").Click</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Flights </tt>
</pre>
<pre>
<tt>Table").WinList("From").Activate "12492<span>   </span>LON<span>   </span></tt><tt>10:24 AM</tt><tt><span>   </span>FRA<span>   </span></tt><tt>11:09 AM</tt><tt><span>   </span>AA<span>     </span>$104.00"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinEdit("Name:").Set "asdfgh"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinButton("Insert Order").Click</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;New Order"</tt>
</pre>
<pre>
<tt>Services.EndTransaction "Ins1"</tt>
</pre>
<pre>
<tt>Services.StartTransaction "Fax1"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Open </tt>
</pre>
<pre>
<tt>Order..."</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Order </tt>
</pre>
<pre>
<tt>No.").Set "ON"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit").Set </tt>
</pre>
<pre>
<tt>"1"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Fax Order..."</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Fax Order No. 1").WinObject("Fax </tt>
</pre>
<pre>
<tt>Number:").Type "12122121212"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Fax Order No. </tt>
</pre>
<pre>
<tt>1").WinButton("Send").Click</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;New Order"</tt>
</pre>
<pre>
<tt>Services.EndTransaction "Fax1"</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Services.EndTransaction "op1"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"</tt>
</pre>
<pre>
<tt>Services.EndTransaction "test1"</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>****** Run the Script and open Test Result and from Test Summary select </tt>
</pre>
<pre>
<tt>End Transaction Statement</tt>
</pre>
<pre>
<tt>will diasplays the Operation Execution time.</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Working with Actions:</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Working with Actions:</tt>
</pre>
<pre>
<tt><span>        </span>1. Recording into Multiple Actions</tt>
</pre>
<pre>
<tt><span>        </span>2. Slipt Action </tt>
</pre>
<pre>
<tt><span>        </span>3. Copy of Action</tt>
</pre>
<pre>
<tt><span>        </span>4. Call to Action</tt>
</pre>
<pre>
<tt><span>        </span>5. Change Action Properties</tt>
</pre>
<pre>
<tt><span>        </span>6. Types of Actions</tt>
</pre>
<pre>
<tt><span>               </span>a. Internal Actions</tt>
</pre>
<pre>
<tt><span>               </span>b. External Actions</tt>
</pre>
<pre>
<tt><span>               </span>c. Nested Actions</tt>
</pre>
<pre>
<tt><span>               </span>d. Reusable Actions</tt>
</pre>
<pre>
<tt><span>               </span>e. Non-Reusable Actions</tt>
</pre>
<pre>
<tt><span>        </span>7. Parameterization with Action</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>'To Create an Excel Sheet</tt>
</pre>
<pre>
<tt>Dim ExcelSheet</tt>
</pre>
<pre>
<tt>Set ExcelSheet = CreateObject("Excel.Sheet")</tt>
</pre>
<pre>
<tt>ExcelSheet.Application.Visible = True</tt>
</pre>
<pre>
<tt>ExcelSheet.ActiveSheet.Cells(1,1).Value = "Surya"</tt>
</pre>
<pre>
<tt>ExcelSheet.ActiveSheet.Cells(1,2).Value = "Testing"</tt>
</pre>
<pre>
<tt>ExcelSheet.ActiveSheet.Cells(1,3).Value = "KPHB"</tt>
</pre>
<pre>
<tt>ExcelSheet.ActiveSheet.Cells(1,4).Value = "No DUE"</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>ExcelSheet.SaveAs "d:\class6qtp\mysheet.XLS"</tt>
</pre>
<pre>
<tt>ExcelSheet.Application.Quit</tt>
</pre>
<pre>
<tt>Set ExcelSheet = Nothing</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>'Open and Execute QTP Test with VBS</tt>
</pre>
<pre>
<tt>Dim Ttool,Qtest</tt>
</pre>
<pre>
<tt>Qtest= "d:\class6qtp\LoginTest1"</tt>
</pre>
<pre>
<tt>Set Ttool=CreateObject("QuickTest.Application")</tt>
</pre>
<pre>
<tt>Ttool.Launch</tt>
</pre>
<pre>
<tt>Ttool.Visible=True</tt>
</pre>
<pre>
<tt>Ttool.open Qtest</tt>
</pre>
<pre>
<tt>Ttool.Test.Run</tt>
</pre>
<pre>
<tt>Ttool.Test.close</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Create environment variables:</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>&lt;Environment&gt;</tt>
</pre>
<pre>
<tt><span>        </span>&lt;Variable&gt;</tt>
</pre>
<pre>
<tt><span>               </span>&lt;Name&gt;agent&lt;/Name&gt;</tt>
</pre>
<pre>
<tt><span>               </span>&lt;Value&gt;Pulse&lt;/Value&gt;</tt>
</pre>
<pre>
<tt><span>        </span>&lt;/Variable&gt;</tt>
</pre>
<pre>
<tt><span>        </span>&lt;Variable&gt;</tt>
</pre>
<pre>
<tt><span>               </span>&lt;Name&gt;flights&lt;/Name&gt;</tt>
</pre>
<pre>
<tt><span>               </span>&lt;Value&gt;"C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe"&lt;/Value&gt;</tt>
</pre>
<pre>
<tt><span>        </span>&lt;/Variable&gt;</tt>
</pre>
<pre>
<tt><span>        </span>&lt;Variable&gt;</tt>
</pre>
<pre>
<tt><span>               </span>&lt;Name&gt;password&lt;/Name&gt;</tt>
</pre>
<pre>
<tt><span>               </span>&lt;Value&gt;mercury&lt;/Value&gt;</tt>
</pre>
<pre>
<tt><span>        </span>&lt;/Variable&gt;</tt>
</pre>
<pre>
<tt>&lt;/Environment&gt;</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<p><em>Plain Text Attachment</em> [ <a href="http://in.f86.mail.yahoo.com/ym/ShowLetter?box=Inbox&amp;MsgId=5404_4485934_35559_1691_10007_0_1181_28068_3333472759&amp;bodyPart=3&amp;YY=37354&amp;y5beta=yes&amp;y5beta=yes&amp;order=down&amp;sort=date&amp;pos=0&amp;view=a&amp;head=b&amp;VScan=1&amp;Idx=3">Scan and Save to Computer</a> | <a href="http://in.f86.mail.yahoo.com/ym/ShowLetter/download?box=Inbox&amp;MsgId=5404_4485934_35559_1691_10007_0_1181_28068_3333472759&amp;bodyPart=3&amp;filename=download&amp;Briefcase=1&amp;tnef=&amp;VScan=1&amp;YY=37354&amp;y5beta=yes&amp;y5beta=yes&amp;order=down&amp;sort=date&amp;pos=0&amp;view=a&amp;head=b&amp;Idx=3">Save to Yahoo! Briefcase</a> ]</p>
<pre>
<tt>' 1.<span>  </span>To Count and display Object Properties and Values</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Dim Obj1,ObPrp</tt>
</pre>
<pre>
<tt>Set Obj1=Window("Flight Reservation")</tt>
</pre>
<pre>
<tt>Set ObPrp=Obj1.GetToProperties</tt>
</pre>
<pre>
<tt>For i=0 To ObPrp.Count -1</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt><span>        </span>msgbox i+1 &amp; " - " &amp; ObPrp(i).Name &amp; " ....... " &amp; ObPrp(i).Value</tt>
</pre>
<pre>
<tt>Next</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>'2 . Login Verification with constant input values</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>InvokeApplication "C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Agent Name:").Set "Pulse"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Password:").Set "Mury"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>If Dialog("Login").Dialog("Flight Reservations").Exist Then</tt>
</pre>
<pre>
<tt>Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Dialog("Login").WinButton("Cancel").Click</tt>
</pre>
<pre>
<tt>Reporter.ReportEvent 1,"Login Verify","Invalid Values...Test Failed"</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"</tt>
</pre>
<pre>
<tt>Reporter.ReportEvent 0,"Login Verify","Valid Inputs...Test Passed"</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 3. Login Verification with Runtime Input Values</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Dim Flights,Agt,Pwd</tt>
</pre>
<pre>
<tt>Flights="C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe"</tt>
</pre>
<pre>
<tt>For i=1 To 4</tt>
</pre>
<pre>
<tt>Agt=InputBox("Enter Agent Name Plzzz")</tt>
</pre>
<pre>
<tt>Pwd=InputBox("Enter PAssword ..Plzzz")</tt>
</pre>
<pre>
<tt>InvokeApplication Flights</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Agent Name:").Set Agt</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Password:").Set Pwd</tt>
</pre>
<pre>
<tt>Dialog("Login").WinButton("OK").Click</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>If Dialog("Login").Dialog("Flight Reservations").Exist Then</tt>
</pre>
<pre>
<tt> wait(3)</tt>
</pre>
<pre>
<tt><span>  </span>Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>wait(3)</tt>
</pre>
<pre>
<tt> Dialog("Login").WinButton("Cancel").Click</tt>
</pre>
<pre>
<tt>Reporter.ReportEvent 1,"Login","Test Failed"</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"</tt>
</pre>
<pre>
<tt>Reporter.ReportEvent 0,"Login","Test Passed"</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt>Next</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 4. Login with Parameterization ... Data Table (Global Sheet) Should </tt>
</pre>
<pre>
<tt>contain Values</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>SystemUtil.Run "C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe","","C:\Program Files\Mercury </tt>
</pre>
<pre>
<tt>Interactive\QuickTest Professional\samples\flight\app","open"</tt>
</pre>
<pre>
<tt>'InvokeApplication "C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Agent Name:").Set DataTable("Agent_Name", </tt>
</pre>
<pre>
<tt>dtGlobalSheet)</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Password:").Set DataTable("Pword", </tt>
</pre>
<pre>
<tt>dtGlobalSheet)</tt>
</pre>
<pre>
<tt>Dialog("Login").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>If Dialog("Login").Dialog("Flight Reservations").Exist Then</tt>
</pre>
<pre>
<tt>Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Dialog("Login").WinButton("Cancel").Click</tt>
</pre>
<pre>
<tt>Reporter.ReportEvent 1,"Login Verify","Invalid Values...Test Failed"</tt>
</pre>
<pre>
<tt>DataTable.Value("Act_Res")="Fail"</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"</tt>
</pre>
<pre>
<tt>Reporter.ReportEvent 0,"Login Verify","Valid Inputs...Test Passed"</tt>
</pre>
<pre>
<tt>DataTable.Value("Act_Res")="Pass"</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt><span>        </span>er=DataTable("Exp_Res",dtGlobalSheet)</tt>
</pre>
<pre>
<tt><span>        </span>ar=DataTable("Act_Res",dtGlobalSheet)</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt><span>        </span>If StrComp(er,ar)=0 Then</tt>
</pre>
<pre>
<tt><span>               </span>DataTable.Value("Remarks")="OK"</tt>
</pre>
<pre>
<tt><span>        </span>Else</tt>
</pre>
<pre>
<tt><span>               </span>DataTable.Value("Remarks")="Defect"</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt><span>        </span>DataTable.Export("E:\QTP730\LoginResults.xls")</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>'5.<span>   </span>Compare Total Tickets and Amount for First 5 Orders</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Tot_ts=0</tt>
</pre>
<pre>
<tt>Tot_amt=0</tt>
</pre>
<pre>
<tt>For Ord=1 To 5</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Open </tt>
</pre>
<pre>
<tt>Order..."</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Order </tt>
</pre>
<pre>
<tt>No.").Set "ON"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit_2").Set </tt>
</pre>
<pre>
<tt>Ord</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Tkts=Window("Flight </tt>
</pre>
<pre>
<tt>Reservation").WinEdit("Tickets:").GetROProperty("text")</tt>
</pre>
<pre>
<tt>Tot_ts = Tot_ts + Cint(Tkts)</tt>
</pre>
<pre>
<tt>Amt=Window("Flight </tt>
</pre>
<pre>
<tt>Reservation").WinEdit("Total:").GetROProperty("text")</tt>
</pre>
<pre>
<tt>Tot_amt = Tot_amt + Cint(Amt)</tt>
</pre>
<pre>
<tt>Next</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>msgbox "Total Tickets are....." &amp; Tot_ts</tt>
</pre>
<pre>
<tt>msgbox "Total Amount is....." &amp; Tot_amt</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 6. To compare Customer Name and No.of tickets (Get and compare </tt>
</pre>
<pre>
<tt>Paroperty Values)</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Exp_Cna="Suresh"</tt>
</pre>
<pre>
<tt>Exp_tkts=5</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Open </tt>
</pre>
<pre>
<tt>Order..."</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Order </tt>
</pre>
<pre>
<tt>No.").Set "ON"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit_2").Set </tt>
</pre>
<pre>
<tt>"15"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Act_Cna=Window("Flight </tt>
</pre>
<pre>
<tt>Reservation").WinEdit("Name:").GetROProperty("text")</tt>
</pre>
<pre>
<tt>Act_Tkts=WinDow("Flight </tt>
</pre>
<pre>
<tt>Reservation").WinEdit("Tickets:").GetROProperty("text")</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>If StrComp(Exp_Cna,Act_Cna)=0 Then</tt>
</pre>
<pre>
<tt><span>        </span>Reporter.ReportEvent 0,"Cust_Name","Customer is OK<span>   </span>" &amp; Exp_Cna &amp; " </tt>
</pre>
<pre>
<tt>...." &amp; Act_Cna</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt><span>        </span>Reporter.ReportEvent 1,"Cust_Name","Customer is Not OK <span>  </span>" &amp; Exp_Cna &amp; </tt>
</pre>
<pre>
<tt>" ...." &amp; Act_Cna</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt>If Exp_tkts=Cint(Act_tkts) Then</tt>
</pre>
<pre>
<tt><span>        </span>Reporter.ReportEvent 0,"No_Tickets","Tickets are OK<span>   </span>" &amp; Exp_tkts &amp; " </tt>
</pre>
<pre>
<tt>...." &amp; Act_tkts</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt><span>        </span>Reporter.ReportEvent 1,"No_Tickets","Tickets are Not OK<span>   </span>" &amp; Exp_tkts </tt>
</pre>
<pre>
<tt>&amp; " ...." &amp; Act_tkts</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>'7.<span>  </span>Example of CrateObject....to execute an application</tt>
</pre>
<pre>
<tt>'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Dim MyObj</tt>
</pre>
<pre>
<tt>Set MyObj = CreateObject("Wscript.Shell")</tt>
</pre>
<pre>
<tt>MyObj.Run "Excel.Exe"</tt>
</pre>
<pre>
<tt>wait(5)</tt>
</pre>
<pre>
<tt>MyObj.Run "Notepad.Exe"</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 8. Object Verification</tt>
</pre>
<pre>
<tt>'~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Dim Flights,Calc</tt>
</pre>
<pre>
<tt>Calc="c:\windows\system32\calc.exe"</tt>
</pre>
<pre>
<tt>Flights="C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe"</tt>
</pre>
<pre>
<tt>InvokeApplication Calc</tt>
</pre>
<pre>
<tt>'InvokeApplication Flights</tt>
</pre>
<pre>
<tt>wait(3)</tt>
</pre>
<pre>
<tt>If Dialog("Login").Exist Then</tt>
</pre>
<pre>
<tt><span>        </span>msgbox "Login Existed"</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt><span>        </span>msgbox "Login Not Existed"</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 9.<span>  </span>to get a single Property Value</tt>
</pre>
<pre>
<tt>'~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Dim Dlog,Agt</tt>
</pre>
<pre>
<tt>Set Dlog = Dialog("Login")</tt>
</pre>
<pre>
<tt>Set Agt = Dlog.WinEdit("Agent Name:")</tt>
</pre>
<pre>
<tt>agent=Agt.GetROProperty("text")</tt>
</pre>
<pre>
<tt>msgbox "Agent Name is ......" &amp; agent</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>'10.<span>  </span>To get all property values of an object</tt>
</pre>
<pre>
<tt>'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Dim Dlog,Agt,Props</tt>
</pre>
<pre>
<tt>Set Dlog = Dialog("Login")</tt>
</pre>
<pre>
<tt>Set Agt = Dlog.WinEdit("Agent Name:")</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Set Props = Agt.GetToProperties</tt>
</pre>
<pre>
<tt>msgbox "Total Properties are...." &amp; Props.Count</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt><span>        </span>For i=0 To Props.Count -1</tt>
</pre>
<pre>
<tt>msgbox i+1 &amp; ".<span>  </span>Property...." &amp; Props(i).Name &amp; " ....." &amp; </tt>
</pre>
<pre>
<tt>Props(i).Value</tt>
</pre>
<pre>
<tt><span>        </span>Next</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 11. Text Comparision</tt>
</pre>
<pre>
<tt>'~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>agt=InputBox("Agent Name Plzzz....")</tt>
</pre>
<pre>
<tt>Expt_Agt="Pulse"</tt>
</pre>
<pre>
<tt>InvokeApplication "C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Agent Name:").Set agt</tt>
</pre>
<pre>
<tt>Act_Agt=Dialog("Login").WinEdit("Agent Name:").GetROProperty("text")</tt>
</pre>
<pre>
<tt>If StrComp(Expt_Agt,Act_Agt)=0 Then</tt>
</pre>
<pre>
<tt><span>        </span>Dialog("Login").WinEdit("Password:").Set "Mercury"</tt>
</pre>
<pre>
<tt><span>        </span>Dialog("Login").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Else</tt>
</pre>
<pre>
<tt><span>        </span>msgbox "Expt..." &amp; Expt_Agt &amp; " ..Actual ...." &amp;Act_Agt</tt>
</pre>
<pre>
<tt><span>        </span>Dialog("Login").WinButton("Cancel").Click</tt>
</pre>
<pre>
<tt>End If</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>' 12. Working with Transactions</tt>
</pre>
<pre>
<tt>'~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Services.StartTransaction "test1"</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Services.StartTransaction "Log1"</tt>
</pre>
<pre>
<tt>Window("Program Manager").WinListView("SysListView32").Activate </tt>
</pre>
<pre>
<tt>"QTPflights"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Agent Name:").Set "asasasa"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinEdit("Password:").SetSecure </tt>
</pre>
<pre>
<tt>"4484160870f801d29b69e178723a172e57e00b6a"</tt>
</pre>
<pre>
<tt>Dialog("Login").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Move 87,74</tt>
</pre>
<pre>
<tt>Services.EndTransaction "Log1"</tt>
</pre>
<pre>
<tt>Services.StartTransaction "op1"</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Services.StartTransaction "Ins1"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;New Order"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinObject("Date of Flight:").Type "060606"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinComboBox("Fly From:").Select "</tt><tt>London</tt><tt>"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinComboBox("Fly To:").Select "</tt><tt>Frankfurt</tt><tt>"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinButton("FLIGHT").Click</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Flights </tt>
</pre>
<pre>
<tt>Table").WinList("From").Activate "12492<span>   </span>LON<span>   </span></tt><tt>10:24 AM</tt><tt><span>   </span>FRA<span>   </span></tt><tt>11:09 AM</tt><tt><span>   </span>AA<span>     </span>$104.00"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinEdit("Name:").Set "asdfgh"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinButton("Insert Order").Click</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;New Order"</tt>
</pre>
<pre>
<tt>Services.EndTransaction "Ins1"</tt>
</pre>
<pre>
<tt>Services.StartTransaction "Fax1"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Open </tt>
</pre>
<pre>
<tt>Order..."</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Order </tt>
</pre>
<pre>
<tt>No.").Set "ON"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit").Set </tt>
</pre>
<pre>
<tt>"1"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Fax Order..."</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Fax Order No. 1").WinObject("Fax </tt>
</pre>
<pre>
<tt>Number:").Type "12122121212"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").Dialog("Fax Order No. </tt>
</pre>
<pre>
<tt>1").WinButton("Send").Click</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;New Order"</tt>
</pre>
<pre>
<tt>Services.EndTransaction "Fax1"</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Services.EndTransaction "op1"</tt>
</pre>
<pre>
<tt>Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"</tt>
</pre>
<pre>
<tt>Services.EndTransaction "test1"</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>****** Run the Script and open Test Result and from Test Summary select </tt>
</pre>
<pre>
<tt>End Transaction Statement</tt>
</pre>
<pre>
<tt>will diasplays the Operation Execution time.</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Working with Actions:</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>Working with Actions:</tt>
</pre>
<pre>
<tt><span>        </span>1. Recording into Multiple Actions</tt>
</pre>
<pre>
<tt><span>        </span>2. Slipt Action </tt>
</pre>
<pre>
<tt><span>        </span>3. Copy of Action</tt>
</pre>
<pre>
<tt><span>        </span>4. Call to Action</tt>
</pre>
<pre>
<tt><span>        </span>5. Change Action Properties</tt>
</pre>
<pre>
<tt><span>        </span>6. Types of Actions</tt>
</pre>
<pre>
<tt><span>               </span>a. Internal Actions</tt>
</pre>
<pre>
<tt><span>               </span>b. External Actions</tt>
</pre>
<pre>
<tt><span>               </span>c. Nested Actions</tt>
</pre>
<pre>
<tt><span>               </span>d. Reusable Actions</tt>
</pre>
<pre>
<tt><span>               </span>e. Non-Reusable Actions</tt>
</pre>
<pre>
<tt><span>        </span>7. Parameterization with Action</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>'To Create an Excel Sheet</tt>
</pre>
<pre>
<tt>Dim ExcelSheet</tt>
</pre>
<pre>
<tt>Set ExcelSheet = CreateObject("Excel.Sheet")</tt>
</pre>
<pre>
<tt>ExcelSheet.Application.Visible = True</tt>
</pre>
<pre>
<tt>ExcelSheet.ActiveSheet.Cells(1,1).Value = "Surya"</tt>
</pre>
<pre>
<tt>ExcelSheet.ActiveSheet.Cells(1,2).Value = "Testing"</tt>
</pre>
<pre>
<tt>ExcelSheet.ActiveSheet.Cells(1,3).Value = "KPHB"</tt>
</pre>
<pre>
<tt>ExcelSheet.ActiveSheet.Cells(1,4).Value = "No DUE"</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>ExcelSheet.SaveAs "d:\class6qtp\mysheet.XLS"</tt>
</pre>
<pre>
<tt>ExcelSheet.Application.Quit</tt>
</pre>
<pre>
<tt>Set ExcelSheet = Nothing</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>'Open and Execute QTP Test with VBS</tt>
</pre>
<pre>
<tt>Dim Ttool,Qtest</tt>
</pre>
<pre>
<tt>Qtest= "d:\class6qtp\LoginTest1"</tt>
</pre>
<pre>
<tt>Set Ttool=CreateObject("QuickTest.Application")</tt>
</pre>
<pre>
<tt>Ttool.Launch</tt>
</pre>
<pre>
<tt>Ttool.Visible=True</tt>
</pre>
<pre>
<tt>Ttool.open Qtest</tt>
</pre>
<pre>
<tt>Ttool.Test.Run</tt>
</pre>
<pre>
<tt>Ttool.Test.close</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>Create environment variables:</tt>
</pre>
<pre>
<tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</tt>
</pre>
<pre>
<tt>&lt;Environment&gt;</tt>
</pre>
<pre>
<tt><span>        </span>&lt;Variable&gt;</tt>
</pre>
<pre>
<tt><span>               </span>&lt;Name&gt;agent&lt;/Name&gt;</tt>
</pre>
<pre>
<tt><span>               </span>&lt;Value&gt;Pulse&lt;/Value&gt;</tt>
</pre>
<pre>
<tt><span>        </span>&lt;/Variable&gt;</tt>
</pre>
<pre>
<tt><span>        </span>&lt;Variable&gt;</tt>
</pre>
<pre>
<tt><span>               </span>&lt;Name&gt;flights&lt;/Name&gt;</tt>
</pre>
<pre>
<tt><span>               </span>&lt;Value&gt;"C:\Program Files\Mercury Interactive\QuickTest </tt>
</pre>
<pre>
<tt>Professional\samples\flight\app\flight4a.exe"&lt;/Value&gt;</tt>
</pre>
<pre>
<tt><span>        </span>&lt;/Variable&gt;</tt>
</pre>
<pre>
<tt><span>        </span>&lt;Variable&gt;</tt>
</pre>
<pre>
<tt><span>               </span>&lt;Name&gt;password&lt;/Name&gt;</tt>
</pre>
<pre>
<tt><span>               </span>&lt;Value&gt;mercury&lt;/Value&gt;</tt>
</pre>
<pre>
<tt><span>        </span>&lt;/Variable&gt;</tt>
</pre>
<pre>
<tt>&lt;/Environment&gt;</tt>
</pre>
<pre>
<tt> </tt>
</pre>
<p class="MsoNormal">&#160;</p>
</div>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://qtpsridhar.blog.com/2008/11/10/qtp-sample-vb-scripts/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
