|
0测试积点
以下是我的一段代码:
static app_name = "C:\Program Files\Mercury Interactive\WinRunner\samples\flight\app\flight4a.exe";
if( invoke_application( app_name,"","",SW_SHOW ) != 0 )
{
report_msg( "The tested program does not existed ");
texit;
}
else
{
call batch_test();
}
# Shell_TrayWnd
# set_window ("Shell_TrayWnd", 1);
# toolbar_button_press ("ToolbarWindow32_0", "Login"); # Button Number 1;
# Login
set_window ("Login", 5);
edit_set ("Agent Name:_1", "conanin");
password_edit_set("Password:_1", "kzptnyoslzjsaz");
button_press ("OK");
# Flight Reservation
set_window ("Flight Reservation", 4);
menu_select_item ("File;Exit");
我用DEBUG模式运行老是invoke不起来程序,实在不知道为什么,我觉得是参数上的问题,但是不知道如何修改,请各位兄弟姐妹指教~!!在下先谢谢了! |
|