<?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: Automating Windows Calculator Part 1</title>
	<atom:link href="http://relevantcodes.com/automating-windows-calculator-part-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://relevantcodes.com/automating-windows-calculator-part-1/</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: Ramesh</title>
		<link>http://relevantcodes.com/automating-windows-calculator-part-1/#comment-58341</link>
		<dc:creator>Ramesh</dc:creator>
		<pubDate>Mon, 26 Mar 2012 19:07:24 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1748#comment-58341</guid>
		<description>Thank you Anshoo.
Lets say i like to click on a number through QTP on calc. In that case how QTP would know the window Id of that during run time? 

To identify each button, do i need to get the window_id&#039;s of all buttons?. Later how i can approach.
Could you explain me with some more clarity.</description>
		<content:encoded><![CDATA[<p>Thank you Anshoo.<br />
Lets say i like to click on a number through QTP on calc. In that case how QTP would know the window Id of that during run time? </p>
<p>To identify each button, do i need to get the window_id&#8217;s of all buttons?. Later how i can approach.<br />
Could you explain me with some more clarity.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anshoo Arora</title>
		<link>http://relevantcodes.com/automating-windows-calculator-part-1/#comment-57573</link>
		<dc:creator>Anshoo Arora</dc:creator>
		<pubDate>Thu, 15 Mar 2012 14:27:34 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1748#comment-57573</guid>
		<description>Ramesh: You can map each control to its window_id. It seems to be unique..</description>
		<content:encoded><![CDATA[<p>Ramesh: You can map each control to its window_id. It seems to be unique..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anshoo Arora</title>
		<link>http://relevantcodes.com/automating-windows-calculator-part-1/#comment-57572</link>
		<dc:creator>Anshoo Arora</dc:creator>
		<pubDate>Thu, 15 Mar 2012 14:25:21 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1748#comment-57572</guid>
		<description>Ramesh, Win7 calculator may be more suitable with OR.. your observation is correct - there are no properties associated with any controls.</description>
		<content:encoded><![CDATA[<p>Ramesh, Win7 calculator may be more suitable with OR.. your observation is correct &#8211; there are no properties associated with any controls.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramesh</title>
		<link>http://relevantcodes.com/automating-windows-calculator-part-1/#comment-57379</link>
		<dc:creator>Ramesh</dc:creator>
		<pubDate>Mon, 12 Mar 2012 19:52:55 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1748#comment-57379</guid>
		<description>Hi,

For windows 7 calculator , i noticed that when i spy on any object there is no text property value.
I am trying to work out on this..I did not get solution..can please advice me on this..i tried some ways to get output..below is my script. 


Dim oDesc  &#039;Description Object
Dim colObject &#039;object collection
Set oDesc = Description.Create
oDesc(&quot;micclass&quot;).value=&quot;WinButton&quot;
Set colObject=Window(&quot;Calculator&quot;).ChildObjects(oDesc)
Obj=colObject.count()

For i = 1to obj

		colObject(i).highlight
		propval=colobject(i).getroproperty(&quot;text&quot;)
		msgbox propval
Next

-Ramesh</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>For windows 7 calculator , i noticed that when i spy on any object there is no text property value.<br />
I am trying to work out on this..I did not get solution..can please advice me on this..i tried some ways to get output..below is my script. </p>
<p>Dim oDesc  &#8216;Description Object<br />
Dim colObject &#8216;object collection<br />
Set oDesc = Description.Create<br />
oDesc(&#8220;micclass&#8221;).value=&#8221;WinButton&#8221;<br />
Set colObject=Window(&#8220;Calculator&#8221;).ChildObjects(oDesc)<br />
Obj=colObject.count()</p>
<p>For i = 1to obj</p>
<p>		colObject(i).highlight<br />
		propval=colobject(i).getroproperty(&#8220;text&#8221;)<br />
		msgbox propval<br />
Next</p>
<p>-Ramesh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramesh</title>
		<link>http://relevantcodes.com/automating-windows-calculator-part-1/#comment-57378</link>
		<dc:creator>Ramesh</dc:creator>
		<pubDate>Mon, 12 Mar 2012 19:48:03 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1748#comment-57378</guid>
		<description>Hi,

For windows 7 calculator , i noticed that  when i spy on any object there is no text property value.
I am trying to work out on this..I did not get solution..can please advice me on this..

-Ramesh</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>For windows 7 calculator , i noticed that  when i spy on any object there is no text property value.<br />
I am trying to work out on this..I did not get solution..can please advice me on this..</p>
<p>-Ramesh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sneha</title>
		<link>http://relevantcodes.com/automating-windows-calculator-part-1/#comment-53326</link>
		<dc:creator>Sneha</dc:creator>
		<pubDate>Sat, 31 Dec 2011 16:53:16 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1748#comment-53326</guid>
		<description>Happy New Year to All QTP Lovers, and Especially Anshoo Arora.</description>
		<content:encoded><![CDATA[<p>Happy New Year to All QTP Lovers, and Especially Anshoo Arora.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pragya</title>
		<link>http://relevantcodes.com/automating-windows-calculator-part-1/#comment-53263</link>
		<dc:creator>Pragya</dc:creator>
		<pubDate>Fri, 30 Dec 2011 05:59:09 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1748#comment-53263</guid>
		<description>Hi Anshu. please let me know when we will be getting advanced topic on this article. Looking forward for your early response.</description>
		<content:encoded><![CDATA[<p>Hi Anshu. please let me know when we will be getting advanced topic on this article. Looking forward for your early response.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manu Sekhar S</title>
		<link>http://relevantcodes.com/automating-windows-calculator-part-1/#comment-37626</link>
		<dc:creator>Manu Sekhar S</dc:creator>
		<pubDate>Thu, 29 Sep 2011 16:40:05 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1748#comment-37626</guid>
		<description>Hi Anshoo,

Its a very nice learning.

Do you have any article which focus on VC++ applications as an example.
Or any other scripting examples on windows applications other than inbuilt flight reservation application

Regards,
Manu</description>
		<content:encoded><![CDATA[<p>Hi Anshoo,</p>
<p>Its a very nice learning.</p>
<p>Do you have any article which focus on VC++ applications as an example.<br />
Or any other scripting examples on windows applications other than inbuilt flight reservation application</p>
<p>Regards,<br />
Manu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anshoo Arora</title>
		<link>http://relevantcodes.com/automating-windows-calculator-part-1/#comment-24820</link>
		<dc:creator>Anshoo Arora</dc:creator>
		<pubDate>Fri, 24 Jun 2011 16:07:28 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1748#comment-24820</guid>
		<description>Prachi:  If you&#039;re testing this scenario in an Remote Desktop session, open the session and run the test.  Do not minimize the window or close it and see if it works?</description>
		<content:encoded><![CDATA[<p>Prachi:  If you&#8217;re testing this scenario in an Remote Desktop session, open the session and run the test.  Do not minimize the window or close it and see if it works?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prachi</title>
		<link>http://relevantcodes.com/automating-windows-calculator-part-1/#comment-23211</link>
		<dc:creator>prachi</dc:creator>
		<pubDate>Tue, 14 Jun 2011 11:31:08 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1748#comment-23211</guid>
		<description>Hi Anshoo,

I have used this approach to open notepad and it was working fine earlier :
Window(&quot;Window&quot;).WinButton(&quot;start&quot;).Click
Window(&quot;Window&quot;).Type(&quot;R&quot;)
Dialog(&quot;Run&quot;).WinEdit(&quot;Open:&quot;).Type &quot;notepad&quot;

Now when I run the same code ,in local it works .But fails in server machine with error:

Cannot find the &quot;Open:&quot; object&#039;s parent &quot;Run&quot; (class Dialog). Verify that parent properties match an object currently displayed in your application.

Line (33): &quot;Dialog(&quot;Run&quot;).WinEdit(&quot;Open:&quot;).Type &quot;notepad&quot;&quot;. 

The dialog is in OR,and it works in local machine.Do you see any familiar server issue here .I have tried with adding the dialog again.
But the problem seems here with Type command not working on Window(&quot;Window&quot;).</description>
		<content:encoded><![CDATA[<p>Hi Anshoo,</p>
<p>I have used this approach to open notepad and it was working fine earlier :<br />
Window(&#8220;Window&#8221;).WinButton(&#8220;start&#8221;).Click<br />
Window(&#8220;Window&#8221;).Type(&#8220;R&#8221;)<br />
Dialog(&#8220;Run&#8221;).WinEdit(&#8220;Open:&#8221;).Type &#8220;notepad&#8221;</p>
<p>Now when I run the same code ,in local it works .But fails in server machine with error:</p>
<p>Cannot find the &#8220;Open:&#8221; object&#8217;s parent &#8220;Run&#8221; (class Dialog). Verify that parent properties match an object currently displayed in your application.</p>
<p>Line (33): &#8220;Dialog(&#8220;Run&#8221;).WinEdit(&#8220;Open:&#8221;).Type &#8220;notepad&#8221;". </p>
<p>The dialog is in OR,and it works in local machine.Do you see any familiar server issue here .I have tried with adding the dialog again.<br />
But the problem seems here with Type command not working on Window(&#8220;Window&#8221;).</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.006 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:37:44 -->
