<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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>Comments on: Descriptive Programming (DP) &#8211; 4 (Creating a Test Script)</title>
	<atom:link href="http://relevantcodes.com/descriptive-programming-dp-4-creating-a-test-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://relevantcodes.com/descriptive-programming-dp-4-creating-a-test-script/</link>
	<description>A Resource for Test Automation Development</description>
	<lastBuildDate>Fri, 18 May 2012 07:21:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: monoshree kotal</title>
		<link>http://relevantcodes.com/descriptive-programming-dp-4-creating-a-test-script/#comment-60417</link>
		<dc:creator>monoshree kotal</dc:creator>
		<pubDate>Sat, 05 May 2012 00:22:35 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=222#comment-60417</guid>
		<description>Hi,

The contents are reALLY SIMPLE AND HELPFUL..It is very easy to understand. I am new to automation and your articles help me a lot.

Thanks</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>The contents are reALLY SIMPLE AND HELPFUL..It is very easy to understand. I am new to automation and your articles help me a lot.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaideep Patel</title>
		<link>http://relevantcodes.com/descriptive-programming-dp-4-creating-a-test-script/#comment-55925</link>
		<dc:creator>Jaideep Patel</dc:creator>
		<pubDate>Fri, 17 Feb 2012 03:39:25 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=222#comment-55925</guid>
		<description>Thanks a lot Anshoo. You really are a great help. Please keep up the good work. :)</description>
		<content:encoded><![CDATA[<p>Thanks a lot Anshoo. You really are a great help. Please keep up the good work. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anshoo Arora</title>
		<link>http://relevantcodes.com/descriptive-programming-dp-4-creating-a-test-script/#comment-55897</link>
		<dc:creator>Anshoo Arora</dc:creator>
		<pubDate>Thu, 16 Feb 2012 15:45:33 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=222#comment-55897</guid>
		<description>Jaideep, it depends on personal preference really. I prefer Type1 you&#039;ve listed and use Type2 only when I am using Description Objects. They will both do the same thing.</description>
		<content:encoded><![CDATA[<p>Jaideep, it depends on personal preference really. I prefer Type1 you&#8217;ve listed and use Type2 only when I am using Description Objects. They will both do the same thing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaideep Patel</title>
		<link>http://relevantcodes.com/descriptive-programming-dp-4-creating-a-test-script/#comment-55770</link>
		<dc:creator>Jaideep Patel</dc:creator>
		<pubDate>Tue, 14 Feb 2012 04:10:18 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=222#comment-55770</guid>
		<description>Hey Anshoo,


Thanks a lot for your help. I have one doubt. 

In real time scenario which tpye of descriptive programming is used.
Ex: type 1
   Browser(&quot;name:=Google&quot;).Page(&quot;title:=name)

Ex:  type 2
   Dim btnGoogleSearch
   set btnGoogleSearch=Description.create
   btnGoogleSearch(&quot;type&quot;).value=&quot;submit&quot;
   btnGoogleSearch(&quot;type&quot;).RegularExpression = False
   btnGoogleSearch(&quot;name&quot;).value=&quot;Google Search&quot;
   btnGoogleSearch(&quot;html tag&quot;).value=&quot;INPUT&quot;

Browser(&quot;Browser&quot;).Page(&quot;Page&quot;).Webbutton(btnGoogleSearch).Click



Out of these two types which is used in real time scenario. In my work palce we, iam using Type 1. Is that ok?</description>
		<content:encoded><![CDATA[<p>Hey Anshoo,</p>
<p>Thanks a lot for your help. I have one doubt. </p>
<p>In real time scenario which tpye of descriptive programming is used.<br />
Ex: type 1<br />
   Browser(&#8220;name:=Google&#8221;).Page(&#8220;title:=name)</p>
<p>Ex:  type 2<br />
   Dim btnGoogleSearch<br />
   set btnGoogleSearch=Description.create<br />
   btnGoogleSearch(&#8220;type&#8221;).value=&#8221;submit&#8221;<br />
   btnGoogleSearch(&#8220;type&#8221;).RegularExpression = False<br />
   btnGoogleSearch(&#8220;name&#8221;).value=&#8221;Google Search&#8221;<br />
   btnGoogleSearch(&#8220;html tag&#8221;).value=&#8221;INPUT&#8221;</p>
<p>Browser(&#8220;Browser&#8221;).Page(&#8220;Page&#8221;).Webbutton(btnGoogleSearch).Click</p>
<p>Out of these two types which is used in real time scenario. In my work palce we, iam using Type 1. Is that ok?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anshoo Arora</title>
		<link>http://relevantcodes.com/descriptive-programming-dp-4-creating-a-test-script/#comment-55751</link>
		<dc:creator>Anshoo Arora</dc:creator>
		<pubDate>Mon, 13 Feb 2012 17:19:22 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=222#comment-55751</guid>
		<description>Lakshmi, the .Sync method &quot;waits for the browser to complete the current navigation&quot; (from QTP help).</description>
		<content:encoded><![CDATA[<p>Lakshmi, the .Sync method &#8220;waits for the browser to complete the current navigation&#8221; (from QTP help).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anshoo Arora</title>
		<link>http://relevantcodes.com/descriptive-programming-dp-4-creating-a-test-script/#comment-55745</link>
		<dc:creator>Anshoo Arora</dc:creator>
		<pubDate>Mon, 13 Feb 2012 17:02:53 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=222#comment-55745</guid>
		<description>Piyush, in a larger context, we may have lots of code after this verification. If we do not exit here and move on to the next statement (speaking hypothetically ofcourse), we may error out. This is a way of avoiding such a situation.</description>
		<content:encoded><![CDATA[<p>Piyush, in a larger context, we may have lots of code after this verification. If we do not exit here and move on to the next statement (speaking hypothetically ofcourse), we may error out. This is a way of avoiding such a situation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anshoo Arora</title>
		<link>http://relevantcodes.com/descriptive-programming-dp-4-creating-a-test-script/#comment-55738</link>
		<dc:creator>Anshoo Arora</dc:creator>
		<pubDate>Mon, 13 Feb 2012 16:05:17 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=222#comment-55738</guid>
		<description>Jaideep, the beauty of using DP is that you don&#039;t have to write all the properties that you see from spy or the OR. You only need to write the property(ies) that are enough to uniquely identify the target object. If its a link, and if its seen only once in your application, you can use its innertext (or part of it using wildcards) to identify it. If it appears more than once, or you can use innertext along with Index.</description>
		<content:encoded><![CDATA[<p>Jaideep, the beauty of using DP is that you don&#8217;t have to write all the properties that you see from spy or the OR. You only need to write the property(ies) that are enough to uniquely identify the target object. If its a link, and if its seen only once in your application, you can use its innertext (or part of it using wildcards) to identify it. If it appears more than once, or you can use innertext along with Index.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lakshmi</title>
		<link>http://relevantcodes.com/descriptive-programming-dp-4-creating-a-test-script/#comment-55464</link>
		<dc:creator>lakshmi</dc:creator>
		<pubDate>Thu, 09 Feb 2012 12:13:41 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=222#comment-55464</guid>
		<description>hi,your work is really appreciable.It helps new learners a lot.............
I am new learner to qtp.Can u plz tell me the usage of below line u had used in above program.

Browser( &quot;title:=.*Mercury.*&quot; ).Sync

KINDLY HELP ME
THANKS.</description>
		<content:encoded><![CDATA[<p>hi,your work is really appreciable.It helps new learners a lot&#8230;&#8230;&#8230;&#8230;.<br />
I am new learner to qtp.Can u plz tell me the usage of below line u had used in above program.</p>
<p>Browser( &#8220;title:=.*Mercury.*&#8221; ).Sync</p>
<p>KINDLY HELP ME<br />
THANKS.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Piyush</title>
		<link>http://relevantcodes.com/descriptive-programming-dp-4-creating-a-test-script/#comment-55146</link>
		<dc:creator>Piyush</dc:creator>
		<pubDate>Fri, 03 Feb 2012 09:28:01 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=222#comment-55146</guid>
		<description>Hi anshoo,
while adding ordinal identifier to the browser we used above like :
If Browser( &quot;title:=Welcome: Mercury Tours&quot;, &quot;index:=0&quot; ).Exist( 15 ) Then
how wud I kno that index wud be equal to 0?
or if I wanted to use &quot;creation time&quot; then hw will I use it here?
please suggest.</description>
		<content:encoded><![CDATA[<p>Hi anshoo,<br />
while adding ordinal identifier to the browser we used above like :<br />
If Browser( &#8220;title:=Welcome: Mercury Tours&#8221;, &#8220;index:=0&#8243; ).Exist( 15 ) Then<br />
how wud I kno that index wud be equal to 0?<br />
or if I wanted to use &#8220;creation time&#8221; then hw will I use it here?<br />
please suggest.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Piyush</title>
		<link>http://relevantcodes.com/descriptive-programming-dp-4-creating-a-test-script/#comment-55145</link>
		<dc:creator>Piyush</dc:creator>
		<pubDate>Fri, 03 Feb 2012 09:00:48 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=222#comment-55145</guid>
		<description>Hi Anshoo,
In step2 we uses following code:
If Browser( &quot;title:=Welcome: Mercury Tours&quot; ).Exist( 15 ) Then
   Reporter.ReportEvent micPass, &quot;Step 1- Launch&quot;, &quot;Correct browser was launched.&quot;
Else
   Reporter.ReportEvent micFail, &quot;Step 1- Launch&quot;, &quot;Browser failed to launch.&quot;
   ExitTest
End If
My question is what the use of &quot;ExitTest&quot; statement here as without using it we&#039;ll get the test terminated itself bcoz there is no browser object open to perform next step.Please suggest.</description>
		<content:encoded><![CDATA[<p>Hi Anshoo,<br />
In step2 we uses following code:<br />
If Browser( &#8220;title:=Welcome: Mercury Tours&#8221; ).Exist( 15 ) Then<br />
   Reporter.ReportEvent micPass, &#8220;Step 1- Launch&#8221;, &#8220;Correct browser was launched.&#8221;<br />
Else<br />
   Reporter.ReportEvent micFail, &#8220;Step 1- Launch&#8221;, &#8220;Browser failed to launch.&#8221;<br />
   ExitTest<br />
End If<br />
My question is what the use of &#8220;ExitTest&#8221; statement here as without using it we&#8217;ll get the test terminated itself bcoz there is no browser object open to perform next step.Please suggest.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 11/14 queries in 0.003 seconds using disk: basic
Object Caching 379/379 objects using disk: basic
Content Delivery Network via N/A

Served from: relevantcodes.com @ 2012-05-19 10:58:45 -->
