问题描述
在VS 2013 Update4中,编码的UInot识别WPF功能区选项卡。请帮我修复这个问题。
In VS 2013 Update4, coded UInot recognizing the WPF Ribbon Tab. Please help me for fixing this issue.
我已经记录并执行了脚本,我的功能区选项卡出现以下错误。
I have recorded and executed script, i am getting below error for Ribbon Tab.
获取以下错误编码的UI测试。
Getting Below Error for Coded UI test.
测试名称: CodedUITestMethod1
测试FullName: CodedUITestProject4.CodedUITest1.CodedUITestMethod1
测试来源: c:\ Users \\ \\ _260795 \Documents\Visual Studio 2013 \Projects\CodedUITestProject4 \ CodedUITestProject4 \ CodedUITest1.cs:第27行¥b $ b测试结果: 失败
测试持续时间: 0:00:35.5587068
结果消息:
测试方法CodedUITestProject4.CodedUITest1.CodedUITestMethod1引发异常:
Microsoft.VisualStudio.TestTools.UITest.Extension.FailedToPerformActionOnBlocked ControlException:另一个控件阻止控件。请使阻止的控件可见,然后重试操作。其他详细信息:
TechnologyName: 'UIA'
FrameworkId: 'WPF'
ControlType: 'TabPage'
AutomationId: 'PlayTab'
---> System.Runtime.InteropServices.COMException:来自HRESULT的异常:0xF004F003
结果StackTrace:
在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按钮,ModifierKeys modifierKeys,Point relativeCoordinates)
---内部异常堆栈跟踪结束---
 在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(异常异常,String actionName,UITestControl uiControl,Int32 X,Int32 Y)
at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.Click(MouseButtons button,ModifierKeys modifierKeys,Point relativeCoordinates)
at Microsoft.VisualStudio.TestTools.UITesting.UITestActionExecutorCore.Click(UITestControl control,MouseButtons button,ModifierKeys modifierKeys,Point relativeCoordinate)
at Microsoft.VisualStudio.TestTools.UITesting.Mouse.ClickImplementation(UITestControl control,MouseButtons button,ModifierKeys modifierKeys,Point relativeCoordinate)
at Microsoft.VisualStudio.TestTools.UITesting.Mouse。<> c__DisplayClass6。< Click> b__5()
at Microsoft.VisualStudio.TestTools.UITesting.CodedUITestMethodInvoker.InvokeMethod [T](Func`1 function,UITestControl control,Boolean firePlaybackErrorEvent,Boolean logAsAction)
at Microsoft.VisualStudio.TestTools.UITesting.Mouse.Click(UITestControl control,MouseButtons button,ModifierKeys modifierKeys,Point relativeCoordinate)
at Microsoft.VisualStudio.TestTools.UITesting.Mouse.Click(UITestControl control,Point relativeCoordinate)
atc中的CodedUITestProject4.UIMap.RecordedMethod9():\ Users \260795 \ Files \ Visual Studio 2013 \Projects\CasterUITestProject4 \ CodedUITestProject4 \ UIMap.Designer.cs:第297行
在CodedUITestProject4.CodedUITest1.CodedUITestMethod1()in c:\ Users \260795 \ Files \ Visual Studio 2013 \Projects\CasterUITestProject4 \ CodedUITestProject4 \CodedUITest1.cs:第37行¥b $ b
Test Name: CodedUITestMethod1
Test FullName: CodedUITestProject4.CodedUITest1.CodedUITestMethod1
Test Source: c:\Users\260795\Documents\Visual Studio 2013\Projects\CodedUITestProject4\CodedUITestProject4\CodedUITest1.cs : line 27
Test Outcome: Failed
Test Duration: 0:00:35.5587068
Result Message:
Test method CodedUITestProject4.CodedUITest1.CodedUITestMethod1 threw exception:
Microsoft.VisualStudio.TestTools.UITest.Extension.FailedToPerformActionOnBlockedControlException: Another control is blocking the control. Please make the blocked control visible and retry the action. Additional Details:
TechnologyName: 'UIA'
FrameworkId: 'WPF'
ControlType: 'TabPage'
AutomationId: 'PlayTab'
---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0xF004F003
Result StackTrace:
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.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 actionName, UITestControl uiControl, Int32 X, Int32 Y)
at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.Click(MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinates)
at Microsoft.VisualStudio.TestTools.UITesting.UITestActionExecutorCore.Click(UITestControl control, MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinate)
at Microsoft.VisualStudio.TestTools.UITesting.Mouse.ClickImplementation(UITestControl control, MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinate)
at Microsoft.VisualStudio.TestTools.UITesting.Mouse.<>c__DisplayClass6.<Click>b__5()
at Microsoft.VisualStudio.TestTools.UITesting.CodedUITestMethodInvoker.InvokeMethod[T](Func`1 function, UITestControl control, Boolean firePlaybackErrorEvent, Boolean logAsAction)
at Microsoft.VisualStudio.TestTools.UITesting.Mouse.Click(UITestControl control, MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinate)
at Microsoft.VisualStudio.TestTools.UITesting.Mouse.Click(UITestControl control, Point relativeCoordinate)
at CodedUITestProject4.UIMap.RecordedMethod9() in c:\Users\260795\Documents\Visual Studio 2013\Projects\CodedUITestProject4\CodedUITestProject4\UIMap.Designer.cs:line 297
at CodedUITestProject4.CodedUITest1.CodedUITestMethod1() in c:\Users\260795\Documents\Visual Studio 2013\Projects\CodedUITestProject4\CodedUITestProject4\CodedUITest1.cs:line 37
推荐答案
感谢您在MSDN论坛上发帖。
Thank you for posting in MSDN forum.
这个论坛是关于VS设置和安装的,因为你的问题与Code UI测试有关,我帮你把这个案例移到测试论坛获得专业支持。
This forum is about VS setup and installation, as your question is related to Code UI test, I help you move this case to test forum for a much professional support.
感谢您的理解与合作。
最诚挚的问候,
这篇关于在VS 2013 Update4中,编码的ui无法识别WPF功能区选项卡。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!