找不到资源
回放日志如下:Starting action vuser_init.
Web Turbo Replay of LoadRunner 9.0.0 for WINXP; WebReplay82 build 5727
Run-Time Settings file: "C:\Documents and Settings\Administrator\Local Settings\Temp\noname23\\default.cfg"
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(4): Redirecting "http://192.168.2.55:3001/tais_web" (redirection depth is 0)
Action.c(4): To location "http://192.168.2.55:3001/tais_web/"
Action.c(4): web_url("tais_web") was successful, 1918 body bytes, 381 header bytes, 16 chunking overhead bytes
Action.c(13): web_add_cookie was successful
Action.c(15): web_add_cookie was successful
Action.c(17): web_add_cookie was successful
Action.c(19): web_add_cookie was successful
Action.c(21): Found resource "http://192.168.2.55:3001/tais_web/css/main.css" in HTML "http://192.168.2.55:3001/tais_web/rbac/login3.do"
Action.c(21): Found resource "http://192.168.2.55:3001/tais_web/rbac/md5.js" in HTML "http://192.168.2.55:3001/tais_web/rbac/login3.do"
Action.c(21): Found resource "http://192.168.2.55:3001/tais_web/images/DL_01.gif" in HTML "http://192.168.2.55:3001/tais_web/rbac/login3.do"
Action.c(21): Found resource "http://192.168.2.55:3001/tais_web/images/DL_02.gif" in HTML "http://192.168.2.55:3001/tais_web/rbac/login3.do"
Action.c(21): Found resource "http://192.168.2.55:3001/tais_web/images/DL_03.gif" in HTML "http://192.168.2.55:3001/tais_web/rbac/login3.do"
Action.c(21): Found resource "http://192.168.2.55:3001/tais_web/images/DL_04.gif" in HTML "http://192.168.2.55:3001/tais_web/rbac/login3.do"
Action.c(21): Found resource "http://192.168.2.55:3001/tais_web/images/DL_07.gif" in HTML "http://192.168.2.55:3001/tais_web/rbac/login3.do"
Action.c(21): Found resource "http://192.168.2.55:3001/tais_web/images/DL_bt.gif" in HTML "http://192.168.2.55:3001/tais_web/rbac/login3.do"
Action.c(21): Found resource "http://192.168.2.55:3001/tais_web/images/DL_08.gif" in HTML "http://192.168.2.55:3001/tais_web/rbac/login3.do"
Action.c(21): Found resource "http://192.168.2.55:3001/tais_web/images/DL_10.gif" in HTML "http://192.168.2.55:3001/tais_web/rbac/login3.do"
Action.c(21): Found resource "http://192.168.2.55:3001/tais_web/images/DL_11.gif" in HTML "http://192.168.2.55:3001/tais_web/rbac/login3.do"
Action.c(21): Found resource "http://192.168.2.55:3001/tais_web/images/DL_12.gif" in HTML "http://192.168.2.55:3001/tais_web/rbac/login3.do"
Action.c(21): web_url("login3.do") was successful, 110030 body bytes, 2300 header bytes
Action.c(30): web_add_cookie was successful
Action.c(32): web_add_cookie was successful
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/js/common.jsp" in HTML "http://192.168.2.55:3001/tais_web/rbac/loginAction3.do"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/js/editableTable.js" in HTML "http://192.168.2.55:3001/tais_web/rbac/loginAction3.do"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/js/numberFormat.js" in HTML "http://192.168.2.55:3001/tais_web/rbac/loginAction3.do"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/js/loadBar.js" in HTML "http://192.168.2.55:3001/tais_web/rbac/loginAction3.do"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/js/showMessage.jsp" in HTML "http://192.168.2.55:3001/tais_web/rbac/loginAction3.do"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/skins/normal/tais.css" in HTML "http://192.168.2.55:3001/tais_web/rbac/loginAction3.do"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/skins/normal/css.css" in HTML "http://192.168.2.55:3001/tais_web/rbac/loginAction3.do"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/skins/normal/common.jsp" in HTML "http://192.168.2.55:3001/tais_web/rbac/loginAction3.do"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/skins/normal/region.css" in HTML "http://192.168.2.55:3001/tais_web/rbac/loginAction3.do"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/skins/normal/tree.css" in HTML "http://192.168.2.55:3001/tais_web/rbac/loginAction3.do"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/skins/normal/tabpane.css" in HTML "http://192.168.2.55:3001/tais_web/rbac/loginAction3.do"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/skins/normal/splitpanel.css" in HTML "http://192.168.2.55:3001/tais_web/rbac/loginAction3.do"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/skins/normal/supertable.css" in HTML "http://192.168.2.55:3001/tais_web/rbac/loginAction3.do"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/img/loadbar.gif" in HTML "http://192.168.2.55:3001/tais_web/rbac/loginAction3.do"
Action.c(36): Detected non-resource "http://192.168.2.55:3001/tais_web/rbac/desktoplr/top3.jsp" in "http://192.168.2.55:3001/tais_web/rbac/loginAction3.do"
Action.c(36): Detected non-resource "http://192.168.2.55:3001/tais_web/rbac/desktoplr/menuTree.jsp" in "http://192.168.2.55:3001/tais_web/rbac/loginAction3.do"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/js/tabpane.js" in HTML "http://192.168.2.55:3001/tais_web/rbac/loginAction3.do"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/js/splitPanel.js" in HTML "http://192.168.2.55:3001/tais_web/rbac/loginAction3.do"
Action.c(36): Detected non-resource "http://192.168.2.55:3001/tais_web/rbac/desktoplr/bottom.htm" in "http://192.168.2.55:3001/tais_web/rbac/loginAction3.do"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/rbac/desktoplr/css/css.css" in HTML "http://192.168.2.55:3001/tais_web/rbac/desktoplr/top3.jsp"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/rbac/desktoplr/images/top_bg.gif" in HTML "http://192.168.2.55:3001/tais_web/rbac/desktoplr/top3.jsp"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/rbac/desktoplr/images/top_01.gif" in HTML "http://192.168.2.55:3001/tais_web/rbac/desktoplr/top3.jsp"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/rbac/desktoplr/images/top_02.gif" in HTML "http://192.168.2.55:3001/tais_web/rbac/desktoplr/top3.jsp"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/rbac/desktoplr/images/top_menu_left.gif" in HTML "http://192.168.2.55:3001/tais_web/rbac/desktoplr/top3.jsp"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/rbac/desktoplr/images/top_menu1.gif" in HTML "http://192.168.2.55:3001/tais_web/rbac/desktoplr/top3.jsp"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/rbac/desktoplr/images/top_menu2.gif" in HTML "http://192.168.2.55:3001/tais_web/rbac/desktoplr/top3.jsp"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/rbac/desktoplr/images/top_menu3.gif" in HTML "http://192.168.2.55:3001/tais_web/rbac/desktoplr/top3.jsp"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/rbac/desktoplr/images/top_menu4.gif" in HTML "http://192.168.2.55:3001/tais_web/rbac/desktoplr/top3.jsp"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/rbac/desktoplr/images/top_menu5.gif" in HTML "http://192.168.2.55:3001/tais_web/rbac/desktoplr/top3.jsp"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/rbac/desktoplr/images/top_menu_right.gif" in HTML "http://192.168.2.55:3001/tais_web/rbac/desktoplr/top3.jsp"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/rbac/desktoplr/images/bot_bg.gif" in HTML "http://192.168.2.55:3001/tais_web/rbac/desktoplr/bottom.htm"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/rbac/desktoplr/images/bot_01.gif" in HTML "http://192.168.2.55:3001/tais_web/rbac/desktoplr/bottom.htm"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/rbac/desktoplr/images/bot_02.gif" in HTML "http://192.168.2.55:3001/tais_web/rbac/desktoplr/bottom.htm"
Action.c(36): Resource "http://192.168.2.55:3001/tais_web/css/main.css" is in the cache already and will not be downloaded again
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/js/BSTreeView.js" in HTML "http://192.168.2.55:3001/tais_web/rbac/desktoplr/menuTree.jsp"
Action.c(36): Found resource "http://192.168.2.55:3001/tais_web/js/excel.js" in HTML "http://192.168.2.55:3001/tais_web/rbac/desktoplr/menuTree.jsp"
[ 本帖最后由 wang_nning 于 2008-7-1 14:54 编辑 ] 对应代码:
Action()
{
web_url("tais_web",
"URL=http://192.168.2.55:3001/tais_web",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t45.inf",
"Mode=HTML",
LAST);
web_add_cookie("user=test; DOMAIN=192.168.2.55");
web_add_cookie("password=MTIz; DOMAIN=192.168.2.55");
web_add_cookie("savePassword=true; DOMAIN=192.168.2.55");
web_add_cookie("lastuser=test; DOMAIN=192.168.2.55");
web_url("login3.do",
"URL=http://192.168.2.55:3001/tais_web/rbac/login3.do",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t46.inf",
"Mode=HTML",
LAST);
web_add_cookie("user=3700009101; DOMAIN=192.168.2.55");
web_add_cookie("lastuser=3700009101; DOMAIN=192.168.2.55");
lr_think_time(14);
web_submit_data("loginAction3.do",///////////////回放错误对应代码处
"Action=http://192.168.2.55:3001/tais_web/rbac/loginAction3.do",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.2.55:3001/tais_web/rbac/login3.do",
"Snapshot=t47.inf",
"Mode=HTML",
ITEMDATA,
"Name=password", "Value=D9840773233FA6B19FDE8CAF765402F5", ENDITEM,
"Name=loginName", "Value=3700009101", ENDITEM,
"Name=passwordA", "Value=123", ENDITEM,
"Name=com.cvicse.rbac.attachCode", "Value=", ENDITEM,
"Name=remember", "Value=true", ENDITEM,
"Name=imageField.x", "Value=0", ENDITEM,
"Name=imageField.y", "Value=0", ENDITEM,
LAST);
web_add_cookie("JSESSIONID=LpRW2RCg4LnGyfzvtbQv03FfgS5LhF2ml3KkQFlGqWFT5dNmvr1w!254845856; DOMAIN=192.168.2.55");
web_add_cookie("JSESSIONID=LpRmYnm2KjJsScyLtNxvyQP8XnvKQqHY6vqs48gsT1v6L8j5K2vv!254845856; DOMAIN=192.168.2.55");
web_submit_data("loginAction3.do_2",
"Action=http://192.168.2.55:3001/tais_web/rbac/loginAction3.do",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.2.55:3001/tais_web/rbac/login3.do",
"Mode=HTML",
ITEMDATA,
"Name=password", "Value=D9840773233FA6B19FDE8CAF765402F5", ENDITEM,
"Name=loginName", "Value=3700009101", ENDITEM,
"Name=passwordA", "Value=123", ENDITEM,
"Name=com.cvicse.rbac.attachCode", "Value=", ENDITEM,
"Name=remember", "Value=true", ENDITEM,
EXTRARES,
"URL=../images/bar_left_bg.gif", ENDITEM,
"URL=../img/splitpanel/vertical_left.gif", ENDITEM,
"URL=../img/splitpanel/vertical_right.gif", ENDITEM,
"URL=../img/BSTreeView/Pplus.gif", "Referer=http://192.168.2.55:3001/tais_web/rbac/desktoplr/menuTree.jsp", ENDITEM,
"URL=../img/BSTreeView/close.gif", "Referer=http://192.168.2.55:3001/tais_web/rbac/desktoplr/menuTree.jsp", ENDITEM,
"URL=../img/BSTreeView/I.gif", "Referer=http://192.168.2.55:3001/tais_web/rbac/desktoplr/menuTree.jsp", ENDITEM,
"URL=../img/BSTreeView/L.gif", "Referer=http://192.168.2.55:3001/tais_web/rbac/desktoplr/menuTree.jsp", ENDITEM,
"URL=../img/BSTreeView/jsdoc.gif", "Referer=http://192.168.2.55:3001/tais_web/rbac/desktoplr/menuTree.jsp", ENDITEM,
"URL=../img/BSTreeView/Tplus.gif", "Referer=http://192.168.2.55:3001/tais_web/rbac/desktoplr/menuTree.jsp", ENDITEM,
"URL=../img/BSTreeView/T.gif", "Referer=http://192.168.2.55:3001/tais_web/rbac/desktoplr/menuTree.jsp", ENDITEM,
"URL=../img/BSTreeView/Lplus.gif", "Referer=http://192.168.2.55:3001/tais_web/rbac/desktoplr/menuTree.jsp", ENDITEM,
"URL=../img/BSTreeView/empty.gif", "Referer=http://192.168.2.55:3001/tais_web/rbac/desktoplr/menuTree.jsp", ENDITEM,
"URL=../img/tabpane/close.gif", ENDITEM,
LAST);
web_url("gztListQueryAction.do",
"URL=http://192.168.2.55:3001/tais_web/tais/gztListQueryAction.do?operFlag=query",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.2.55:3001/tais_web/rbac/loginAction3.do",
"Snapshot=t48.inf",
"Mode=HTML",
LAST);
web_url("sjfqListQueryAction.do",
"URL=http://192.168.2.55:3001/tais_web/tais/sjfqListQueryAction.do?operFlag=allQuery&procDefId=nspg:nspgflow&actDefId=pjpggcl&pgdxLx=ZX",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.2.55:3001/tais_web/rbac/loginAction3.do",
"Snapshot=t49.inf",
"Mode=HTML",
LAST);
................
在脚本中我只做过关联,而且回放时在检测不到资源的地方可以清楚的看到快照。 这是你自己写的脚本吗?好厉害!!!
回复 3# 的帖子
遇到同样的问题,关注中。。。我现在怀疑是到外网去了 怎么没人给解决一下呢?自己再顶上去
回复 6# 的帖子
请教你一个问题什么时候能用到web_add_cookie() 函数呢?我还没有试过你自己写的脚本吗? 在录脚本的时候,加载cookie,LR会自动调用这个函数的,如果没有用,注释掉就可以了
页:
[1]