Hello,
When i run the automation case with vs2010, it failed and threw the exception as below, which sees that there need the silverlight plugin installed. But i am not sure which plugin i should install. Currently in my machine there have the silverlight3 SDK AND
silverlight4 SDK installed.
Overall Result: Fail
------------------------------------------------------------
'6/16/2011 2:27:13 PM' - Detected custom code in test. Locating test assembly: UIAutomation.dll.
'6/16/2011 2:27:13 PM' - Assembly Found: C:\Redstone\RedstoneDev\Clients\Test\UITests\UIAutomation\TestResults\v-ccheng_MSNBC-CCHENG01 2011-06-16 14_27_10\Out\UIAutomation.dll
'6/16/2011 2:27:13 PM' - Loading code class: 'UIAutomation.RedstoneTests.HelperSteps.Select_Env_Launch_Redstone'.
------------------------------------------------------------
'6/16/2011 2:27:14 PM' - 'Pass' : 1. [Select_Env_Launch_Redstone_CodedStep] : @"Navigate to : 'Test Redstone URL'
'6/16/2011 2:27:44 PM' - 'Fail' : 2. LeftClick on Item24Border
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Unable to find the Silverlight plugin on the following page:'res://ieframe.dll/http_404.htm#http://msnbc-kayu01.fareast.corp.microsoft.com/wbstart.htm?DisableConfirmPrompt=true' using the following expression:'[id 'Exact' silverlightControlHost] AND [tagname 'Exact' div][tagname 'Exact' object]'. 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)
InnerException:
System.Exception: Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Unable to find the Silverlight plugin on the following page:'res://ieframe.dll/http_404.htm#http://msnbc-kayu01.fareast.corp.microsoft.com/wbstart.htm?DisableConfirmPrompt=true' using the following expression:'[id 'Exact' silverlightControlHost] AND [tagname 'Exact' div][tagname 'Exact' object]'. 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)
at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost host, AutomationDescriptor descriptor, Int32 timeout)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
------------------------------------------------------------
'6/16/2011 2:27:44 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'6/16/2011 2:27:44 PM' - Overall Result: Fail
'6/16/2011 2:27:44 PM' - Duration: [0 min: 30 sec: 689 msec]
------------------------------------------------------------
<<< Test-as-Step 'RedstoneTests\HelperSteps\Select_Env_Launch_Redstone.aii' log ends.
InnerException:
System.Exception: Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Unable to find the Silverlight plugin on the following page:'res://ieframe.dll/http_404.htm#http://msnbc-kayu01.fareast.corp.microsoft.com/wbstart.htm?DisableConfirmPrompt=true' using the following expression:'[id 'Exact' silverlightControlHost] AND [tagname 'Exact' div][tagname 'Exact' object]'. 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)
at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost host, AutomationDescriptor descriptor, Int32 timeout)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
------------------------------------------------------------
'6/16/2011 2:27:44 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'6/16/2011 2:27:44 PM' - Overall Result: Fail
'6/16/2011 2:27:44 PM' - Duration: [0 min: 30 sec: 923 msec]
------------------------------------------------------------
<<< Test-as-Step 'Applets\CommonSteps\Open_test_story.aii' log ends.
InnerException:
System.Exception: Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Unable to find the Silverlight plugin on the following page:'res://ieframe.dll/http_404.htm#http://msnbc-kayu01.fareast.corp.microsoft.com/wbstart.htm?DisableConfirmPrompt=true' using the following expression:'[id 'Exact' silverlightControlHost] AND [tagname 'Exact' div][tagname 'Exact' object]'. 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)
at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost host, AutomationDescriptor descriptor, Int32 timeout)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
------------------------------------------------------------
'6/16/2011 2:27:44 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'6/16/2011 2:27:44 PM' - Overall Result: Fail
'6/16/2011 2:27:44 PM' - Duration: [0 min: 31 sec: 735 msec]
------------------------------------------------------------
'6/16/2011 2:27:45 PM' - Test completed!
Best,
Cherry