
Hi all,
i am currently evaluating the docking framework and everythign looks good up to the point where i start to test how the framework behaves with UI test (microsoft UI test)
My test setup seems fine:
i am able to do my actionsI am able to extract a control and do a validation
BUT
when i run the test, it doesn't seem to be able to reproduce any steps that requires to interact with a control inside the docking framework. (all other controls outside the docking site works)
The test fails with the following error:
Test Name: TestActiPro2 Test FullName: SES.Modules.CrossSection.UITests.LocationsPanelTests.TestActiPro2 Test Source: D:\SESWork\TFS\DefaultCollection\CrossSectionsModule\Dev\Team1-TestActipro\Src\SES.Modules.CrossSection.UITests\LocationsPanelTests.vb : line 49 Test Outcome: Failed Test Duration: 0:00:11.8274248
Result Message: Test method SES.Modules.CrossSection.UITests.LocationsPanelTests.TestActiPro2 threw exception: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: The playback failed to find the control with the given search properties. Additional Details: TechnologyName: 'UIA' FrameworkId: 'Wpf' ControlType: 'Button' Name: 'Add Circuit' Search may have failed at 'ToolWindowContainer-4084e7e7-d538-4cba-a6b6-374c29...' Pane as it may have virtualized children. If the control being searched is descendant of 'ToolWindowContainer-4084e7e7-d538-4cba-a6b6-374c29...' Pane then including it as the parent container may solve the problem. ---> System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component. Result StackTrace: at Microsoft.VisualStudio.TestTools.UITest.Playback.Engine.IScreenElement.FindAllDescendants(String bstrQueryId, Object& pvarResKeys, Int32 cResKeys, Int32 nMaxDepth) at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.FindAllScreenElement(String queryId, Int32 depth, Boolean singleQueryId, Boolean throwException, Boolean resetSkipStep) at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.FindScreenElement(String queryId, Int32 depth, Boolean resetSkipStep) at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindFirstDescendant(String queryId, Int32 maxDepth, Int32& timeLeft) --- End of inner exception stack trace --- at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapControlNotFoundException(COMException ex, IPlaybackContext context) at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowComException(COMException innerException, IPlaybackContext context) at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(Exception exception, IPlaybackContext context) at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(Exception exception, String queryId) at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindFirstDescendant(String queryId, Int32 maxDepth, 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.<Find>b__37() at Microsoft.VisualStudio.TestTools.UITesting.CodedUITestMethodInvoker.InvokeMethod[T](Func'1 function, UITestControl control, Boolean firePlaybackErrorEvent, Boolean logAsAction) at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.Find() at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.GetPropertyPrivate(String propertyName) at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.GetPropertyOfType[T](String propertyName) at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.get_Name() at SES.Modules.CrossSection.UITests.SES.Modules.CrossSection.UITests.UIMap.CheckAddCircuitButtonName() in D:\SESWork\TFS\DefaultCollection\CrossSectionsModule\Dev\Team1-TestActipro\Src\SES.Modules.CrossSection.UITests\UIMap.Designer.vb:line 189 at SES.Modules.CrossSection.UITests.LocationsPanelTests.TestActiPro2() in D:\SESWork\TFS\DefaultCollection\CrossSectionsModule\Dev\Team1-TestActipro\Src\SES.Modules.CrossSection.UITests\LocationsPanelTests.vb:line 52
Any ideas?