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

Changing the project url creates an entirely new instance of the silverlight application

3 Answers 168 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kristine Ayson
Top achievements
Rank 1
Kristine Ayson asked on 14 Jun 2010, 04:56 AM
The silverlight application I'm testing has changed its url. My old tests no longer work eversince. I have been encountering this error:

Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Unable to find the Silverlight plugin on the following page:'http://sanjose:1810/' using the following expression:'[id 'Exact' Div1] THEN UNDER NODE FIND [tagIndex 'Exact' object:0]'. Exception: System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
   at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.WebAii.Synchronization.Wait.ForCondition(Func`3 condition, Boolean invertCondition, Object custom, Int32 timeout)
   at ArtOfTest.WebAii.Synchronization.Wait.ForExists(Int32 timeout, Boolean refreshElement)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetHost(IAutomationHost topBrowser, ElementDescriptor element, Int32 hostFindTimeout, Int32 appConnectTimeout, Boolean cachedSLAppOnly, String& error)

I tried to record a new test using the new url, and the test studio created a new instance of the silverlight application. Please see attached screenshot.

How can I make the old tests work with the new url?

Regards,
Kristine

3 Answers, 1 is accepted

Sort by
0
Accepted
Cody
Telerik team
answered on 14 Jun 2010, 05:33 PM
Hello Kristine Ayson,

  1. Start by modifying the NavigateUrl property of your NavigateTo step as shown in the navigatetourl.png screenshot
  2. Modify the BaseUrl for the pages hosing your Silverlight application as showin in the pagebaseurl.png screenshot.

Now your test should run using the modified URL's.

Kind regards,
Cody
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
Kristine Ayson
Top achievements
Rank 1
answered on 15 Jun 2010, 03:38 AM
Hi Cody,

Much thanks for your reply. Maybe there has been a major change in the silverlight application I'm testing that's why my old tests have stopped working. The tool had to create a new instance of the application in the Elements Explorer when I tried to record a new test using the new url.

I just rerecorded all tests, tried them with the new url, and then reexecuted them using another valid url. Both execution passed.

Best Regards,
Kristine
0
Cody
Telerik team
answered on 15 Jun 2010, 03:56 PM
Hi Kristine Ayson,

Well I'm glad you found a solution. We added many features to the tool to make it as easy as possible to maintain tests so you don't have to re-record them like you just did. It makes sense the tool would create new page entries in Elements Explorer due to the change in the URL.The tool key's off of the URL to know which page is current.

If I can be of any further assistance, let me know. I'll be glad to help.

All the best,
Cody
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
Kristine Ayson
Top achievements
Rank 1
Answers by
Cody
Telerik team
Kristine Ayson
Top achievements
Rank 1
Share this question
or