<?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: QTP: Working With Multiple Windows Applications</title>
	<atom:link href="http://relevantcodes.com/qtp-working-with-multiple-windows-applications/feed/" rel="self" type="application/rss+xml" />
	<link>http://relevantcodes.com/qtp-working-with-multiple-windows-applications/</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: Anshoo Arora</title>
		<link>http://relevantcodes.com/qtp-working-with-multiple-windows-applications/#comment-57560</link>
		<dc:creator>Anshoo Arora</dc:creator>
		<pubDate>Thu, 15 Mar 2012 14:03:02 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1983#comment-57560</guid>
		<description>Chandan/Sophia, there you go:

&lt;pre&gt;
Set oDesc = Description.Create
Set oBase = Desktop.ChildObjects(oDesc)

For ix = 0 to oBase.Count - 1
    Print oBase(ix).GetROProperty(&quot;text&quot;)
Next
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Chandan/Sophia, there you go:</p>
<pre>
Set oDesc = Description.Create
Set oBase = Desktop.ChildObjects(oDesc)

For ix = 0 to oBase.Count - 1
    Print oBase(ix).GetROProperty("text")
Next
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sophia</title>
		<link>http://relevantcodes.com/qtp-working-with-multiple-windows-applications/#comment-56994</link>
		<dc:creator>Sophia</dc:creator>
		<pubDate>Wed, 07 Mar 2012 07:34:37 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1983#comment-56994</guid>
		<description>I have the same question as above post, Kindly help!</description>
		<content:encoded><![CDATA[<p>I have the same question as above post, Kindly help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chandan</title>
		<link>http://relevantcodes.com/qtp-working-with-multiple-windows-applications/#comment-53385</link>
		<dc:creator>chandan</dc:creator>
		<pubDate>Mon, 02 Jan 2012 06:56:39 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1983#comment-53385</guid>
		<description>I want to verify a window title with all the opened windows in desktop screen.In Qtp what will be the code , which will return me the list of windows title that are opened/minimised.Please help me out in this.</description>
		<content:encoded><![CDATA[<p>I want to verify a window title with all the opened windows in desktop screen.In Qtp what will be the code , which will return me the list of windows title that are opened/minimised.Please help me out in this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prachi</title>
		<link>http://relevantcodes.com/qtp-working-with-multiple-windows-applications/#comment-20665</link>
		<dc:creator>prachi</dc:creator>
		<pubDate>Wed, 18 May 2011 08:27:03 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1983#comment-20665</guid>
		<description>Goal:In my windows application,there is a print operation.When the print command is given ,it goes to MS One note.Now what I need to do is find a way to verify the printed content .For this I need to create AOM for one Note ,read the information and then verify it from MS One Note.
I have tried AOM MS word menthods and properties,but those doesn&#039;t work with One Note.

Below is the description of what I have tried upto now:

I have tried this code:(tried with one note folder open/closed both )

Set obj= CreateObject(&quot;Onenote.application&quot;)
Dim strid
obj.OpenHierarchy &quot;C:\Documents and Settings\pandeypr\Desktop\OneNoteTesting&quot;,&quot;&quot;,&quot;strid&quot;
msgbox strid
obj.GetHierarchy &quot;&quot;, hsPages, &quot;strid&quot;
msgbox strid

obj.GetHierarchy &quot;&quot;, hsSections , &quot;strid&quot;
msgbox strid


strid returns nothing in all the cases.
It isn&#039;t working out.pls suggest how to get this done.

msdn link i followed is:http://msdn.microsoft.com/en-us/library/ms788684.aspx#Y4834


Thanks,
Prachi</description>
		<content:encoded><![CDATA[<p>Goal:In my windows application,there is a print operation.When the print command is given ,it goes to MS One note.Now what I need to do is find a way to verify the printed content .For this I need to create AOM for one Note ,read the information and then verify it from MS One Note.<br />
I have tried AOM MS word menthods and properties,but those doesn&#8217;t work with One Note.</p>
<p>Below is the description of what I have tried upto now:</p>
<p>I have tried this code:(tried with one note folder open/closed both )</p>
<p>Set obj= CreateObject(&#8220;Onenote.application&#8221;)<br />
Dim strid<br />
obj.OpenHierarchy &#8220;C:\Documents and Settings\pandeypr\Desktop\OneNoteTesting&#8221;,&#8221;",&#8221;strid&#8221;<br />
msgbox strid<br />
obj.GetHierarchy &#8220;&#8221;, hsPages, &#8220;strid&#8221;<br />
msgbox strid</p>
<p>obj.GetHierarchy &#8220;&#8221;, hsSections , &#8220;strid&#8221;<br />
msgbox strid</p>
<p>strid returns nothing in all the cases.<br />
It isn&#8217;t working out.pls suggest how to get this done.</p>
<p>msdn link i followed is:<a href="http://msdn.microsoft.com/en-us/library/ms788684.aspx#Y4834" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms788684.aspx#Y4834</a></p>
<p>Thanks,<br />
Prachi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anshoo Arora</title>
		<link>http://relevantcodes.com/qtp-working-with-multiple-windows-applications/#comment-10906</link>
		<dc:creator>Anshoo Arora</dc:creator>
		<pubDate>Wed, 29 Sep 2010 20:01:15 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1983#comment-10906</guid>
		<description>Danijela,

All variables of one test will be lost as soon as the next test is open.  One way to counter this is to store values in an external source (text file, Excel, xml etc.) and read values from the source in each new session.</description>
		<content:encoded><![CDATA[<p>Danijela,</p>
<p>All variables of one test will be lost as soon as the next test is open.  One way to counter this is to store values in an external source (text file, Excel, xml etc.) and read values from the source in each new session.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danijela</title>
		<link>http://relevantcodes.com/qtp-working-with-multiple-windows-applications/#comment-10707</link>
		<dc:creator>Danijela</dc:creator>
		<pubDate>Sun, 19 Sep 2010 22:25:12 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1983#comment-10707</guid>
		<description>I have solved my problem with only using descriptive programming.

Thank you!  You helped me a lot with your class. It is working for multiple windows.

Now I need to perform more test one after another.  To destroy WindowObject after one test is finished is not enough.
I get Error with message:

Object required: &#039;colObject&#039;

Function file: C:\Program Files\HP\QuickTest Professional\Tests\Test7\clsWindow.qfl
Line (131): &quot;			colObject.Add sName, Window(&quot;hwnd:=&quot; &amp; lngHwnd)&quot;.

I need to create new WindowObject for secound test. How can I do that? I am not an expert with VBScript.</description>
		<content:encoded><![CDATA[<p>I have solved my problem with only using descriptive programming.</p>
<p>Thank you!  You helped me a lot with your class. It is working for multiple windows.</p>
<p>Now I need to perform more test one after another.  To destroy WindowObject after one test is finished is not enough.<br />
I get Error with message:</p>
<p>Object required: &#8216;colObject&#8217;</p>
<p>Function file: C:\Program Files\HP\QuickTest Professional\Tests\Test7\clsWindow.qfl<br />
Line (131): &#8221;			colObject.Add sName, Window(&#8220;hwnd:=&#8221; &amp; lngHwnd)&#8221;.</p>
<p>I need to create new WindowObject for secound test. How can I do that? I am not an expert with VBScript.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anshoo Arora</title>
		<link>http://relevantcodes.com/qtp-working-with-multiple-windows-applications/#comment-10291</link>
		<dc:creator>Anshoo Arora</dc:creator>
		<pubDate>Sun, 22 Aug 2010 21:40:54 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1983#comment-10291</guid>
		<description>Danijela,

Does the WinObject have a name property that equals to MacromediaFlashPlayerActiveX? Any example that I can use to test this?</description>
		<content:encoded><![CDATA[<p>Danijela,</p>
<p>Does the WinObject have a name property that equals to MacromediaFlashPlayerActiveX? Any example that I can use to test this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danijela</title>
		<link>http://relevantcodes.com/qtp-working-with-multiple-windows-applications/#comment-10202</link>
		<dc:creator>Danijela</dc:creator>
		<pubDate>Tue, 17 Aug 2010 17:19:36 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1983#comment-10202</guid>
		<description>I use low-level recording for IE to record flash element.
I use something like this:
WindowObject.LaunchAdd &quot;iexplore.exe&quot;, &quot;Windows Internet Explorer&quot;

and instead of
Window(&quot;Windows Internet Explorer&quot;).WinObject(&quot;MacromediaFlashPlayerActiveX&quot;)
in my code I write
WindowObject.Name(&quot;Windows Internet Explorer&quot;).WinObject(&quot;Name:=MacromediaFlashPlayerActiveX&quot;)
but WinObject is not recognized.
What am I doing wrong?</description>
		<content:encoded><![CDATA[<p>I use low-level recording for IE to record flash element.<br />
I use something like this:<br />
WindowObject.LaunchAdd &#8220;iexplore.exe&#8221;, &#8220;Windows Internet Explorer&#8221;</p>
<p>and instead of<br />
Window(&#8220;Windows Internet Explorer&#8221;).WinObject(&#8220;MacromediaFlashPlayerActiveX&#8221;)<br />
in my code I write<br />
WindowObject.Name(&#8220;Windows Internet Explorer&#8221;).WinObject(&#8220;Name:=MacromediaFlashPlayerActiveX&#8221;)<br />
but WinObject is not recognized.<br />
What am I doing wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anshoo Arora</title>
		<link>http://relevantcodes.com/qtp-working-with-multiple-windows-applications/#comment-2123</link>
		<dc:creator>Anshoo Arora</dc:creator>
		<pubDate>Thu, 04 Feb 2010 19:15:14 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1983#comment-2123</guid>
		<description>Puneet,

In the object&#039;s properties window, you can check the box &quot;regular expression&quot; and add the correct regular expression there (see the post above).</description>
		<content:encoded><![CDATA[<p>Puneet,</p>
<p>In the object&#8217;s properties window, you can check the box &#8220;regular expression&#8221; and add the correct regular expression there (see the post above).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anshoo Arora</title>
		<link>http://relevantcodes.com/qtp-working-with-multiple-windows-applications/#comment-2122</link>
		<dc:creator>Anshoo Arora</dc:creator>
		<pubDate>Thu, 04 Feb 2010 19:01:12 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1983#comment-2122</guid>
		<description>Try this:

&lt;pre&gt;
SwfWindow(“swfname:=.*Server.*]“).SwfEdit(“swfname:=txtServerIp”).Set IP
SwfWindow(&quot;swfname:=.*Login Mode.*&quot;)Activate
&lt;/pre&gt;

If its not the &lt;code&gt;swfname&lt;/code&gt; property in the object spy for these object, please change it to the correct property. But, the wilcard rule is quite simple here. &lt;code&gt;.*&lt;/code&gt; matches &lt;strong&gt;any&lt;/strong&gt; character 0 or more number of times.</description>
		<content:encoded><![CDATA[<p>Try this:</p>
<pre>
SwfWindow(“swfname:=.*Server.*]“).SwfEdit(“swfname:=txtServerIp”).Set IP
SwfWindow("swfname:=.*Login Mode.*")Activate
</pre>
<p>If its not the <code>swfname</code> property in the object spy for these object, please change it to the correct property. But, the wilcard rule is quite simple here. <code>.*</code> matches <strong>any</strong> character 0 or more number of times.</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.004 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 11:40:22 -->
