MTM Crashing during playback on IE8 and IE9 machines
-
2012年4月12日 1:02
Our repro test case is trivial. It clicks a link, passes the step, clicks the same link, passes the step, repeat. Clean out the mouse hover events, save, play back all. Most of the time it will crash in step 7 of 10. Sometimes it doesn't. This is blocking us from testing and is an active impediment in our sprint.
We have VS2010 SP1 Installed.
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)
Alex
- 已移动 niveditabawa_MSFTMicrosoft Employee 2012年4月19日 14:33 moving it to Visual Studio UI Automation Testing forum to get better responses (From:Testing with Visual Studio Test Manager (MTM))
全部回复
-
2012年4月16日 3:59版主
Hello Alex,
Do you mean you can record the the test successfully with MTM, however only get the MTM crashed during the playback?
To help you deal with your issue I would like to know more information:
- With which version of IE you used to record the test? IE8 or IE9 or...?
- If you record another simple web application with simple test steps, will you get the same issue?
- If you do not record one web application, I mean you just record a desktop application (winform for example), will you get the same issue?
Thanks.
Vicky Song [MSFT]
MSDN Community Support | Feedback to us
-
2012年4月16日 17:59
Do you mean you can record the the test successfully with MTM, however only get the MTM crashed during the playback?
[Alex] - It records fine but crashes during playback.
To help you deal with your issue I would like to know more information:
- With which version of IE you used to record the test? IE8 or IE9 or...?
- [Alex] - We've recorded on both and experience playback crashes on both.
- If you record another simple web application with simple test steps, will you get the same issue?
- [Alex] - No. I haven't been able to repro anywhere else. I've tried a number of sites and attempted a couple local repro attempts.
- If you do not record one web application, I mean you just record a desktop application (winform for example), will you get the same issue?
- [Alex] - No. Haven't been able to reproduce the problem anywhere else.
Notes: Doesn't repro when we leave the Mouse Hover events in so potential timing issue or possibly coruption of the recording due to deletions. Seems to only reproduce in our Administrative pages.
Alex
- 已编辑 Alex Scott 2012年4月16日 21:41
-
2012年4月19日 14:32
I am moving this thread to the Visual Studio UI Automation Testing forum to get better responses on this one.
Thanks
-
2012年4月23日 9:09
The problem seems to be very specific to your web application, is it possible for you to share the application?
Sending across the dumps for the crash would also be helpful, you can mail it to skhanATmicrosoft.com. -
2012年4月24日 19:13
The problem seems to be very specific to your web application, is it possible for you to share the application?
Sending across the dumps for the crash would also be helpful, you can mail it to skhanATmicrosoft.com.I sent an email containing repro information, system info, and provided a link to the dump file. Please let me know when you received everything.
Sharing the site may be possible but preferably as a last resort. Please let me know.
Alex
-
2012年5月3日 4:55
Hi,
As I replied in the e-mail, add a small wait (1 second or so) before performing the first action on a new page.
Thanks.
- 已标记为答案 Vicky SongModerator 2012年5月7日 7:59

