51Testing软件测试论坛

标题: Http-404与Warning的解释 [打印本页]

作者: higkoo    时间: 2008-4-22 12:49
标题: Http-404与Warning的解释
虚拟用户脚本:
  1.         web_url("显示框架",
  2.                 "URL=http://testserver/userAction.struts?actionType=showMain&menuTypeID=131767bM10677dcf57fMbe111e0cdb401948a61e16bf3b4130fa",
  3.                 "Resource=0",
  4.                 "RecContentType=text/html",
  5.                 "Referer=",
  6.                 "Snapshot=t5.inf",
  7.                 "Mode=HTML",
  8.                 EXTRARES,
  9.                 "URL=/jsp/css/1/styles.css", "Referer=http://testserver/userAction.struts?actionType=showMain&menuTypeID=131767bM10677dcf57fMbe111e0cdb401948a61e16bf3b4130fa", ENDITEM,
  10.                 "URL=/jsp/images/main/logo.swf", "Referer=http://testserver/jsp/top.jsp", ENDITEM,
  11.                 LAST);
复制代码


回放日志:
Login.c(66): Found resource "http://testserver/jsp/css/1/styles.css" in HTML "http://testserver/userAction.struts?actionType=showMain&menuTypeID=131767bM10677dcf57fMbe111e0cdb401948a61e16bf3b4130fa"          [MsgId: MMSG-26659]
Login.c(66): Resource "http://testserver/jsp/includes/check.js" is in the cache already and will not be downloaded again          [MsgId: MMSG-26655]
Login.c(66): Detected non-resource "http://testserver/jsp/left.jsp" in "http://testserver/userAction.struts?actionType=showMain&menuTypeID=131767bM10677dcf57fMbe111e0cdb401948a61e16bf3b4130fa"          [MsgId: MMSG-26574]
Login.c(66): Detected non-resource "http://testserver/jsp/top.jsp" in "http://testserver/userAction.struts?actionType=showMain&menuTypeID=131767bM10677dcf57fMbe111e0cdb401948a61e16bf3b4130fa"          [MsgId: MMSG-26574]
Login.c(66): Detected non-resource "http://testserver/userAction.struts?actionType=showTopMenu&menuTopID=" in "http://testserver/userAction.struts?actionType=showMain&menuTypeID=131767bM10677dcf57fMbe111e0cdb401948a61e16bf3b4130fa"          [MsgId: MMSG-26574]
Login.c(66): Detected non-resource "http://testserver/userAction.struts?actionType=showBottom" in "http://testserver/userAction.struts?actionType=showMain&menuTypeID=131767bM10677dcf57fMbe111e0cdb401948a61e16bf3b4130fa"          [MsgId: MMSG-26574]
Login.c(66): Detected non-resource "http://testserver/jsp/right.jsp" in "http://testserver/userAction.struts?actionType=showMain&menuTypeID=131767bM10677dcf57fMbe111e0cdb401948a61e16bf3b4130fa"          [MsgId: MMSG-26574]
Login.c(66): Found resource "http://testserver/jsp/images/main/bg.gif" in HTML "http://testserver/jsp/left.jsp"          [MsgId: MMSG-26659]
Login.c(66): Found resource "http://testserver/jsp/images/main/top_02.gif" in HTML "http://testserver/jsp/top.jsp"          [MsgId: MMSG-26659]
Login.c(66): Found resource "http://testserver/jsp/images/main/function04.gif" in HTML "http://testserver/jsp/top.jsp"          [MsgId: MMSG-26659]
Login.c(66): Found resource "http://testserver/jsp/images/main/function01.gif" in HTML "http://testserver/jsp/top.jsp"          [MsgId: MMSG-26659]
Login.c(66): Found resource "http://testserver/jsp/images/main/function03.gif" in HTML "http://testserver/jsp/top.jsp"          [MsgId: MMSG-26659]
Login.c(66): Downloading resource "http://testserver/jsp/images/main/logo.swf" (specified by argument number 12)          [MsgId: MMSG-26577]
Login.c(66): Found resource "http://testserver/jsp/includes/alai_menu.js" in HTML "http://testserver/userAction.struts?actionType=showTopMenu&menuTopID="          [MsgId: MMSG-26659]
Login.c(66): Found resource "http://testserver/jsp/includes/alai_menu_xp.js" in HTML "http://testserver/userAction.struts?actionType=showTopMenu&menuTopID="          [MsgId: MMSG-26659]
Login.c(66): Found resource "http://testserver/jsp/images/main/menu1a.gif" in HTML "http://testserver/userAction.struts?actionType=showTopMenu&menuTopID="          [MsgId: MMSG-26659]
Login.c(66): Found resource "http://testserver/jsp/images/main/touming.gif" in HTML "http://testserver/userAction.struts?actionType=showTopMenu&menuTopID="          [MsgId: MMSG-26659]
Login.c(66): Found resource "http://testserver/jsp/images/main/menu2.gif" in HTML "http://testserver/userAction.struts?actionType=showTopMenu&menuTopID="          [MsgId: MMSG-26659]
Login.c(66): Found resource "http://testserver/jsp/images/main/menu3.gif" in HTML "http://testserver/userAction.struts?actionType=showTopMenu&menuTopID="          [MsgId: MMSG-26659]
Login.c(66): Found resource "http://testserver/jsp/images/main/menu4.gif" in HTML "http://testserver/userAction.struts?actionType=showTopMenu&menuTopID="          [MsgId: MMSG-26659]
Login.c(66): Found resource "http://testserver/jsp/images/main/menu5.gif" in HTML "http://testserver/userAction.struts?actionType=showTopMenu&menuTopID="          [MsgId: MMSG-26659]
Login.c(66): Found resource "http://testserver/jsp/images/main/menu_bg7.gif" in HTML "http://testserver/userAction.struts?actionType=showTopMenu&menuTopID="          [MsgId: MMSG-26659]
Login.c(66): Found resource "http://testserver/images/menu_bg4.gif" in HTML "http://testserver/userAction.struts?actionType=showTopMenu&menuTopID="          [MsgId: MMSG-26659]
Login.c(66): Found resource "http://testserver/jsp/images/main/menu_03.gif" in HTML "http://testserver/userAction.struts?actionType=showTopMenu&menuTopID="          [MsgId: MMSG-26659]
Login.c(66): Found resource "http://testserver/jsp/images/main/menu_04.gif" in HTML "http://testserver/userAction.struts?actionType=showTopMenu&menuTopID="          [MsgId: MMSG-26659]
Login.c(66): Found resource "http://testserver/jsp/images/main/bottom_02.gif" in HTML "http://testserver/userAction.struts?actionType=showBottom"          [MsgId: MMSG-26659]
Login.c(66): Found resource "http://testserver/jsp/images/main/bottom_01.gif" in HTML "http://testserver/userAction.struts?actionType=showBottom"          [MsgId: MMSG-26659]
Login.c(66): Found resource "http://testserver/jsp/images/main/yh.gif" in HTML "http://testserver/userAction.struts?actionType=showBottom"          [MsgId: MMSG-26659]
Login.c(66): Found resource "http://testserver/jsp/images/main/bottom_03.gif" in HTML "http://testserver/userAction.struts?actionType=showBottom"          [MsgId: MMSG-26659]
Login.c(66): Found resource "http://testserver/jsp/images/main/bm.gif" in HTML "http://testserver/userAction.struts?actionType=showBottom"          [MsgId: MMSG-26659]
Login.c(66): Found resource "http://testserver/jsp/images/main/dbrw.gif" in HTML "http://testserver/userAction.struts?actionType=showBottom"          [MsgId: MMSG-26659]
Login.c(66): Found resource "http://testserver/jsp/images/foot_users.gif" in HTML "http://testserver/userAction.struts?actionType=showBottom"          [MsgId: MMSG-26659]
Login.c(66): Detected non-resource "http://testserver/jsp/infocomm/sms/sysShortMsg/reflesh.jsp" in "http://testserver/userAction.struts?actionType=showBottom"          [MsgId: MMSG-26574]
Login.c(66): Detected non-resource "http://testserver/jsp/infocomm/sms/sysShortMsg/sysShortMsgReflesh.jsp" in "http://testserver/userAction.struts?actionType=showBottom"          [MsgId: MMSG-26574]
Login.c(66): Warning -26627: HTTP Status-Code=404 (/jsp/includes/alai_menu.js) for "http://testserver/jsp/includes/alai_menu.js"          [MsgId: MWAR-26627]
Login.c(66): Warning -26627: HTTP Status-Code=404 (/jsp/includes/alai_menu_xp.js) for "http://testserver/jsp/includes/alai_menu_xp.js"          [MsgId: MWAR-26627]
Login.c(66): Warning -26627: HTTP Status-Code=404 (/images/menu_bg4.gif) for "http://testserver/images/menu_bg4.gif"          [MsgId: MWAR-26627]
Login.c(66): web_url("显示框架") highest severity level was "warning", 89929 body bytes, 6923 header bytes, 40 chunking overhead bytes          [MsgId: MMSG-26387]


问题一:Vuser的请求里,并没有上面Http-404中描述的资源,为什么?
问题二:highest severity level was "warning",这句代表了什么?我在回放的浏览器里查看此句回放的页面是正确的。
作者: iori    时间: 2008-4-22 15:29
是不是lr只是模拟了部分浏览器功能,IE的一些功能,lr中是没有的,所以会有警告?
作者: nimenkanne    时间: 2008-4-22 15:40
http://support.microsoft.com/kb/248033/zh-cn
我上网找了一下,404是找不到文件,可能现在的网页和你录制时有所改变,所以现在报错
作者: cp刘    时间: 2008-4-22 17:48
这个问题我碰到过

你先检查一下 你脚本录制阶段的 参数化部分 是不是多了一行

我当时碰到这个问题的时候 是做wap的一个项目 对方给我的数据 都是加密的

但是最后发现问题处在 参数化数据 多了一个空格 所以每次跑一个循环就多了一个404错误
作者: higkoo    时间: 2008-4-22 21:57
标题: 回复:
偶知道404是找不到请求资源的错误。

疑问就是LR为什么会发送这个请求?

脚本里没有请求这个资源,如果是脚本中请求到的资源找不到,LR会报ERROR级别的错误。
作者: liangjz    时间: 2008-4-22 22:14
1 用url-base方式录制检查是否有 请求http://testserver/jsp/includes/alai_menu.js
2 可以把日志的extend log打开把服务器端的response 回送截取




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2