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

Timeout to connect Silverlight application when called from other test

3 Answers 102 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dalibor
Top achievements
Rank 1
Dalibor asked on 08 Nov 2011, 08:21 AM
Hi Telerik,

1. I have test 1 which opens a web page and types login name and password into my Silverlight application.
2. I have test2 which calls test 1 as a first step.
3. I have test3 which calls test 2 as a firts step.
4. I have a test4 which makes 5 times loop over test 3.

When I run test1 then it works.
When I run test2 (which calls test 1) then it works.
When I run test3 (which calls test 2 which calls test 1) then it works.
But when I run test4 which calls test 3 in loop then it fails.
Test 4 does
- loop
- calls of test3
- test 3 calls test2
- test2 calls test1. This opens a browser with my Silverlight application. Then second step (typing to login text box) fails with message Timeout trying to connect Silverlight application.

Any idea? I am using 2011.2.928.0.

Best regards,
Dalibor

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 08 Nov 2011, 10:08 AM
Hello Dalibor,

I'm sorry you are running into this problem. This appears to be a simple timeout issue. The loading time for a Silverlight site can vary greatly and this is causing the recorder to timeout trying to connect to the Silverlight app. Please try to increase the Silverlight Connect Timeout settings in Project Settings->Recording Options.
Also if you need to increase the global Wait on Elements Timeout , you can do that from the Quick Execution Options.

Please give it a try and let me know if you still experience the same problem!

Regards,
Plamen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Dalibor
Top achievements
Rank 1
answered on 08 Nov 2011, 12:44 PM
Hi,
it did not help. I have increased Silverlight Connect Timeout to 60000ms, but still the same.
Application has no problem to load in let's say 10 second. See http://dl.dropbox.com/u/12738049/video1.swf.
As I wrote in my initial post (also in above video) if I run it directly then it does not have problem with locating the element.
Best regards,
Dalibor
0
Accepted
Plamen
Telerik team
answered on 08 Nov 2011, 05:02 PM
Hello Dalibor,

Thank you for providing the video.

I was able to reproduce the problem you are experiencing and I'm glad to inform you that there is a simple solution. You need to enable the Silverlight automation from the Test Properties. Just click on your test4(where the loop is located) and check the SilverlightEnabled property(see screenshot).

You need to do almost the same thing if you are running the test as part of a Test List. You need to go to the Test List Settings and under the Web tab you'll find our EnableSilverlight property(see screenshot).

If you need further assistance on this, please let me know!

Greetings,
Plamen
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
Dalibor
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Dalibor
Top achievements
Rank 1
Share this question
or