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
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?
Cody
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.
try increasing the Silverlight connection timeout:
Settings mySettings =
new
Settings();
Manager myManager =
new
Manager(mySettings);
mySettings.SilverlightConnectTimeout = 60000;
Let me know how it goes!
Best wishes,
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.
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?
Cody
the Telerik team
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.
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
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?
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
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
Thanks.
Telerik Testing Framework Version: 2011.1 502 (May 2, 2011)
http://www.telerik.com/account/your-products/product-versions/single-download.aspx?pmvid=0&pid=691
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
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
Have you looked at the new Online User Guide for Telerik Test Studio?