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

Tests failing on silverlight pages using Chrome

12 Answers 105 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Joseph
Top achievements
Rank 1
Joseph asked on 06 May 2014, 02:38 PM
Hello all,

I have a suite of automated tests that run fine on IE. When I change my app.config to use Chrome, all the tests fail and timeout with this exception.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TimeoutException: Timeout trying to connect to Silverlight App.

I have other non Silverlight pages in my application that execute fine. Any pointers or tips would be much appreciated.

Thanks,

Joseph

 

12 Answers, 1 is accepted

Sort by
0
Joseph
Top achievements
Rank 1
answered on 07 May 2014, 09:06 PM
To add to my post, all the tips here have been confirmed and still no luck on Chrome..
http://docs.telerik.com/teststudio/user-guide/troubleshooting_guide/recording-problems/unable-to-connect-to-silverlight-application
0
Cody
Telerik team
answered on 09 May 2014, 01:37 PM
Hi Joseph,

Did you enable Silverlight automation? This can be done one of two ways:
1) In the app.config file, in the "WebAii.Settings.Web" section include
enableSilverlight="true"
2) Via code:
Manager.Settings.Web.EnableSilverlight = true;
This line needs to run before you launch the browser.

Regards,
Cody
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Joseph
Top achievements
Rank 1
answered on 09 May 2014, 02:04 PM
yep, that's set to true. If that were set to false, wouldn't IE fail as well?
0
Cody
Telerik team
answered on 09 May 2014, 03:18 PM
Hello Joseph,

My apologies for overlooking that this is Chrome specific, and yes you are right it would fail in IE as well.

It may be a proxy interference problem. In order for us to automate Silverlight applications in Chrome we start up our own HTTP proxy process and automatically change the proxy settings of the machine to point to our proxy. If Chrome is not recognizing the change in proxy settings, or a third party anti-virus product is interfering, then we won't be able to inject our automation hooks into the Silverlight application.

Can you investigate this possibility?

Regards,
Cody
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Joseph
Top achievements
Rank 1
answered on 09 May 2014, 03:37 PM
The application is on a internal network, with its own proxy and firewall. I asked my network guy and he said he just needs to open up the firewall for this connection to get out. Where can I get the specs that I can forward to him? Pardon me if I am being vague, but I am not a network guy.

Thanks,

Joseph
0
Joseph
Top achievements
Rank 1
answered on 09 May 2014, 03:54 PM
Also, just curious as why IE doesn't require the proxy?
0
Cody
Telerik team
answered on 09 May 2014, 05:05 PM
Hello Joseph,

There's really not much to the specs. When running a Silverlgith applcation we start up a process "ArtOfTest.WebAii.HttpProxy.exe" out of our Bin folder. We then modify the proxy settings of your machine to what's shown in the attached screen shot. That forces all HTTP traffic to be routed through our proxy process on your machine.

IE doesn't require it because it has a different API which allows us to inject our Silverlight automation hooks w/o using the proxy. The other browsers don't have the same API. The proxy is the only method we have to inject our hooks.

Regards,
Cody
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Joseph
Top achievements
Rank 1
answered on 12 May 2014, 02:51 PM
Thanks Cody. I am working with my network guy today on this. I am not sure if something is blocking the proxy change since we use our own proxy for traffic. I also don't know if our network is allowing your proxy to get out. I'll know more later. Thanks!

Joseph
0
Joseph
Top achievements
Rank 1
answered on 12 May 2014, 05:59 PM
Hi Cody,

I went back to my network guy, and he asked for a destination IP for your HTTP proxy. Can you tell me where it is pointing?
0
Cody
Telerik team
answered on 12 May 2014, 07:12 PM
Hello Joseph,

It doesn't work that way. Any HTTP request our proxy receives (the browser sends to 127.0.0.1:8089 per the proxy settings) is recorded by Test Studio and then forwarded directly to the requested real destination IP address. There is no external IP address used.

Regards,
Cody
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Joseph
Top achievements
Rank 1
answered on 12 May 2014, 07:14 PM
Fwiw, I am not using the Test Studio directly. I am only using the framework as a reference in my VS solution.
0
Cody
Telerik team
answered on 12 May 2014, 07:24 PM
Hello Joseph,

That's just fine and doesn't change anything. Test Studio is built on top of our own framework and it's our framework that is activating the proxy for all Silverlight test automation... both full Test Studio and those using our free framework.

Regards,
Cody
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Joseph
Top achievements
Rank 1
Answers by
Joseph
Top achievements
Rank 1
Cody
Telerik team
Share this question
or