loadrunner录制脚本,cookie关联问题
loadrunner录制脚本,cookie关联问题现在录制脚本,其中含cookie,
脚本如下:
web_add_cookie("ClaimJSESSIONID=6H2pKKCS5Pwj1VjZtbJ9412YjHqKl6fpT1Kt4Lm2ngfGQ31FvKrG!822474530; DOMAIN=100.250.128.69");
web_url("index.jsp",
"URL=http://100.250.128.69:7021/claim/index.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t29.inf",
"Mode=HTML",
EXTRARES,
"Url=images/imglogologon.gif", ENDITEM,
"Url=images/imgpleaselogon.gif", ENDITEM,
"Url=images/imglogon_1.gif", ENDITEM,
"Url=images/Bg.gif", ENDITEM,
"Url=images/imgusername.gif", ENDITEM,
"Url=images/imgpassworld.gif", ENDITEM,
"Url=images/bglogon.gif", ENDITEM,
"Url=images/imgjigou.gif", ENDITEM,
"Url=images/btnlogon.gif", ENDITEM,
"Url=images/imglogon_2.gif", ENDITEM,
"Url=images/imglogon_3.gif", ENDITEM,
LAST);
。。。。。。。
回放时报错:
vuser_init.c(14): Error -27796: Failed to connect to server "100.250.128.69:7021": Connection refused
初步原因估计是:cookie没有对应上,服务器返回cookie值,没有在脚本中关联上,所以报错
求各大虾赐招,小弟很是感激,点头中 问题解决,录制方式的关系,换成URL_based Script方式录制
页:
[1]