51Testing软件测试论坛

标题: Java Menu (Applet) ??? [打印本页]

作者: waferguy    时间: 2005-4-28 20:51
标题: Java Menu (Applet) ???
I'm facing this problem relate Java menu (applet).
After record these action as below -> and re-run, but have error about object not found or the step 2(Select menu "CreateNew") select wrong menu item

Browser("ABC").Page("XYZ").Frame("leftFrame").JavaApplet("TreeView").JavaTree("JTree").Click 124,132,"RIGHT"

Browser("ABC").Page("XYZ").Frame("leftFrame").JavaApplet("TreeView").JavaMenu("CreateNew").Select

Thnks for advances
作者: QA_BAY    时间: 2005-4-29 08:53
你的版本是多少的.
看样子好像是录不了右键菜单的新建!
你可以查看一下object repository里面有没有JavaMenu("CreateNew")这个控件!
如果没有,你可以用SPY查看一下,然后自己再将它加进去试!
作者: waferguy    时间: 2005-4-29 12:39
Currently, I use QTP8.2 and Java Add-in 6.5 With 8.2 upgraded

The object "CreateNew" ready in Object Repository, But I don't know why when run this script, the action select wrong item menu
作者: QA_BAY    时间: 2005-4-29 13:03
提示出现什么样的错误,可以把错误的图片贴出来吗?
作者: waferguy    时间: 2005-4-29 14:30
I need test this function:

When I click on Java applet tree (with specific tree node) -> The system will pop-up one context menu, this menu have three item (View Information, Create New, Delete)

When I record these action , and run these script (as above) -> the action must be Select menu [Create New] , but I don't know why this action select [View Information] menu.

Thnks for help




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