51Testing软件测试论坛

标题: loadrunner可以录制页面中的js吗?为什么回放脚本里找不到js呢,出现404错误 [打印本页]

作者: 让爱一起飞    时间: 2012-12-18 19:21
标题: loadrunner可以录制页面中的js吗?为什么回放脚本里找不到js呢,出现404错误
[attach]82826[/attach]录制脚本如下
web_url("192.168.0.13:8088",
  "URL=http://192.168.0.13:8088/",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=",
  "Snapshot=t40.inf",
  "Mode=HTML",
  LAST);
web_url("login.asp",
  "URL=http://192.168.0.13:8088/login.asp",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=",
  "Snapshot=t41.inf",
  "Mode=HTML",
  EXTRARES,
  "Url=/images/lgoin_bug.GIF", ENDITEM,
  "Url=/images/hosting_logo.GIF", ENDITEM,
  "Url=/images/login_down.GIF", ENDITEM,
  "Url=/images/buttom_bg1.gif", ENDITEM,
  "Url=/images/login-bg.gif", ENDITEM,
  LAST);
web_submit_form("login.asp_2",
  "Snapshot=t42.inf",
  ITEMDATA,
  "Name=username", "Value=hanjuanjuan", ENDITEM,
  "Name=password", "Value=926315", ENDITEM,
  "Name=btnlogin", "Value=???", ENDITEM,
  EXTRARES,
  "Url=/skins/images/left_bg.gif", "Referer=http://192.168.0.13:8088/index.asp", ENDITEM,
  "Url=/skins/images/left_menu_bg.gif", "Referer=http://192.168.0.13:8088/index.asp", ENDITEM,
  "Url=/skins/images/top_bg.gif", "Referer=http://192.168.0.13:8088/index.asp", ENDITEM,
  "Url=/skins/images/menu01.gif", "Referer=http://192.168.0.13:8088/index.asp", ENDITEM,
  "Url=/skins/images/button_bg.gif", "Referer=http://192.168.0.13:8088/worklog.asp", ENDITEM,
  "Url=/skins/images/menu_icon2.gif", "Referer=http://192.168.0.13:8088/left.asp", ENDITEM,
  "Url=/skins/images/top_table_leftbg.gif", "Referer=http://192.168.0.13:8088/index.asp", ENDITEM,
  LAST);
return 0;
作者: msnshow    时间: 2012-12-30 11:54
是有点怪,不过下面提示是找到了的




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