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

Issue: Unable to locate target host

3 Answers 137 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Narendra
Top achievements
Rank 1
Narendra asked on 28 Mar 2011, 02:07 PM
Hello Telerik Team,

I am facing problem with the recording. When i record any step on  base setup(Url) of our product it ran successfully but when i ran the same step(Script) on our client setup(Url) it fails and give error:"Unable to locate the target host. After  re-recording  the same step on client setup it creates the new frame for that step and ran successfully. Why this happens? I want to make my script generic so that it can be executed on client steup also.Please provide help. Also tell the reason why it create the New frame in Element Explorer, I am recording the Same step just changing the Navigation URL from base to client. 

Failure Information:

~~~~~~~~~~~~~~~

Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: 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.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Int32 timeout)

   at ArtOfTest.WebAii.Core.Browser.WaitForFrame(FrameInfo frameInfo, Int32 timeout)

   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetFrameBrowserInstance(Browser topBrowser, FrameInfo frame, Int32 waitTimeout, String& stringError)

InnerException:

System.Exception: Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: 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.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Int32 timeout)

   at ArtOfTest.WebAii.Core.Browser.WaitForFrame(FrameInfo frameInfo, Int32 timeout)

   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetFrameBrowserInstance(Browser topBrowser, FrameInfo frame, Int32 waitTimeout, String& stringError)

   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(Browser browser, AutomationDescriptor descriptor)

   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep() .

3 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 28 Mar 2011, 02:29 PM
Hello Narendra,
    would it be possible for you to send me the actual test that causes the issue.

Does your Test Project contain Frames? (screenshot 2). If so, you might be running into a known issue. Under current implementation Frames have their own URL (screenshot 1) which is not affected by the BaseURL feature. The Frame URL will remain constant until you change it manually. This is already filed as bug and will be resolved in the near future. Meanwhile you will have to change the URL for the Frame manually.

Hope to hear from you soon.

All the best,
Stoich
the Telerik team
0
Rohit
Top achievements
Rank 1
answered on 17 Nov 2011, 11:58 AM

Hello Telerik Team,

We are also facing the same problem as our project is heavily using dynamic frames. We have even purchased the license for Test Studio Version 2011.1.712.0. Please let us know if this issue has been resolved else when can we expect a patch?


Winshuttle Team

0
Anthony
Telerik team
answered on 17 Nov 2011, 04:47 PM
Hi Rohit,

Yes, this issue is resolved. In fact we just released a new service pack today that contains that fix, version 2011.2.1117.

See here for information on HTML Frames and how Test Studio treats them. Also see our article on Using BaseURL and specifically how to configure Frames with BaseURL

Kind regards,
Anthony
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
Narendra
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Rohit
Top achievements
Rank 1
Anthony
Telerik team
Share this question
or