ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 脚本回放出现此问题---急于解决! 请各位帮我看看,谢谢!

脚本回放出现此问题---急于解决! 请各位帮我看看,谢谢!

原创 Linux操作系统 作者:yjl_85 时间:2009-09-08 16:23:33 0 删除 编辑

#include "as_web.h"


Action()
{
 web_url("ams",
  "URL=http://192.168.0.22:7001/ams",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=",
  "Snapshot=t1.inf",
  "Mode=HTML",
  EXTRARES,
  "Url=/ams/images/blue/login/bg.jpg", "Referer=http://192.168.0.22:7001/ams/", ENDITEM,
  LAST);

 lr_think_time( 1 );

 web_submit_data("loginHandle.jsp",
  "Action=http://192.168.0.22:7001/ams/index/loginHandle.jsp",
  "Method=POST",
  "RecContentType=text/html",
  "Referer=http://192.168.0.22:7001/ams/",
  "Snapshot=t2.inf",
  "Mode=HTML",
  ITEMDATA,
  "Name=id", "Value=jz", ENDITEM,
  "Name=pswd", "Value=", ENDITEM,
  "Name=登录", "Value=登录", ENDITEM,
  "Name=password", "Value=b354fb6d6bece1196dd13b0b75a57121", ENDITEM,
  "Name=isLogging", "Value=true", ENDITEM,
  "Name=random", "Value=1250378156", ENDITEM,
  "Name=loginState", "Value=ams", ENDITEM,
  LAST);

 web_url("index.jsp",
  "URL=http://192.168.0.22:7001/ams/index/index.jsp",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=",
  "Snapshot=t3.inf",
  "Mode=HTML",
  EXTRARES,
  "Url=../images/blue/head/head_bg.gif", ENDITEM,
  "Url=../images/blue/head/head_bg_repeat.gif", ENDITEM,
  "Url=../images/logo/logo.png", "Referer=", ENDITEM,
  "Url=../images/icon/user.gif", ENDITEM,
  "Url=../images/icon/matter.gif", ENDITEM,
  "Url=../images/logo/logo_title.png", "Referer=", ENDITEM,
  "Url=../images/icon/version.gif", ENDITEM,
  "Url=../images/icon/home.gif", ENDITEM,
  "Url=../images/icon/help.gif", ENDITEM,
  "Url=../images/blue/menu/lev0_bg1.gif", ENDITEM,
  "Url=../images/arrow/left.gif", "Referer=http://192.168.0.22:7001/ams/index/frame.jsp", ENDITEM,
  "Url=../images/blue/title_bg.gif", "Referer=http://192.168.0.22:7001/ams/public/Default.jsp?curLocation=首页", ENDITEM,
  "Url=../images/logo/default_page_logo.gif", "Referer=http://192.168.0.22:7001/ams/public/Default.jsp?curLocation=首页", ENDITEM,
  "Url=../images/blue/menu/lev0_bg2.gif", ENDITEM,
  "Url=../images/blue/menu/lev1_arrow.gif", "Referer=http://192.168.0.2", ENDITEM,
  "Url=../widgets/Loading/loading.gif", ENDITEM,
  LAST);

 web_url("index.jsp_2",
  "URL=http://192.168.0.22:7001/ams/operation/Modsearch/index.jsp",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=",
  "Snapshot=t4.inf",
  "Mode=HTML",
  EXTRARES,
  "Url=/ams/images/arrow/left.gif", ENDITEM,
  "Url=/ams/images/blue/title_bg.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/left.jsp", ENDITEM,
  "Url=/ams/widgets/Tree/icon/L0.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/widgets/Tree/icon/L1.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/widgets/Tree/icon/L2.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/widgets/Tree/icon/L3.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/widgets/Tree/icon/L4.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/widgets/Tree/icon/P0.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/widgets/Tree/icon/P1.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/widgets/Tree/icon/P2.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/widgets/Tree/icon/P3.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/widgets/Tree/icon/root.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/widgets/Tree/icon/L5.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/widgets/Tree/icon/folder.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/widgets/Tree/icon/file.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/widgets/Tree/icon/exit.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/widgets/Tree/icon/property.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/widgets/Tree/icon/collection.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/widgets/Tree/icon/book.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/widgets/Tree/icon/M0.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/widgets/Tree/icon/M2.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/widgets/Tree/icon/M1.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/widgets/Tree/icon/M3.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/widgets/Tree/icon/folderopen.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/widgets/Tree/icon/bookopen.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  LAST);

 web_url("ShowPages.jsp",
  "URL=http://192.168.0.22:7001/ams/public/ShowPages.jsp?pageName=page",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/main.jsp?ctrl=SingleUnitQueryController",
  "Snapshot=t5.inf",
  "Mode=HTML",
  LAST);

 web_url("default.jsp",
  "URL=http://192.168.0.22:7001/ams/operation/Modsearch/default.jsp",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/main.jsp?ctrl=SingleUnitQueryController",
  "Snapshot=t6.inf",
  "Mode=HTML",
  EXTRARES,
  "Url=/ams/images/blue/label/label_selected.jpg", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/main.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/images/blue/label/label_unselected.jpg", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/main.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/images/blue/button/button_bg_right.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/main.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/images/icon/reservation_complete.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/main.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/images/icon/excel_arrow.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/main.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/images/blue/button/button_bg_left.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/main.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/images/logo/default_page_logo.gif", ENDITEM,
  LAST);

 web_url("default.jsp_2",
  "URL=http://192.168.0.22:7001/ams/operation/Modsearch/default.jsp?pageType=COMMON",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/main.jsp?ctrl=SingleUnitQueryController",
  "Snapshot=t7.inf",
  "Mode=HTML",
  EXTRARES,
  "Url=/ams/images/blue/button/button_bg_left.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/main.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=/ams/images/logo/default_page_logo.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/default.jsp?pageType=COMMON", ENDITEM,
  LAST);

 web_submit_data("SingleUnitQueryController",
  "Action=http://192.168.0.22:7001/ams/SingleUnitQueryController?cmd=commonSearch&searchtype=1&searchStr=1",
  "Method=POST",
  "RecContentType=text/html",
  "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/main.jsp?ctrl=SingleUnitQueryController",
  "Snapshot=t8.inf",
  "Mode=HTML",
  ITEMDATA,
  "Name=searchstr", "Value=1", ENDITEM,
  "Name=contpath", "Value=/ams", ENDITEM,
  "Name=ctrl", "Value=SingleUnitQueryController", ENDITEM,
  EXTRARES,
  "Url=images/blue/button/button_bg_right.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/main.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=widgets/Tree/icon/L0.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=widgets/Tree/icon/L1.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=widgets/Tree/icon/L5.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=widgets/Tree/icon/M2.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=widgets/Tree/icon/L4.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=widgets/Tree/icon/P0.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  LAST);

 web_url("SingleUnitQueryController_2",
  "URL=http://192.168.0.22:7001/ams/SingleUnitQueryController?cmd=commonsearchdetail&libcode=135&unitsys=0000",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/main.jsp?ctrl=SingleUnitQueryController",
  "Snapshot=t9.inf",
  "Mode=HTML",
  EXTRARES,
  "Url=widgets/Tree/icon/P1.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=widgets/Tree/icon/root.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=widgets/Tree/icon/P3.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=widgets/Tree/icon/folder.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=widgets/Tree/icon/file.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=widgets/Tree/icon/exit.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=widgets/Tree/icon/property.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=widgets/Tree/icon/collection.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=widgets/Tree/icon/book.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=widgets/Tree/icon/M0.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=widgets/Tree/icon/M1.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=widgets/Tree/icon/M3.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=widgets/Tree/icon/folderopen.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=widgets/Tree/icon/L2.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=widgets/Tree/icon/bookopen.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=widgets/Tree/icon/L3.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=widgets/Tree/icon/P2.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=images/arrow/firstpage.gif", "Referer=http://192.168.0.22:7001/ams/public/ShowPages.jsp?pageName=page", ENDITEM,
  "Url=images/arrow/prevpage.gif", "Referer=http://192.168.0.22:7001/ams/public/ShowPages.jsp?pageName=page", ENDITEM,
  "Url=images/arrow/nextpage.gif", "Referer=http://192.168.0.22:7001/ams/public/ShowPages.jsp?pageName=page", ENDITEM,
  "Url=images/arrow/lastpage.gif", "Referer=http://192.168.0.22:7001/ams/public/ShowPages.jsp?pageName=page", ENDITEM,
  "Url=images/blue/button/button_bg_right.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/main.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  "Url=images/blue/button/button_bg_left.gif", "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/main.jsp?ctrl=SingleUnitQueryController", ENDITEM,
  LAST);

 web_url("SingleUnitQueryController_3",
  "URL=http://192.168.0.22:7001/ams/SingleUnitQueryController?cmd=commonsearchdetail&libcode=135&unitsys=0000",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=http://192.168.0.22:7001/ams/operation/Modsearch/tree.jsp?ctrl=SingleUnitQueryController",
  "Snapshot=t10.inf",
  "Mode=HTML",
  LAST);

 return 0;
}

 

出错:  Action.c(19): To location "http://192.168.0.22:7001/ams/index.jsp?code=PASSWORD_INVALIDE_ERROR"   [MsgId: MMSG-26693]

Action.c(135): web_submit_data highest severity level was "ERROR", 2461 body bytes, 271 header bytes   [MsgId: MMSG-27178]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22498559/viewspace-614177/,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2009-09-08

  • 博文量
    3
  • 访问量
    3926