51Testing软件测试论坛
标题:
急:lr脚本在回放时与所录制时访问的URL不一致问题
[打印本页]
作者:
linewell
时间:
2010-12-29 11:02
标题:
急: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) [MsgId: MMSG-27143]
Run Mode: HTML [MsgId: MMSG-26000]
Run-Time Settings file: "D:\lr\was600\\default.cfg" [MsgId: MMSG-27141]
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) [MsgId: MMSG-26694]
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" [MsgId: MMSG-26693]
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) [MsgId: MMSG-26694]
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" [MsgId: MMSG-26693]
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" [MsgId: MERR-26627]
Action.c(4): web_url("info_navigation.jsp") highest severity level was "ERROR", 1081 body bytes, 988 header bytes [MsgId: MMSG-26388]
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);
问题:为什么回放时所指定的连接与我脚本录制的连接地址不一致呢?而在录制的时候只有一条信息为什么在回放返回时却执行了多次?
作者:
linewell
时间:
2010-12-29 11:49
没有人知道吗?
作者:
msnshow
时间:
2010-12-29 13:37
回复
1#
linewell
上面已经有提示了,是因为有跳转了
作者:
婴儿
时间:
2010-12-30 14:13
报错的原因可能有2种:
serviceId需要关联
URL变了(serviceId以外的),重录看看
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2