问题描述
尝试在实验室机器上运行我的编码测试,但由于以下错误而失败:
E,4856 ,11,2010 / 08 / 2016,00:23:23.358,2277487037501,QTAgent32.exe,< a class = failure>播放 - {6} [FAILED]函数ElementFetcher :: FindScreenElement无法找到UI元素(搜索:; [VisibleOnly] ControlType ='Window'&& Name ='Configuration
Manager Console'&& ClassName ='MMCMainFrame')(找不到指定的对象。)
测试actullay传递给其他几台机器..
这是由于mmc中扩展的树项目。当我解开时,即崩溃项目并关闭mmc并尝试再次,它实际上通过。
如果测试必须通过而不管树列表是否被扩展,那么我缺少的是什么。我将树倒塌到原始的一个在运行每个测试之前。如果是这样,我如何折叠codedui中的树。
请建议修复。
谢谢
Sam
Hi,
Trying to run my codedui tests on lab machine, and failed with the below error:
E, 4856, 11, 2010/08/16, 00:23:23.358, 2277487037501, QTAgent32.exe, <a class=failure>Playback - {6} [FAILED] Function ElementFetcher::FindScreenElement failed to locate UI element (Searching: ;[VisibleOnly]ControlType='Window' && Name='Configuration Manager Console' && ClassName='MMCMainFrame') (The object specified was not found.)
The test actullay passed on few other machines..
This is due to the expanded tree item in mmc.When I unexpand ie collapse the items and close the mmc and try again,it actually passes.
If the test has to pass irrespective of whether the tree list is expanded or not,what is that i am missing.can i have the tree collapse to original one before running each test.If so,how do i collapse a tree in codedui.
Please suggest the fix.
thanks
Sam
这篇关于在其他计算机上运行codedui测试时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!