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

Firefox, Safari: How to disable “Use a proxy server” setting

16 Answers 193 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andrey Cherepakha
Top achievements
Rank 1
Andrey Cherepakha asked on 18 Feb 2011, 02:14 PM

Hello!

I run my test (Silverlight app if it is important) with IE8 and everything works fine.

I can run my application with Firefox or Safari, but the test does not work with the browsers. After brief investigation I have found out that after browser running the “Use a proxy server” setting is enabled (both Firefox and Safari).

I try using UseHttpProxy and VerboseHttpProxy properties and set them to false, but, unfortunately, there is no success.

 Could you please advise me how to disable “Use a proxy server” setting?

Thanks.

WebAii version 2010.3.1213.0
OS Name Microsoft Windows XP Professional
Version 5.1.2600 Service Pack 3 Build 2600

16 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 18 Feb 2011, 11:19 PM
Hello Andrey Cherepakha,

That fact that you are trying to test a Silverlight application is important as it does make a difference. The framework uses our own HTTP Proxy in order to inject our hooks into your Silverlight application so that we can communicate with it. That's why you're finding "Use a proxy" turned on while the test is running. We try to turn the setting back off at the end of the test, but clearly that's not happening in your case.

Let's get back to your test is failing problem. Can you tell us more about this failure so we can diagnose why it's not working as expected?

Regards,
Cody
the Telerik team
0
Andrey Cherepakha
Top achievements
Rank 1
answered on 21 Feb 2011, 04:15 PM

Hello Cody.

Thanks for your answer. And thanks for your wish to help.

Let me describe a little my testing application. We use iframe:

<body
<iframe id="TestSilverlightApp" src="http://www.test.com/TestSilverlightApp.html"></iframe
</body>

Also our silverlight application is based on a module structure. There is a main XAP and several other on-demand loaded XAPs. Child XAP is loaded if appropriate page is selected. Certain child XAP (say, Home) is always loaded right after main XAP has been loaded.

>> That's why you're finding "Use a proxy" turned on while the test is running. We try to turn the setting back off at the end of the test, but clearly that's not happening in your case.
<<
Everything is OK with turning setting back.

I use folowing code to connect to Silverlight app:

var browser = manager.ActiveBrowser;                                                       // [1]
Browser silverFrame = browser.Frames.ById("TestSilverlightApp");                           // [2]
HtmlControl silverDiv = silverFrame.Find.ById("silverlightControl").As<HtmlControl>();     // [3]
int i = silverFrame.GetSilverlightAppIndex(silverDiv);                                      // [4]
app = silverFrame.SilverlightApps()[i];                                                    // [5]

Safari 5.0.3

Browser is opened and main XAP is loaded. But child XAP is not loaded. And I have an error on [5]:

 ERROR - System.TimeoutException: SilverlightApp.IsLoaded is false after '30000' msec
   at ArtOfTest.WebAii.Silverlight.SilverlightApp.Connect(Int32 timeout)
   at ArtOfTest.WebAii.Silverlight.SilverlightApp.Connect()
   at ArtOfTest.WebAii.Silverlight.SilverlightAppsList.get_Item(Int32 index)

After that I went to Safari preferences - Advanced - Proxies - Change settings - LAN settings - Use a proxy - Advanced and added my site to the exceptions section.
I run test again. This time the child XAP is loaded but I still have an error on [5]:

ERROR - System.TimeoutException: Timeout trying to connect to Silverlight App.
   at ArtOfTest.WebAii.Silverlight.SilverlightApp.WaitUntilExtensionCreated(String extensionCall)
   at ArtOfTest.WebAii.Silverlight.SilverlightApp.Connect(Int32 timeout)
   at ArtOfTest.WebAii.Silverlight.SilverlightApp.Connect()
   at ArtOfTest.WebAii.Silverlight.SilverlightAppsList.get_Item(Int32 index)
 
Firefox 3.6.10
 
There is almost the same. I have "SilverlightApp.IsLoaded is false after '30000' msec" error. But my setting in the exceptions section is ignored.

Look forward to your advice.

Thanks.

0
Stoich
Telerik team
answered on 25 Feb 2011, 04:17 PM
Hello Andrey,
   try increasing the Silverlight connection timeout:
Settings mySettings = new Settings();
Manager myManager = new Manager(mySettings);
mySettings.SilverlightConnectTimeout = 60000;
it's 30 seconds by default but that might not be enough for WebAii to establish a connection.

Let me know how it goes!

Best wishes,
Stoich
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
Andrey Cherepakha
Top achievements
Rank 1
answered on 02 Mar 2011, 11:40 AM
Hello, Stoich!

Thanks for your advice, but, unfortunately, it does not work on my side.

I thought that our test is very complex (we use several 3d party components) and I created a simple test just to launch browser, go to my test page and connect to my test application. Even with it and increasing SilverlightConnectTimeout up to 180000 there is still no any chance for FireFox and Safari. And I do not know why. May be it something wrong with my environment (though I tried several computers) or my test application (it is highly probable).

We have similar issue with using Silverlight Spy with our application. As I said, our silverlight application is based on a module structure with one main XAP and several on-demand loaded XAPs. Silverlight Spy can show only component of main XAP, it does not show components of "children" XAP.

I think we will continue to use only IE. Safari and FF adding is not critical, but very desirable.

Thanks.
0
Cody
Telerik team
answered on 08 Mar 2011, 10:01 PM
Hi Andrey Cherepakha,

I apologize for the delay getting back to you on this. We'd very much like to investigate why you are having this problem with Firefox and Safari. Before we can do that though we need to be able to repro this problem locally. That means we either need access to a public website that shows this problem or a sample application we can install and run on our own server. Can you help us there?

Regards,
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
Andrey Cherepakha
Top achievements
Rank 1
answered on 09 Mar 2011, 09:46 AM

Hi, Cody!

I am attaching my code example, where you can find my way to connect to my test application and link to it.

If you need any other information, please let me know.

Thanks.

0
Cody
Telerik team
answered on 10 Mar 2011, 06:26 PM
Hi Andrey Cherepakha,

Thank you very much for sending me your test! I was able to repro the problem in Firefox, Safari and Chrome. You're right it's working fine in IE. I've submitted PITS 5080 to track this issue. This also happens with our commercial product which makes it even more important for us to find and fix. It is related to how your Silverlight application is divided into multiple .XAP files. We appear to be hanging/blocking the download of the second .XAP file.

Kind regards,
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
San
Top achievements
Rank 1
answered on 28 Apr 2011, 05:54 AM
Hi All,

I found the same problem with FF3.0.6 (Telerik.WebAii.Framework.2010.3.1607.msi)

The proxy was set on and as a result the silverlight embeded in the web app can not be loaded. Then in turn of the command 
Utilities.GlobalObject.SILVERLIGHTAPP = Utilities.GlobalObject.MANAGER.ActiveBrowser.SilverlightApps()[0];
can not be executed and got the exception

"System.TimeoutException: Timeout trying to connect to Silverlight App.\r\n   at ArtOfTest.WebAii.Silverlight.SilverlightApp.WaitUntilExtensionCreated(String extensionCall)\r\n  
 at ArtOfTest.WebAii.Silverlight.SilverlightApp.Connect(Int32 timeout)\r\n  
at ArtOfTest.WebAii.Silverlight.SilverlightApp.Connect()\r\n  
at ArtOfTest.WebAii.Silverlight.SilverlightAppsList.get_Item(Int32 index)\r\n  
at FATWelcomePage.WelcomePage.loginSuccess() in D:\\FAT_WebAii\\FATWelcomePage\\WelcomePage.cs:line 39\r\n  
 at FATWelcomePage.FAT.run(String strSelectedAction) in D:\\FAT_WebAii\\FATWelcomePage\\FAT.cs:line 19\r\n  
at FATTestRunner.TestRunner.run(TestSuite tsItem) in D:\\FAT_WebAii\\FATTestRunner\\TestRunner.cs:line 84"

Is there any update on this?
0
Cody
Telerik team
answered on 28 Apr 2011, 03:35 PM
Hi San,

I am sorry but there has been no progress on this problem yet. I also failed to give you this publicly viewable link that you can use to follow its progress. Currently we're getting ready to release our R1 version. It should be publicly available on Monday next week. All our developers are spending all their time putting in the final polish for this release. This problem exists for all versions of Firefox, Safari and Chrome. The only way to overcome this problem is to not use multiple .XAP files for your application, which I can understand if that's not possible on your end.

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
San
Top achievements
Rank 1
answered on 29 Apr 2011, 03:43 AM
Thanks for your replying. Hopefully, we will get new build overcome this issue soon.
0
Konstantin Petkov
Telerik team
answered on 21 May 2011, 07:07 PM
Hello,

The problem appeared to be related to having query string in the source URL. The good news is this is addressed with the latest internal build (labeled 2011.1.520) we released this week. The list of framework updates since R1 we published in the beginning of May is available live here.

Should you have further feedback please do not hesitate to let us know.

Kind regards,
Konstantin Petkov
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
emma
Top achievements
Rank 1
answered on 06 Jun 2011, 05:01 AM
We are seeing this issue in the Free Testing Framework build 502.  Is there a build 2011.1.520 of the Free Testing Framework available?  I logged in but couldn't see any links to internal builds...

Thanks.
0
San
Top achievements
Rank 1
answered on 06 Jun 2011, 07:39 AM
0
Daniel Levy
Telerik team
answered on 06 Jun 2011, 02:06 PM
Hello San,

Thanks for writing.

We have an internal build from May 31st available via the link below. Please note you will need to log into your Telerik.com account to access this link,

http://www.telerik.com/downloads/nightbuildfiles/bdca/Telerik.Testing.Framework.2011.1.531.msi

Let us know how it goes.

Best wishes,
Daniel Levy
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
sivaraj
Top achievements
Rank 1
answered on 29 Jun 2011, 10:11 AM
Does this framework [Version 2011.1 609] support Silverlight application in FireFox and Safari in HTTPS mode ?
0
Anthony
Telerik team
answered on 29 Jun 2011, 03:46 PM
Hello Siva,

Currently IE is the only browser supported for HTTPS Silverlight applications. Our development team is investigating how to implement this for other browsers.

Kind regards,
Anthony
the Telerik team
Register today for a live 'What's New in Test Studio R1 2011 SP2' event on Tuesday, July 19 at 2pm EST!

Have you looked at the new Online User Guide for Telerik Test Studio?
Tags
General Discussions
Asked by
Andrey Cherepakha
Top achievements
Rank 1
Answers by
Cody
Telerik team
Andrey Cherepakha
Top achievements
Rank 1
Stoich
Telerik team
San
Top achievements
Rank 1
Konstantin Petkov
Telerik team
emma
Top achievements
Rank 1
Daniel Levy
Telerik team
sivaraj
Top achievements
Rank 1
Anthony
Telerik team
Share this question
or