Hi,
i tried to automate a web page containing a Silverlight application with WebAii automation framework. If i try to load the page manually in IE8 and Firefox, all works as expected.
In a NUnit test, with IE8 the Silverlight application is loaded correctly and i can find all controls, but for Firefox3.6.9 the test framework does not find the SilverlightApp object. The error is: System.TimeoutException : Timeout trying to connect to Silverlight App.
After this error, Firefox manual proxy settings are not removed (even if in [TearDown] enableSilverlightApplication is set to false).
Firefox is configured as in http://www.artoftest.com/support/webaii/topicsindex.aspx, Firefox section.
Are there some more settings to be able to automate the web page in Firefox?
Thanks,
Flavia
9 Answers, 1 is accepted
We have a known regresion in the current build regarding testing Silverlight applications under the Firefox browser. This good news should be that this should not stop your testing. By the very nature of Silverlight it doesn't matter which browser you use. The same Silverlight client runs in both browsers. The only different might be in how Silverlight gets started by the different browsers. Once started it's the literally the same code running in both browsers.
I'll let you know when we have released a build containing a fix for this problem.
Regards
Cody
the Telerik team
Do you happend to know when will be the WebAii Framework build ready?
Best regards,
Flavia
Sorry no not at this time. It is on our to do list, but isn't our highest priority right now since you should be able to do all Silverlight testing in IE. Is this a show stopper for you? If so can you please tell me how this problem blocks your testing efforts?
Best wishes,
Cody
the Telerik team
Currently it is not showstopper, but it would be great if one can execute automated tests for silverlight/ html controls on all supported browsers.
Regards,
Flavia
Yes you are correct. I've marked this thread and will send an update when a build is ready containing the fix.
All the best,
Cody
the Telerik team
This problem is fixed in our Q3 release coming out this week.
Greetings,Cody
Hi,
I'm using Telerik.WebAii.Framework.2010.3.1607.msi
FF3.0.6
My SL Objects will be loaded after user was logged in successfully.
My code:
Init()
Utilities.GlobalObject.SETTINGS.EnableSilverlight = true;
Utilities.GlobalObject.SETTINGS.SilverlightConnectTimeout = 60000;
Utilities.GlobalObject.SETTINGS.ExecuteCommandTimeout = 60000;
Utilities.GlobalObject.MANAGER = new Manager(Utilities.GlobalObject.SETTINGS);
Utilities.GlobalObject.MANAGER.Start();
Utilities.GlobalObject.MANAGER.LaunchNewBrowser();
Utilities.GlobalObject.MANAGER.ActiveBrowser.Window.Maximize();
Utilities.GlobalObject.MANAGER.ActiveBrowser.NavigateTo(Utilities.GlobalRunning.SERVER_URL);
Utilities.GlobalObject.MANAGER.ActiveBrowser.WaitUntilReady();
-------------
Login()
FATInput.Tradition.TypeTextFieldBYID("Login1_UserName", Utilities.GlobalRunning.SERVER_USER);
FATInput.Tradition.TypePasswordBYID("Login1_Password", Utilities.GlobalRunning.SERVER_PASSWORD);
FATInput.Tradition.ClickButtonBYID("Login1_LoginButton");
Utilities.GlobalObject.MANAGER.ActiveBrowser.WaitUntilReady();
System.Threading.Thread.Sleep(Utilities.GlobalConfig.INT_WAIT_TIMEOUT_MILISECOND);
Utilities.GlobalObject.SILVERLIGHTAPP = Utilities.GlobalObject.MANAGER.ActiveBrowser.SilverlightApps()[0];
-----------------
Found exception at Utilities.GlobalObject.SILVERLIGHTAPP = Utilities.GlobalObject.MANAGER.ActiveBrowser.SilverlightApps()[0];
---------- Detail 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"
----------
Please help me if there is any way/solutions to fix this issue. It works fine in IE8,9 (32bit).
Seems that the proxy was set on and then the web AUT can not be loaded.
This the same application in which we filed PITS 5080 for, right?
Kind regards,Cody
the Telerik team