Freigeben über


WPF controls not getting identified in Beta2 CUIT?

Are you having trouble identifying a few of your WPF controls in Coded UI Test after upgrading to Beta2 or getting a warning during recording? You need to install the automation api 3.0 on the client to get CUIT to identify the virtualized controls in WPF.

Note that this update gets automatically downloaded if you are running Vista as part of the Vista platform update. In case of XP or W2K3, you can install the standalone version from here

Comments

  • Anonymous
    August 01, 2011
    Hello,I am working on desktop application. My OS is windows 7 and I am using VSTS 2010 ultimate with feature pack 2While running CUIT it prompts exception as follows. It does not detect 'Save&Cls' button, Recording has 4 'Save&Cls' buttons but it does not playback for 3rd and 4th button. Please help.Test method gloAutomation.SandipTidake.AppointmentsClasses.Appointments.NewAppointment threw exception:Microsoft.VisualStudio.TestTools.UITest.Extension.FailedToPerformActionOnBlockedControlException: Window 'Appointment - B SUDERLAND, B Barak S.( 1408 )' is blocking the control Save&Cls. Please move the window 'Appointment - B SUDERLAND, B Barak S.( 1408 )' or make the control Save&Cls visible and retry the action. Additional Details:TechnologyName:  'MSAA'Name:  'Save&Cls'ControlType:  'Button'---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0xF004F003Debug trace display following informationW, 3628, 14, 2011/08/02, 18:01:23.575, 87103627519, QTAgent32.exe, Playback - [WARNING] Internal warning: Can't find anchor child after updating the collectionW, 3628, 14, 2011/08/02, 18:01:23.593, 87103674919, QTAgent32.exe, Playback - [WARNING] Internal warning: Can't find anchor child after updating the collectionW, 3628, 14, 2011/08/02, 18:01:24.011, 87104819245, QTAgent32.exe, Playback - [WARNING] Internal failure: EnsureVisible via Setting Focus, Scrolling failedW, 3628, 14, 2011/08/02, 18:01:24.812, 87107009130, QTAgent32.exe, Playback - [WARNING] Internal warning: Couldn't get clickable point for ScreenUIElement since it was obscured by another UI element. See comparison tracing belowE, 3628, 14, 2011/08/02, 18:01:25.495, 87108877580, QTAgent32.exe, <a class=failure>Playback - {58} [FAILED] MouseButtonClick - "[MSAA, VisibleOnly]ControlType='Button' && Name='Save&Cls'"�</a>E, 3628, 14, 2011/08/02, 18:01:25.745, 87109561873, QTAgent32.exe, Playback - [IMAGE] C:Userssandip.tidake.GLODOM.000AppDataLocalTempUITestLogsLastRunRPF1ACA.pngE, 3628, 14, 2011/08/02, 18:01:26.076, 87110466527, QTAgent32.exe, AL: Playback Error: Microsoft.VisualStudio.TestTools.UITest.Extension.FailedToPerformActionOnBlockedControlException: Window 'Appointment - B SUDERLAND, B Barak S.( 1408 )' is blocking the control Save&Cls. Please move the window 'Appointment - B SUDERLAND, B Barak S.( 1408 )' or make the control Save&Cls visible and retry the action. Additional Details:TechnologyName:  'MSAA'Name:  'Save&Cls'ControlType:  'Button'---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0xF004F003  at Microsoft.VisualStudio.TestTools.UITest.Playback.Engine.IScreenElement.MouseButtonClick(Int32 x, Int32 y, Int32 nButton, Int32 fEnsureVisible, String bstrKeyModifiers)  at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.MouseButtonClick(Int32 x, Int32 y, MouseButtons button, ModifierKeys modifierKeys, Int32 ensureVisible)  at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.Click(MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinates)  --- End of inner exception stack trace ---  at Microsoft.VisualStudio.TestTools.UITesting.Playback.ThrowIfAnotherWindowIsBlockingControl(COMException ex, IPlaybackContext context)  at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowComException(COMException innerException, IPlaybackContext context)  at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, IPlaybackContext context)  at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, String actionName, UITestControl uiControl, Point point)  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)W, 3628, 16, 2011/08/02, 18:01:26.482, 87111575747, QTAgent32.exe, SLPlugin : Server Socket ClosedThanks
  • Anonymous
    August 04, 2011
    Does anyone has solution for above problem.? please HELP ...
  • Anonymous
    August 07, 2011
    I would suggest posting your problem on the MSDN forums, in particular the Visual Studio UI Automation Testsing one.social.msdn.microsoft.com/.../threads