51Testing软件测试论坛
标题:
检查点问题
[打印本页]
作者:
ericludan
时间:
2009-12-14 23:06
标题:
检查点问题
// [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]
作者:
aman_cao
时间:
2009-12-15 09:34
你是选择的添加用户吧,第一次添加用户肯定能成功,但回放时,a1用户已经在在,添加就会失败了。
换成其它用户名就OK了
作者:
ericludan
时间:
2009-12-15 13:00
还是不行啊,是不是那关联设置的问题,还是URL模式下
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);
这段代码的问题.......????
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2