急:lr脚本在回放时与所录制时访问的URL不一致问题
我测试的对象是一个Web应用程序用JAVA开发的,我录制脚本的时候选用的是http协议按照url方式录制的,回放时如下脚本内容报错,脚本如下:Virtual User Script started
Starting action vuser_init.
Web Turbo Replay of LoadRunner 9.50 for WINXP; WebReplay9a build 6220 (Dec 28 2008 17:01:56)
Run Mode: HTML
Run-Time Settings file: "D:\lr\was600\\default.cfg"
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(4): Redirecting "http://192.168.90.97:8888/was/jsp/info/info_navigation.jsp?verb=newdocument&serviceId=20090904-67F4CAD21CA295554C29-11&unid=-1&guideservicecode=null" (redirection depth is 0)
Action.c(4): To location "http://192.168.90.97:8888/was/loginaction.jsp?page=http://192.168.90.97:8888/was/jsp/info/info_navigation.jsp?verb=newdocument&serviceId=20090904-67F4CAD21CA295554C29-11&unid=-1&guideservicecode=null"
Action.c(4): Redirecting "http://192.168.90.97:8888/was/loginaction.jsp?page=http://192.168.90.97:8888/was/jsp/info/info_navigation.jsp?verb=newdocument&serviceId=20090904-67F4CAD21CA295554C29-11&unid=-1&guideservicecode=null" (redirection depth is 1)
Action.c(4): To location "http://192.168.90.97:8888/was/login.jsp/jsp/info/info_navigation.jsp?verb=newdocument&serviceId=20090904-67F4CAD21CA295554C29-11&unid=-1&guideservicecode=null"
Action.c(4): Error -26627: HTTP Status-Code=404 (/was/login.jsp/jsp/info/info_navigation.jsp) for "http://192.168.90.97:8888/was/login.jsp/jsp/info/info_navigation.jsp?verb=newdocument&serviceId=20090904-67F4CAD21CA295554C29-11&unid=-1&guideservicecode=null"
Action.c(4): web_url("info_navigation.jsp") highest severity level was "ERROR", 1081 body bytes, 988 header bytes Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
红色部分为回放时输出错误信息,而在脚本中对应的连接如下红色:
web_url("info_navigation.jsp",
"URL=http://192.168.90.97:8888/was/jsp/info/info_navigation.jsp?verb=newdocument&serviceId=20090904-67F4CAD21CA295554C29-11&unid=-1&guideservicecode=null", "Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t57.inf",
"Mode=HTML",
LAST);
问题:为什么回放时所指定的连接与我脚本录制的连接地址不一致呢?而在录制的时候只有一条信息为什么在回放返回时却执行了多次? 没有人知道吗? 回复 1# linewell
上面已经有提示了,是因为有跳转了 报错的原因可能有2种:
serviceId需要关联
URL变了(serviceId以外的),重录看看
页:
[1]