51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 2539|回复: 2
打印 上一主题 下一主题

[Robot] 测试TreeView控件出现的问题,高手给看看吧

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2005-10-26 16:04:24 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
最近才录制了个脚本,测试一个VB编写的模块,其中有个树图,最底层的节点在ItemText前面有个方框,如果选中了,方框中就会出现个对勾,但是在回放脚本的时候,总是卡在这里,不予执行,无法模拟用鼠标选中该方框,脚本中录制的代码是:
TreeView Click, "ObjectIndex=1;\;ItemText=test_filter->新建条件->网元类型选择->MSC", "Location=Icon"

我跟开发确认过了,确实就是用的VB里Tree控件来实现的。
请高手给看看,谢谢了!

[ Last edited by ilovejolly on 2005-10-26 at 16:51 ]
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2005-10-26 16:28:48 | 只看该作者
我没有测试过TreeView的控件,但我看了sqaBasic的相关帮助,我想可能是由于楼主的ItemText部分写错了。楼主的这个有四层,可能根本就不需要写这么多层的名称。由于楼主的具体测试环境我不太清楚,我把帮助上的内容拷在这,楼主参考参考吧!

ItemA->ItemB        This is a standard parent/child relationship used when the string limit has not been exceeded. It instructs Robot to look for ItemB in ItemA.

->ItemB        In this example, one or more parent items have been dropped. It instructs Robot to look for ItemB anywhere in the tree.

->ItemB->->ItemC        In this example, Robot looks for ItemC anywhere in the ItemB subhierarchy and only in the ItemB subhierarchy.

.->ItemB        This example introduces a new syntax element ?the dot (??. A dot instructs Robot to look in the currently selected level of the tree. In this example, Robot looks for ItemB as a child of the currently selected item.

.->ItemB->->ItemC        In this example, Robot looks for ItemC anywhere in the ItemB subhierarchy. ItemB is a child of the currently selected item.
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2005-10-26 16:46:11 | 只看该作者
谢谢你给的建议,我修改了一下Item,果然就可以了
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-5-6 04:04 , Processed in 0.069860 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表