|
感谢大家的支持,我的配置是 windows xp , loadrunner 9.0, IE7的,我在tomcat上部署的application, 下面是脚本,我是把所有的脚本都放在action里面的,脚本里应该没定义变量,不过我以前的其他的脚本定义过,不过不管是不是定义过变量的脚本,一直是报这个错误,而且是一开始就报错。请各位帮帮忙!谢谢!
Action()
{
web_url("index.jsp",
"URL=http://localhost:8080/tms/index.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("command.js",
"URL=http://localhost:8080/tms/scripts/command.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://localhost:8080/tms/index.jsp",
"Snapshot=t2.inf",
LAST);
web_url("common.js",
"URL=http://localhost:8080/tms/scripts/common.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://localhost:8080/tms/index.jsp",
"Snapshot=t3.inf",
LAST);
web_url("CheckData.js",
"URL=http://localhost:8080/tms/scripts/CheckData.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://localhost:8080/tms/index.jsp",
"Snapshot=t4.inf",
LAST);
web_url("ublic.js",
"URL=http://localhost:8080/tms/scripts/Public.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://localhost:8080/tms/index.jsp",
"Snapshot=t5.inf",
LAST);
web_url("calendar-win2k-cold-1.css",
"URL=http://localhost:8080/tms/scripts/jscalendarcss/calendar-win2k-cold-1.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://localhost:8080/tms/index.jsp",
"Snapshot=t6.inf",
LAST);
web_url("jscalendar.js",
"URL=http://localhost:8080/tms/scripts/jscalendar.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://localhost:8080/tms/index.jsp",
"Snapshot=t7.inf",
LAST);
web_url("tms.css",
"URL=http://localhost:8080/tms/styles/tms.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://localhost:8080/tms/index.jsp",
"Snapshot=t8.inf",
LAST);
web_url("calendar-en.js",
"URL=http://localhost:8080/tms/scripts/lang/calendar-en.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://localhost:8080/tms/index.jsp",
"Snapshot=t9.inf",
LAST);
web_url("calendar-setup.js",
"URL=http://localhost:8080/tms/scripts/calendar-setup.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://localhost:8080/tms/index.jsp",
"Snapshot=t10.inf",
LAST);
web_url("formsValidation.js",
"URL=http://localhost:8080/tms/scripts/formsValidation.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://localhost:8080/tms/index.jsp",
"Snapshot=t11.inf",
LAST);
web_url("tms_login.jpg",
"URL=http://localhost:8080/tms/images/tms_login.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://localhost:8080/tms/index.jsp",
"Snapshot=t12.inf",
LAST);
web_concurrent_end(NULL);
lr_think_time(12);
web_submit_data("userManager.do",
"Action=http://localhost:8080/tms/admin/userManager.do",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost:8080/tms/index.jsp",
"Snapshot=t13.inf",
"Mode=HTTP",
ITEMDATA,
"Name=name", "Value=admin", ENDITEM,
"Name=password", "Value=5468321", ENDITEM,
"Name=selectLang", "Value=en_US", ENDITEM,
"Name=button", "Value=Login", ENDITEM,
"Name=method", "Value=login", ENDITEM,
"Name=request-id", "Value=0.5010057153414529", ENDITEM,
LAST);
web_concurrent_start(NULL);
web_url("main_top.jsp",
"URL=http://localhost:8080/tms/main_top.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:8080/tms/admin/userManager.do",
"Snapshot=t14.inf",
"Mode=HTTP",
LAST);
web_url("main_left.jsp",
"URL=http://localhost:8080/tms/main_left.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:8080/tms/admin/userManager.do",
"Snapshot=t15.inf",
"Mode=HTTP",
LAST);
web_url("desktop.jsp",
"URL=http://localhost:8080/tms/desktop.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:8080/tms/admin/userManager.do",
"Snapshot=t16.inf",
"Mode=HTTP",
LAST);
web_concurrent_end(NULL);
web_concurrent_start(NULL);
web_url("BB_title_1024.jpg",
"URL=http://localhost:8080/tms/images/BB_title_1024.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://localhost:8080/tms/main_top.jsp",
"Snapshot=t17.inf",
LAST);
web_url("BB_title_800.jpg",
"URL=http://localhost:8080/tms/images/BB_title_800.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://localhost:8080/tms/main_top.jsp",
"Snapshot=t18.inf",
LAST);
web_url("BB_title_1280.jpg",
"URL=http://localhost:8080/tms/images/BB_title_1280.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://localhost:8080/tms/main_top.jsp",
"Snapshot=t19.inf",
LAST);
web_concurrent_end(NULL);
web_concurrent_start(NULL);
web_url("global.css",
"URL=http://localhost:8080/tms/styles/global.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://localhost:8080/tms/main_left.jsp",
"Snapshot=t20.inf",
LAST);
web_url("plus_folder.jpg",
"URL=http://localhost:8080/tms/images/menu/plus_folder.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://localhost:8080/tms/main_left.jsp",
"Snapshot=t21.inf",
LAST);
web_url("minus_folder.jpg",
"URL=http://localhost:8080/tms/images/menu/minus_folder.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://localhost:8080/tms/main_left.jsp",
"Snapshot=t22.inf",
LAST);
web_url("leaf.jpg",
"URL=http://localhost:8080/tms/images/menu/leaf.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://localhost:8080/tms/main_left.jsp",
"Snapshot=t23.inf",
LAST);
web_concurrent_end(NULL);
web_concurrent_start(NULL);
web_url("scrolling_table_body.js",
"URL=http://localhost:8080/tms/scripts/scrolling_table_body.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://localhost:8080/tms/desktop.jsp",
"Snapshot=t24.inf",
LAST);
web_url("menu_tracker_off.jpg",
"URL=http://localhost:8080/tms/images/menu_tracker_off.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://localhost:8080/tms/desktop.jsp",
"Snapshot=t25.inf",
LAST);
web_url("tms_overview.gif",
"URL=http://localhost:8080/tms/images/tms_overview.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://localhost:8080/tms/desktop.jsp",
"Snapshot=t26.inf",
LAST);
web_url("shera.jpg",
"URL=http://localhost:8080/tms/images/shera.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://localhost:8080/tms/desktop.jsp",
"Snapshot=t27.inf",
LAST);
web_concurrent_end(NULL);
lr_think_time(7);
web_url(" Logout",
"URL=http://localhost:8080/tms/admin/logout.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:8080/tms/main_left.jsp",
"Snapshot=t28.inf",
"Mode=HTTP",
LAST);
web_submit_data("userManager.do_2",
"Action=http://localhost:8080/tms/admin/userManager.do",
"Method=GET",
"EncType=",
"RecContentType=text/html",
"Referer=http://localhost:8080/tms/admin/logout.jsp",
"Snapshot=t29.inf",
"Mode=HTTP",
ITEMDATA,
"Name=method", "Value=logout", ENDITEM,
LAST);
return 0;
} |
|