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

Issues with Desktop Command on few features

1 Answer 33 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tobias
Top achievements
Rank 1
Tobias asked on 28 Nov 2013, 10:16 AM
There is an issue which annoys me every now and then is, in my project when I run the test live the steps do not work as recorded. The feature is a normal button which i tried walking over using the option of Desktop Cmmand(left click) and the Normal Click each. But the results indicate a test failure.
Find the logs using
a) Desktop Command
b) Normal Click
respectively

'11/28/2013 2:25:50 PM' - 'Fail' : 46. Desktop command: LeftClick on PerformImage
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Waiting for frame '[Frame:id=frameDyn,name=~Frame,src=https://sample-dev.t-sample.com/sample/GENERAL/sample.aspx,UseQuery:False]' timed out. Error: Wait for condition has timed out
InnerException:
System.Exception: Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Waiting for frame '[Frame:id=frameDyn,name=~Frame,src=https://sample-dev.t-sample.com/sample/GENERAL/sample.aspx,UseQuery:False]' timed out. Error: Wait for condition has timed out
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost host, AutomationDescriptor descriptor, Int32 timeout)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
------------------------------------------------------------
'11/28/2013 2:25:50 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'11/28/2013 2:25:50 PM' - Overall Result: Fail
'11/28/2013 2:25:50 PM' - Duration: [4 min: 23 sec: 636 msec]
------------------------------------------------------------
'11/28/2013 2:25:51 PM' - Test completed!s

********************************************************************************************************************************************************************


'11/28/2013 2:40:03 PM' - 'Fail' : 47. Click 'PerformImage'
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Waiting for frame '[Frame:id=frameDyn,name=~Frame,src=https://sample-dev.t-sample.com/sample/GENERAL/sample.aspx,UseQuery:False]' timed out. Error: Wait for condition has timed out
InnerException:
System.Exception: Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Waiting for frame '[Frame:id=frameDyn,name=~Frame,src=https://sample-dev.t-sample.com/sample/GENERAL/sample.aspx,UseQuery:False]' timed out. Error: Wait for condition has timed out
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost host, AutomationDescriptor descriptor, Int32 timeout)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
------------------------------------------------------------
'11/28/2013 2:40:03 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'11/28/2013 2:40:03 PM' - Overall Result: Fail
'11/28/2013 2:40:03 PM' - Duration: [4 min: 11 sec: 945 msec]
------------------------------------------------------------
'11/28/2013 2:40:05 PM' - Test completed!

1 Answer, 1 is accepted

Sort by
0
Velin Koychev
Telerik team
answered on 29 Nov 2013, 01:58 PM
Hello Tobias,

Go to your Project tab and check the test’s properties to make sure the test’s SilverlightEnabled Test property is set to true. If the value is set to true but the issue persists, you can review the troubleshooting steps in this document – Silverlight: Unable to Find the Target Host.

Let me know if you need any additional assistance. 

Regards,
Velin Koychev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Tobias
Top achievements
Rank 1
Answers by
Velin Koychev
Telerik team
Share this question
or