|
求救:
我的程序框架如下,编的是一个通用的测试框架:
unload();
GUI_unload_all();
#get the test dir
static test_director = getvar("searchpath");
test_director = substr(test_director,match(test_director,"<") +1,match(test_director,">") - 2);
static path_lib = "\\path.lib";
static utils_lib = "\\utils.lib";
load(test_director & path_lib);
load(test_director & utils_lib);
#global variable is defined in the path.lib
const RADIO_CONFIG_GUI = "\\waris_conv_win_radioconfiguration\\radioconfiguration.gui";
#const TABLE = "waris_conv_win_radioconfiguration_10.xls";#data base
static cps_port = "";
#select the tab WIN_TREE => LIST_TREE => SEL_PATH
# => WIN_TAB => TAB
const LIST_TREE = "SysTree";
const WIN_TREE = "TreeView";
const SEL_PATH= "Device at COM4 Port;Radio Configuration";#the path to select the window which will be tested.
const WINDOW = "RadioConfiguration";#The window include the tab
const WIN_TAB = "RadioConfigurationTab";#The fram of the tab
const TAB = "DefaultDisplay";#the table of the window
#initial the environment
initial_environment();
if(GUI_load(test_director & RADIO_CONFIG_GUI) != E_OK)
{
tl_step("load gui",1,RADIO_CONFIG_GUI & " failed");
}
rc = check_box_test( WIN_TREE, LIST_TREE,SEL_PATH, WINDOW,
WIN_TAB,TAB,TABLE, cps_port );
if(rc != E_OK )
{
tl_step("Test status",1,"Failed");
} else {
tl_step("Test status",0,"Successful");
}
#close the table
ddt_close(TABLE);
clear_environment();
unload();
GUI_unload_all();
GUI_close_all();
然后用
call_close "d:\\test"("data1.xls");
call_close "d:\\test"("data2.xls");
第一个call_close 语句可以顺利执行但是当执行的第二个call语句时在
if(GUI_load(test_director & RADIO_CONFIG_GUI) != E_OK)
{
tl_step("load gui",1,RADIO_CONFIG_GUI & " failed");
}
这个地方load gui文件出错
请高手指点。 |
|