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

Sliverlight test as test step

4 Answers 76 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
J Kabath
Top achievements
Rank 1
J Kabath asked on 19 Apr 2010, 09:34 PM
I created a very simple sliverlight test and it run fine standalone.  Now I've made it a step in another test, and it fails every time.  The error message is...

InnerException:
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.GetApp(HtmlControl host, Int32 timeout, Boolean catchedOnly)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetHost(IAutomationHost topBrowser, ElementDescriptor element, Int32 appConnectTimeout, Boolean cachedSLAppOnly, String& error)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetHostEE(IAutomationHost topBrowser, ElementDescriptor element, String& error)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()


It looks like it cannot find the sliverlight app.  Is this simply an issue of using nested test?

Jay

4 Answers, 1 is accepted

Sort by
0
Missing User
answered on 19 Apr 2010, 11:57 PM
Hello Jay,

Thanks for the post and question, I was able to repro this in Dev Edition. The SilverlightEnabled property must be enabled on the outer, calling test.

In Visual Studio's Test View Window, if you right click on the outer WebAii test and select Properties, then you can enable the SilverlightEnabled property.

It's somewhat hidden, so I'll log a feature request to have this in a more opbious spot.

Greetings,
Nelson Sin
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
J Kabath
Top achievements
Rank 1
answered on 20 Apr 2010, 02:47 PM
When I looked at that property it was already set to TRUE.  I tried to set it to FALSE so that I could set it back and it would not let me change it.  I recompiled the entire solutions and then it worked!

Thanks for the fast response, this testing tool really looks great!!!

Jay
0
J Kabath
Top achievements
Rank 1
answered on 29 Apr 2010, 07:47 PM
I have upgraded to VS 2010 and now I am having a new problem with the same simple test.  The test fails and when I look at the warning it says that for the step test 'Deployment is currently disabled.'  How do I enable it?  I don't see it on the properties list of the solution, project of test file.  My old VS 2008 test still runs and I didn't knowing set any deployment property.

Thanks for the help.
0
Missing User
answered on 29 Apr 2010, 08:41 PM
Hello Jay,

Thanks for the post and question. Deployment Items are disabled by default in VS 2010. Please try the following in VS:

main menu->test->edit test run configurations->local test run->deployment->enable deployment

Here is the link from a Microsoft forum for reference.

All the best,
Nelson Sin
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
J Kabath
Top achievements
Rank 1
Answers by
Missing User
J Kabath
Top achievements
Rank 1
Share this question
or