51Testing软件测试论坛

标题: 测试TreeView控件出现的问题,高手给看看吧 [打印本页]

作者: xmoon    时间: 2005-10-26 16:04
标题: 测试TreeView控件出现的问题,高手给看看吧
最近才录制了个脚本,测试一个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 ]
作者: qingchunjun    时间: 2005-10-26 16:28
我没有测试过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.
作者: xmoon    时间: 2005-10-26 16:46
谢谢你给的建议,我修改了一下Item,果然就可以了




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2