需要加快点击子菜单的速度 [英] Need to speed up clicking on submenus

查看:67
本文介绍了需要加快点击子菜单的速度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候,

我很难在单击.NET应用程序(台式机,客户端/服务器)中的子菜单时,编码UI回放速度非常慢.最终会执行单击操作,但是测试有时必须多次重复单击顶部菜单项,然后才能多次单击. 进入子菜单选项.像

I am having difficulty with Coded UI playback being very slow to click on submenus within our .NET application (desktop, client/server). The click is eventually performed, but the test sometimes has to repeatedly click the top menu item several times before advancing to the submenu option. Something like

编辑->保存

可以快速单击编辑",但是在识别并单击保存"之前,可能还要再单击3-4次.

Edit is clicked quickly, but then it may be clicked 3-4 more times before Save is recognized and clicked.

我们还有一个特殊情况,即我们选择一个嵌套菜单,其中的文本与之前的父子菜单相同.像这样:

We also have a special case where we are choose a nested menu where the text is the same as the parent submenu before it. Something like so:

选择->公司A->公司A

Select -> Company A -> Company A

单击是在第二个公司A上进行的.是否有任何建议可以更快地识别该对象?

The click is performed on the second Company A. Any advice to make recognition of this object faster?

推荐答案

一些示例代码将很有用,您是使用UIMap还是手工构建控件?我建议确保控件的搜索属性正确.如果不是,则使用智能匹配算法搜索它们,以寻找相似的 控件,并且至少需要20秒才能找到一个控件(以我的经验).将控件注册到UIMap中,然后使用这些注册的控件查看其点击速度.

Some sample code would be usefull, are you using UIMaps or hand-conding the controls?. I would suggest making sure the search properties of the controls are correct. If they aren't they are searched using the smart matching algorithm which looks for similar controls and can take at minimum an additional 20 seconds to find a control (in my experience). Register the controls in a UIMap and use those registered controls to see how fast they are clicked. 

对于第二个问题,不是通过名称"搜索控件吗?财产?如果是这样,则选项的文本无关紧要,但是控件必须是唯一可识别的(通过Name属性).

As for the second problem, aren't the controls searched by the "Name" property? If so the text of the option shouldn't matter, but the controls have to be uniquely identifiable (by the Name property).


这篇关于需要加快点击子菜单的速度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆