Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Crashing during playback on IE11

$
0
0

My Code UI test is crashing again again just after browser window open.

We have VS2010 SP1 Installed.

Below is the code line:

 BrowserWindow bingcomBrowser = BrowserWindow.Launch(new System.Uri(this.LaunchBingParams.Url));

Event Viewer Info:

The description for Event ID 0 from source Microsoft Test Manager cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event:

Specified cast is not valid.Stack Trace ==>   at Microsoft.VisualStudio.TestTools.UITest.Extension.NativeMethods.ObjectFromLresult(IntPtr msgcallResult, Guid refGuid, IntPtr resultRef)

   at Microsoft.VisualStudio.TestTools.UITest.Extension.NativeMethods.GetDocumentFromWindowHandle[T](IntPtr windowHandleOfIE)

   at Microsoft.VisualStudio.TestTools.UITest.Extension.IE.CommonBrowserUtility.WebBrowserFromWindowHandle(IntPtr handle, STAHelperThread staHelperObject, IsPlaybackCanceled playbackCanceled, IntPtr& documentWindowHandle)

   at Microsoft.VisualStudio.TestTools.UITesting.IEBrowserService.UpdateWebBrowserReference()

   at Microsoft.VisualStudio.TestTools.UITesting.IEBrowserService.<>c__DisplayClass5.<Locate>b__4()

   at Microsoft.VisualStudio.TestTools.UITesting.ALUtility.PerformRetryOperation(RetryOperation operation, Int32 timeout)

   at Microsoft.VisualStudio.TestTools.UITesting.IEBrowserService.Locate(IntPtr handle)

   at Microsoft.VisualStudio.TestTools.UITesting.IEBrowserFactory.Locate(IntPtr handle)

   at Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow.get_BrowserService()

   at Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow.get_CurrentDocumentWindow()

   at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.GetUITestControlRecursive(Boolean useCache, Boolean alwaysSearch, ISearchArgument searchArg, IList`1 windowTitles, Int32& timeLeft)

   at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.GetUITestControlRecursive(Boolean useCache, Boolean alwaysSearch, ISearchArgument searchArg, IList`1 windowTitles, Int32& timeLeft)

   at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.GetUITestControlRecursive(Boolean useCache, Boolean alwaysSearch, ISearchArgument searchArg, IList`1 windowTitles, Int32& timeLeft)

   at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.GetElement(Boolean useCache, ISearchArgument searchArg)

   at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.Search(ISearchArgument searchArg)

   at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindInternal()

   at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindControlIfNecessary()

   at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.Click(MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinates)

   at Microsoft.VisualStudio.TestTools.UITesting.Mouse.ClickImplementation(UITestControl control, MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinate)

   at Microsoft.VisualStudio.TestTools.UITesting.Mouse.ClickImplementationWrapper(UITestControl control, MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinate)

   at Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.UIActionInterpreter.Invoke(MouseAction action, UIMap map)

   at Microsoft.VisualStudio.TestTools.UITest.Common.MouseAction.Invoke(UITestActionInvoker actionInvoker, UIMap map)

   at Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.UITestInterpreter.ExecuteAction(UITestAction action)

   at Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.UITestInterpreter.ExecuteStepInternal(UITestAction action, Boolean& retryStep)

   at Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.UITestInterpreter.IterateActionList(UITestActionListSection ActionListSection, Int64 startId, Int64 stopId)

   at Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.UITestInterpreter.ExecuteTest(Int64 startId, Int64 stopId)

   at Microsoft.VisualStudio.TestTools.ManualTest.Common.AFNPlayback.OnPlayback(Object afnPlaybackSegment)

   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Threading.ThreadHelper.ThreadStart(Object obj)


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>