This is a migrated thread and some comments may be shown as answers.

Latest webaii on x64 + IE9

16 Answers 356 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Prateek
Top achievements
Rank 1
Prateek asked on 28 Feb 2011, 08:58 AM
Hi,

I am trying to automate IE9 using webaii, by compiling on a amd64 architecture. The browser window opens up but does not navigate. I get the error listed below. If I complie using x86 architecture, it works fine. Is there a known compatibilty issue with xmd64 and Ie9 ?

Thanks

Error:

FAIL: Exception: System.ApplicationException: Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it. ---> System.NullReferenceException: Object reference not set to an instance of an object. at ArtOfTest.Common.Win32.WindowManager.Attach(IntPtr& handle, Boolean findTabWindow, Boolean loadClr, IntPtr& hookId) at ArtOfTest.Common.Win32.WindowManager.Attach(IntPtr& handle, Boolean findTabWindow, Boolean loadClr) at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename) --- End of inner exception stack trace --- at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename) at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments) at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle) at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect) at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch)

16 Answers, 1 is accepted

Sort by
0
Daniel Djambov
Telerik team
answered on 28 Feb 2011, 02:34 PM
Hi Prateek,

Unfortunately this is a problem in Visual Studio: http://blogs.msdn.com/b/lkruger/archive/2009/06/08/visual-studio-team-test-load-agent-goes-64-bit.aspx

The solution is to build your project as Any CPU or x86 one - you said it works for you.

Are there any limitations that cause you problems with this approach?

Kind regards,
Daniel Djambov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Prateek
Top achievements
Rank 1
answered on 28 Feb 2011, 06:27 PM
I tried Any CPU and it seems to work fine for IE8, but not IE9. I am using VS 2010
Only build for x86 seems to work for IE9.

We use internal build system which builds amd64, it was all working fine till IE9 came along.

I am attaching a sample project, would you please let me know what I might be doing wrong.

Thanks!
0
Cody
Telerik team
answered on 28 Feb 2011, 09:08 PM
Hi Prateek,

I am sorry but IE 9 is not yet fully supported by WebAii. We're still working out the changes required in our software to be compatible with IE 9. We expect to release full support shortly after IE 9 is officially released (about 3-4 weeks after its release). Currently IE 9 is in RC1 state.

Best wishes,
Cody
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Jason
Top achievements
Rank 1
answered on 05 Apr 2011, 10:00 PM
So we are 3 weeks now since the release of IE9... any news?
0
Cody
Telerik team
answered on 06 Apr 2011, 10:16 PM
Hello Jason,

You couldn't have timed your query better. The latest internal build we posted today adds IE 9 support. 

Kind regards,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Guerry
Top achievements
Rank 1
answered on 11 Aug 2011, 11:38 PM
Hi,

I've installed a trial version of Test Studio (version 2011.1.712.0). I'll be evaluating that tool shortly. First, I began by writing tests in Visual Studio 2010 (version 10.0.40219.1 SP1Rel) using SpecFlow and the ArtOfTest.Common.Design, ArtOfTest.Common.Surface and ArtOfTest.WebAii libraries included with Test Studio (rather than a separate installation of the Telerik Testing Framework). I'm on Windows 7 64-bit and have Internet Explorer 9. I am testing against an SSL-enabled site (https).

According to the post above, you achieved IE 9 compatibility in April. However, I do not know if that support is in the libraries I've listed above. When I run my test with IE 9, it opens but does not navigate. The Nunit test runner reports the messages below, and the browser sits on the about:blank page. Eventually the test times out. Perhaps my version of Test Studio does not yet have the IE 9 support? Perhaps the IE 9 support does not include https yet?

I also tried building as x86 instead of Any CPU, but no joy.

Here are the messages from the test run:

Uncategorized: DialogMonitor.Start() : OS: Microsoft Windows NT 6.1.7601 Service Pack 1
DialogPlayback: DialogMonitor.Start() : Beginning monitoring for dialogs from the set {}.
UIAutomation: AutomationExtensions.AddAutomationEventHandler() : Added a(n) WindowPatternIdentifiers.WindowOpenedProperty handler on element System.Windows.Automation.AutomationElement scope Descendants.
Framework: Manager.get_ActiveBrowser() : The current ActiveBrowser is either invisible or disconnected.
Framework: InternetExplorerActions.LaunchNewBrowserInstance() : Process launched (ID=11352, Path="C:\Program Files (x86)\Internet Explorer\iexplore.exe", Arguments="-nomerge about:blank").
Framework: InternetExplorerActions.LaunchNewBrowserInstance() : Attempting to attach on IE frame (HWND=2622478)...
Framework: Connector.Start() : Process launched (ID=11104, Path="C:\Windows\SysWOW64\rundll32.exe", Arguments="ArtOfTest.Connector.dll,AttachToWindowEntryPoint 2294808").
Framework: Connector.Start() : Process exited (ID=11104, ExitCode=0, Path="C:\Windows\SysWOW64\rundll32.exe", Arguments="ArtOfTest.Connector.dll,AttachToWindowEntryPoint 2294808").
Framework: InternetExplorerActions.LaunchNewBrowserInstance() : Process "nunit-x86" (ID=15404) is assumed to host the controller.
Uncategorized: Connector.InjectCode() : ------- Function Start  -------
Framework: Connector.InjectCode() : Connection string: C:\Windows\assembly\GAC_MSIL\ArtOfTest.InternetExplorer\2011.1.712.0__5339893a7cefe4d6\ArtOfTest.InternetExplorer.dll?ArtOfTest.InternetExplorer.ArtOfTestPluginEntryPoint?15404
Framework: InternetExplorerActions.WaitForDocument() : Attempting to get IHTMLDocument2 from Internet Explorer HWND 2294808 on another thread...
Framework: <>c__DisplayClasse.<WaitForDocument>b__7() : Attempting to get document from window handle
DialogPlayback: DialogMonitor.AutomationEvent_OnWindowOpened() : New window detected, but not considered a dialog (Text = "Blank Page - Windows Internet Explorer", ClassName = "IEFrame").
Framework: InternetExplorerActions.WaitForDocument() : IHTMLDocument2 successfully retrieved.
Framework: Connector.InjectCode() : Sending WM_COPYDATA to HWND 2294808 (lpData = "C:\Windows\assembly\GAC_MSIL\ArtOfTest.InternetExplorer\2011.1.712.0__5339893a7cefe4d6\ArtOfTest.InternetExplorer.dll?ArtOfTest.InternetExplorer.ArtOfTestPluginEntryPoint?15404")...
Framework: Connector.InjectCode() : Returned from sending WM_COPYDATA (LRESULT=0, GetLastError()=DS_S_SUCCESS).
Uncategorized: Connector.InjectCode() : ------- Function End -------
-> error: Wait for condition has timed out
And I have navigated to my server
-> skipped because of previous errors
When I submit my credentials
-> skipped because of previous errors
Then I should see the home page
-> skipped because of previous errors
Framework: BrowserProvisioner.EndService() : Connecting to the provisioning pipe "Pipe.ArtOfTest.WebAii.BrowserProvisioner_2032299161" in order to unblock and eventually terminate it...
Framework: BrowserProvisioner.EndService() : Provisioning pipe connected.
Framework: BrowserProvisioner.ServiceThread() : A new client has connected to the provisioning pipe but this will be treated as a termination cue.
Framework: BrowserProvisioner.EndService() : Provisioning thread terminated.
DialogPlayback: DialogMonitor.Stop() : Dialog monitoring is being halted.

Thanks,

G
0
Guerry
Top achievements
Rank 1
answered on 12 Aug 2011, 05:59 PM
Okay, I resolved my issue.

After searching the forums and the Knowledge Base, I gave up on getting my Test Framework eval code to run in IE 9 (I'd already confirmed that the version I was running should support IE 9). Shifting gears, I switched to evaluating Test Studio. I figured that might give me more info if it also barfed on IE 9.

Sure enough, while going through the Test Studio training videos, I found a link to http://www.artoftest.com/support/webaii/topicsindex.aspx?topic=configureie7

Returning to the Support Center, I found this link:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/configure-your-browser/internet-explorer.aspx

Having configured IE per the instructions, my Test Framework tests run.

Even better, if the Test Studio code knows (which it might not) what is happening, perhaps it could give a better exception to help evaluate what is happening?

I realize it's in the docs, but perhaps this should be surfaced more prominently?

Thanks!
0
Cody
Telerik team
answered on 15 Aug 2011, 03:18 PM
Hello Guerry,

First I am very glad to hear your problem is now fixed and things are now working as expected.

We always appreciate feedback. We'll work on making the information more prominent.

Greetings,
Cody
the Telerik team
Vote for Telerik Test Studio at the Annual Automation Honors Voting!
0
Guerry
Top achievements
Rank 1
answered on 15 Aug 2011, 03:33 PM
Hi Cody,

Thanks for the reply. As for the information, in all fairness, I found the info again in the FAQ under documentation. It's just that working up from the framework API side, I didn't encounter it and got stuck. The experience thus far with the API and with Test Studio have been positive.

Thanks,

Guerry
0
Ganga
Top achievements
Rank 1
answered on 21 Sep 2011, 04:30 AM

Hi Cody,

 

I am still stuck on running the same code on IE9. The code is working on IE 8 and FireFox.

 

The following error I am getting if I run on IE9. It is launching the web browser after that nothing. I followed the all the approaches, but still no luck.

 

An error occurred during the Test run.

Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it.

The type initializer for 'ArtOfTest.Common.Win32.Connector' threw an exception.

Object reference not set to an instance of an object.------------------

Scenario run complete.

 

I wonder if this issue is only happening on my environment or if any additional settings I have to follow?

 

Thanks

Ganga S

0
Cody
Telerik team
answered on 21 Sep 2011, 10:28 PM
Hi Ganga,

Which version of Telerik Testing Framework do you have installed? Support for IE9 was added in version 2011.1.712. FYI, there are no settings that can cause the error "The type initializer for 'ArtOfTest.Common.Win32.Connector' threw an exception". There are settings that can cause problems handling popups and dialogs, but that's after the initial launch of IE and navigating to the first page of your application.

Kind regards,
Cody
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ganga
Top achievements
Rank 1
answered on 22 Sep 2011, 01:16 AM

Hi Cody,

 

Thanks for the reply.

 

I am using latest version.

Telerik Testing Framework Version 2011.1

Product Version: 111.7.12.0

Release Date: 2011/07/12

 

My case browser window is opened, no action. (refer the attached screen shot)


How do I resolve my problem for running on the IE 9.0.

 

Thanks

Ganga S

0
Cody
Telerik team
answered on 27 Sep 2011, 06:41 PM
Hello Ganga,

Thank you for the screenshot. What it indicates is that something is blocking us from connecting to and controlling the browser. Can you spot any significant differences between machines that are working and this one that isn't such as different virus protection software? We are aware of a problem with McAfee Enterprise blocking us. Other times we've seen IE add-ons blocking us. In the other cases where we've seen this problem all versions of IE would get blocked, not just IE9. Are you able to try your test on a different machine, one with a fresh clean install of Windows?

All the best,
Cody
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ganga
Top achievements
Rank 1
answered on 04 Oct 2011, 12:56 AM

Hi Cody,

 

Thanks for the information. This will helpful for me to troubleshoot the problem.

 

I haven’t find the spare machine to testing on the fresh environment.

 

I will update the status once I finished my testing.

 

Thanks

Ganga S

0
Ganga
Top achievements
Rank 1
answered on 10 Jan 2012, 10:04 PM
Hi Cody,

The good news; I am not seeing this issue any more with latest testing Framework (Testing.Framework.2011.2.1303).

Please note that, I haven't change any of the IE9 browser settings...

Ganga S
.
 


0
Cody
Telerik team
answered on 11 Jan 2012, 05:28 PM
Hello,

Yes, that is good news. Thank you for the update.

All the best,
Cody
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Prateek
Top achievements
Rank 1
Answers by
Daniel Djambov
Telerik team
Prateek
Top achievements
Rank 1
Cody
Telerik team
Jason
Top achievements
Rank 1
Guerry
Top achievements
Rank 1
Ganga
Top achievements
Rank 1
Share this question
or