|
// [WCSPARAM WCSParam_Diff1 43 102130.631186715fcfDDttpDtVzzzzHDVfcApAzzAf] 参数 {WCSParam_Diff1} 由 Correlation Studio 创建
web_reg_save_param("WCSParam_Diff1",
"LB=userSession value=",
"RB=>",
"Ord=1",
"RelFrameId=1",
"Search=Body",
"IgnoreRedirections=Yes",
LAST);
web_url("nav.pl",
"URL=http://127.0.0.1:1080/mercuryWebTours/nav.pl?in=home",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/mercuryWebTours/welcome.pl?signOff=true",
"Snapshot=t26.inf",
"Mode=HTTP",
LAST);
web_concurrent_end(NULL);
web_url("fma-gateway.jpg",
"URL=http://127.0.0.1:1080/MercuryWebTours/images/fma-gateway.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://127.0.0.1:1080/MercuryWebTours/home.html",
"Snapshot=t25.inf",
LAST);
web_url("mer_login.gif",
"URL=http://127.0.0.1:1080/MercuryWebTours/images/mer_login.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://127.0.0.1:1080/mercuryWebTours/nav.pl?in=home",
"Snapshot=t27.inf",
LAST);
lr_think_time(4);
web_reg_find("Text=a1",LAST);
web_submit_data("login.pl",
"Action=http://127.0.0.1:1080/mercuryWebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/mercuryWebTours/nav.pl?in=home",
"Snapshot=t28.inf",
"Mode=HTTP",
ITEMDATA,
"Name=userSession", "Value={WCSParam_Diff1}", ENDITEM,
"Name=username", "Value=a1", ENDITEM,
"Name=password", "Value=b1", ENDITEM,
"Name=JSFormSubmit", "Value=off", ENDITEM,
"Name=login.x", "Value=56", ENDITEM,
"Name=login.y", "Value=6", ENDITEM,
LAST);
这是loadrunner自带的飞机订票系统的脚本,用url模式下录制的登录脚本,回放后设置了关联,然后添加用户名a1的检查点,运行错误!!!哪个大大帮下忙,为什么啊???
Action.c(92): 注册 web_reg_find 成功 [MsgId: MMSG-26390]
Action.c(94): 错误 -26366: 找不到 web_reg_find 的“Text=a1” [MsgId: MERR-26366]
Action.c(94): web_submit_data("login.pl") 最高严重级别为“ERROR”,439 个正文字节,345 个标头字节 [MsgId: MMSG-26388] |
|