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

Scripts fail because of proxy

3 Answers 174 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
dimitrios
Top achievements
Rank 1
dimitrios asked on 14 Apr 2011, 10:22 AM
Hi,

I am using the sample of WebAii Framework, specifically the "SilverlightHealthcareSample.cs", In Visual Studio 2010 Premium Edition, in Windows 7 (64bit). The script fails just as it starts with the errors bellow. Can you please take a look and see what I am doing wrong?
I have also installed the WebUI Test Studio QA and Developer edition.

I have also tried adding the line 'Manager.Settings.SilverlightConnectTimeout = 10000;' but still the same results.

I have the following browsers installed, chrome v10, IE v9, firefox v3.6, safari v5.0.4.

In Safari and Chrome (fails before the browser opens)
[9:50 AM] - Using: ArtOfTest.Common, Version=2010.3.1421.0, Culture=neutral, PublicKeyToken=14a0200bfcbb7b62
[9:50 AM] - OS: Microsoft Windows NT 6.1.7601 Service Pack 1
[9:50 AM] - Unable to open key HKLM\SOFTWARE\Telerik
'2011-04-14 9:50:48.097 AM' - [Trace] : Exception caught in AOTHttpProxy.Start:
System.InvalidOperationException: Missing WebAii framework registry key 'HKLM\Software\Telerik\WebUITestStudio'
at ArtOfTest.WebAii.Messaging.Http.HttpProxyManager.Start()
Exception caught in AOTHttpProxy.Start:
System.InvalidOperationException: Missing WebAii framework registry key 'HKLM\Software\Telerik\WebUITestStudio'
at ArtOfTest.WebAii.Messaging.Http.HttpProxyManager.Start()

In Internet explorer (fails after the browser opens, but it does not try to navigate to the webpage)
[10:14 AM] - Using: ArtOfTest.Common, Version=2010.3.1421.0, Culture=neutral, PublicKeyToken=14a0200bfcbb7b62
[10:14 AM] - OS: Microsoft Windows NT 6.1.7601 Service Pack 1
[10:14 AM] - Locating ArtOfTest.Connector.dll
[10:14 AM] - Unable to open key HKLM\SOFTWARE\Telerik
Automate a complex Silverlight application: 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.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 QuickStarts_NUnit_CS.SilverlightHealthcareSample.HealthCareDemo() in SilverlightHealthcareSample.cs: line 91
--NullReferenceException
at ArtOfTest.Common.Win32.WindowManager.Attach(ref IntPtr handle, Boolean findTabWindow, Boolean loadClr, ref IntPtr hookId)
at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)

In Firefox (fails after the browser opens, and it tries to navigate to the site, getting a 'The proxy server is refusing connections' in the browser)
[10:14 AM] - Using: ArtOfTest.Common, Version=2010.3.1421.0, Culture=neutral, PublicKeyToken=14a0200bfcbb7b62
[10:14 AM] - OS: Microsoft Windows NT 6.1.7601 Service Pack 1
[10:14 AM] - Unable to open key HKLM\SOFTWARE\Telerik
'2011-04-14 10:14:56.934 AM' - [Trace] : Exception caught in AOTHttpProxy.Start:
System.InvalidOperationException: Missing WebAii framework registry key 'HKLM\Software\Telerik\WebUITestStudio'
at ArtOfTest.WebAii.Messaging.Http.HttpProxyManager.Start()
Exception caught in AOTHttpProxy.Start:
System.InvalidOperationException: Missing WebAii framework registry key 'HKLM\Software\Telerik\WebUITestStudio'
at ArtOfTest.WebAii.Messaging.Http.HttpProxyManager.Start()
Automate a complex Silverlight application: System.ArgumentException : Index '0' is invalid. List contains only '0' apps
at ArtOfTest.WebAii.Silverlight.SilverlightAppsList.get_Item(Int32 index)
at QuickStarts_NUnit_CS.SilverlightHealthcareSample.HealthCareDemo() in SilverlightHealthcareSample.cs: line 100
System.Threading.ThreadAbortException: Thread was being aborted.
at ArtOfTest.WebAii.Messaging.Process.BrowserRemoted.AsyncListener()
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart() 

Best Regards

3 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 18 Apr 2011, 10:03 PM
Hello dimitrios,

Because you are getting "Unable to open key HKLM\SOFTWARE\Telerik" it sounds like some sort of an install problem. For Win7 64-bit you should have the registry key as shown in the attached screenshot. Can you verify this key exists?

Some additional notes:
- Our build 2010.3.1421 does not support IE9, but it won't cause the error you are seeing. You need our latest internal build, 2010.3.1607 to gain IE9 support. The other 3 browsers you listed are fine with that 2010.3.1421.
- I see the MSCUI demop application has changed causing our demo test to fail, but it is failing at the first click since it can no longer find the element it is coded to look for, not in the way it is failing for you.

Best wishes,
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
dimitrios
Top achievements
Rank 1
answered on 20 Apr 2011, 03:00 PM
Hi,

Sorry for the late reply.

I've attached a screenshot of the registry. I don't see anything wrong with them.

Thanks
Dimitrios
0
Cody
Telerik team
answered on 25 Apr 2011, 07:50 PM
Hello dimitrios,

Agreed it looks right. Let's look at this problem together via GoToMeeting. I'm not available though until tomorrow, Tuesday. What time would work for you?

All the best,
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
Tags
General Discussions
Asked by
dimitrios
Top achievements
Rank 1
Answers by
Cody
Telerik team
dimitrios
Top achievements
Rank 1
Share this question
or