|
3#
楼主 |
发表于 2007-1-12 16:18:17
|
只看该作者
invoke_application("C:\\Program Files\\中科新天\\POPSMGR\\POPSMGR.exe","","","SW_SHOW");
# POPSMGR
set_window ("POPSMGR", 12);
button_press ("确定");
# Shell_TrayWnd
set_window ("Shell_TrayWnd", 4);
toolbar_button_press ("ToolbarWindow32_0", "WinRunner - [C:\\Documents and Settings\\dell\\My Documents\\test2*]"); # Button Number 0;
# 用户登录
set_window ("用户登录", 7);
list_select_item ("SQL SERVER服务器:_0", "DEVSERVER"); # Item Number 1;
list_select_item ("用户名称:_0", "Admin"); # Item Number 0;
button_press ("登录");
# POPS-新天组织人事信息移动查询系统管理控制台_2
set_window ("POPS-新天组织人事信息移动查询系统管理控制台_2", 5);
obj_mouse_click ("菜单栏", 44, 11, LEFT);
# Afx:400000:8:10011:0:0
win_mouse_click ("Afx:400000:8:10011:0:0", 51, 11);
# 连接源数据库
set_window ("连接源数据库", 18);
button_set ("Windows认证", OFF);
edit_set ("SQL SERVER服务器:_1", "tserver");
list_select_item ("信息集数据库:_0", "gpms-gsnew"); # Item Number 3;
button_press ("连接");
# POPSMGR
set_window ("POPSMGR", 1);
button_press ("确定");
# POPS-新天组织人事信息移动查询系统管理控制台_2
set_window ("POPS-新天组织人事信息移动查询系统管理控制台_2", 1);
obj_mouse_drag ("菜单栏", 32, 8, 28, 10, LEFT);
# Afx:400000:8:10011:0:0
win_mouse_click ("Afx:400000:8:10011:0:0", 80, 90);
# POPSMGR
set_window ("POPSMGR", 1);
button_press ("确定");
# 另存为
set_window ("另存为", 11);
edit_set ("文件名(N):", "1.12");
button_press ("保存(S)");
# POPSMGR
set_window ("POPSMGR", 2);
button_press ("确定");
# POPS-新天组织人事信息移动查询系统管理控制台_2
set_window ("POPS-新天组织人事信息移动查询系统管理控制台_2", 1);
obj_mouse_click ("菜单栏", 46, 6, LEFT);
# Afx:400000:8:10011:0:0
win_mouse_click ("Afx:400000:8:10011:0:0", 63, 78);
# POPSMGR
set_window ("POPSMGR", 1);
button_press ("确定");
# 另存为
set_window ("另存为", 5);
edit_set ("文件名(N):", "1111");
button_press ("保存(S)");
# POPSMGR
set_window ("POPSMGR", 1);
button_press ("确定");
# POPS-新天组织人事信息移动查询系统管理控制台_2
set_window ("POPS-新天组织人事信息移动查询系统管理控制台_2", 1);
obj_mouse_click ("菜单栏", 53, 8, LEFT);
# Afx:400000:8:10011:0:0
win_mouse_click ("Afx:400000:8:10011:0:0", 52, 33);
# POPSMGR
win_mouse_click ("POPSMGR", 56, 56);
set_window ("POPSMGR", 0);
button_press ("是(Y)");
# POPS-新天组织人事信息移动查询系统管理控制台_2
set_window ("POPS-新天组织人事信息移动查询系统管理控制台_2", 2);
obj_mouse_click ("菜单栏", 35, 9, LEFT);
# Afx:400000:8:10011:0:0
win_mouse_click ("Afx:400000:8:10011:0:0", 81, 92);
# POPSMGR
set_window ("POPSMGR", 1);
button_press ("确定");
# 另存为
set_window ("另存为", 3);
edit_set ("文件名(N):", "1111");
button_press ("保存(S)");
# POPSMGR
set_window ("POPSMGR", 1);
button_press ("确定");
# POPS-新天组织人事信息移动查询系统管理控制台_2
set_window ("POPS-新天组织人事信息移动查询系统管理控制台_2", 3);
obj_mouse_click ("菜单栏", 51, 14, LEFT);
# Afx:400000:8:10011:0:0
win_mouse_click ("Afx:400000:8:10011:0:0", 74, 88);
# POPSMGR
set_window ("POPSMGR", 3);
button_press ("确定");
# 另存为
set_window ("另存为", 3);
edit_set ("文件名(N):", "1111");
button_press ("保存(S)");
# POPSMGR
set_window ("POPSMGR", 1);
button_press ("确定"); |
|