在GUI文件中有对该菜单描述,在执行时总是报错:无法识别该菜单
请问:我在做Webtest时,录制完脚本后保存,然后用GUI MAP Editor保存GUI文件。测试时总是报某个菜单无法识别,可是我在GUI MAP Editor 都可以看到对其的描述,是什么原因,该如何解决!
谢谢! # qwer
set_window("qwer",183);
edit_set("userID","100002");
obj_type("userID","<kTab>");
password_edit_set("password","a1efa966b83e2082");
obj_type("password","<kReturn_E>");
web_image_click("btu_login", -143, -20);
# menuFrame
---> set_window("menuFrame",2);
web_link_click("添加");
# mainFrame
set_window("mainFrame",6);
edit_set("branchID","222222222");
obj_type("branchID","<kTab>");
edit_set("branchName","222222");
obj_type("branchName","<kTab>");
edit_set("branchAddr","22222");
list_select_item("branchClass","三级支行");
web_sync(2);
list_select_item("superiorID","(123324321)12`");
button_press("确定");
在箭头处报:winrunner cannot find the window “menuFrame”‘
GUI文件:
mainFrame:
{
class: window,
MSW_class: html_frame,
html_name: mainFrame,
location: 1
}
mainFrame.branchAddr:
{
class: edit,
MSW_class: html_edit,
html_name: branchAddr
}
mainFrame.branchClass:
{
class: list,
MSW_class: html_combobox,
html_name: branchClass
}
mainFrame.branchID:
{
class: edit,
MSW_class: html_edit,
html_name: branchID
}
mainFrame.branchName:
{
class: edit,
MSW_class: html_edit,
html_name: branchName
}
mainFrame.superiorID:
{
class: list,
MSW_class: html_combobox,
html_name: superiorID
}
mainFrame."确定":
{
class: push_button,
MSW_class: html_push_button,
html_name: "确定"
}
menuFrame:
{
class: window,
MSW_class: html_frame,
html_name: menuFrame
}
menuFrame."添加":
{
class: object,
MSW_class: html_text_link,
html_name: "添加"
}
"对帐系统":
{
class: window,
MSW_class: html_frame,
html_name: "对帐系统"
}
"银企对帐系统".btu_login:
{
class: object,
MSW_class: html_rect,
html_name: "btu_login.gif"
}
"银企对帐系统".password:
{
class: edit,
MSW_class: html_edit,
html_name: password
}
"银企对帐系统".userID:
{
class: edit,
MSW_class: html_edit,
html_name: userID
}
[ 本帖最后由 jjqyyf 于 2006-6-15 18:07 编辑 ] mainFrame:
{
class: window,
MSW_class: html_frame,
html_name: mainFrame,
location: 1
} 看看其中是否有属性值可能发生变化.
有时候winrunner识别控件时的属性不一样 (如下:一个是pb_name, 另一个是label ) 不知道为什么??
mywork:
{
class: window,
pb_name: w_my_work_manage
}
mywork:
{
class: window,
label: "mywork"
}
页:
[1]