|
Sample Text
请帮忙看看下面的代码
static i=0, error_flag=0;
#Initializing customer name array
static cust_arr[]={"John","Steve","Miron","Patrick","Mary","Dan","Kim"};
static lib_path = getvar("testname") & "\\..\\flt_lib";
reload(lib_path);
# Open the flight application
rc = open_flight();
if (rc == E_GENERAL_ERROR){
tl_step(invoking_aut, FAIL,couldnt_open_flight);
clean_up();
texit;
}
# Opening the Open Order Form
open_OpenOrderForm ();
#..........
上面的代码是winrunner自带的flight的测试例子,路径为 Mercury Interactive\WinRunner\samples\flight\tests\initstat
我要问的是static lib_path = getvar("testname") & "\\..\\flt_lib";
中的testname是什么意思,
我模仿它编写了一段测试程序可老是出现格式错误的提示框
请斑竹帮我看看是什么地方错了
static rc;
reload("F:\\test7");
rc = open_canyinxt();
if (rc == E_GENERAL_ERROR){
tl_step(initialization, FAIL,couldnt_open_canyinxt);
texit;
}
其中test7是个compiled function module |
|