51Testing软件测试论坛

标题: loadrunner 回放脚本错误[MsgId: MWAR-26373] [打印本页]

作者: dearl568    时间: 2010-4-19 17:56
标题: loadrunner 回放脚本错误[MsgId: MWAR-26373]
大家好!第一次在这里求助,希望获得大家的解答!

   问题:回放脚本时,提示:Action.c(7): Notify: Saving Parameter "scriptsessionid = 3F75B486730D4CD93F46B807A061087A"
Action.c(7): Warning -26373: Parameter "scriptsessionid" saved from a resource (URL="
http://172.16.5.50:9090/dwr/engine.js")   [MsgId: MWAR-26373]
.......
Action.c(95): Notify: Saving Parameter "scriptsession = 806F1626C26D8553F213964C37909812"
Action.c(95): Warning -26373: Parameter "scriptsession" saved from a resource (URL="http://172.16.5.50:9090/dwr/engine.js")   [MsgId: MWAR-26373]

详细描述如下:
   loadrunne版本: loadrunne9.1 ,安装在XP系统上,未打补丁
   使用web(http/html)单协议录制
   功能说明:录制一个登陆页面,登陆后,直接退出。
  做了多处关联,和参数化(对应颜色为匹配的关联)
  代码如下:
Action()
{  
web_reg_save_param("scriptsessionid",
  "LB=ScriptSessionId = \"",
  "RB=\";",
  LAST);
web_url("172.16.5.50:9090",
  "URL=http://172.16.5.50:9090/",
  "TargetFrame=",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=",
  "Snapshot=t1.inf",
  "Mode=HTML",
  EXTRARES,
  LAST);
lr_message( "scriptsessionid为:%s",
  lr_eval_string("{scriptsessionid}"));
lr_start_transaction("登录");
lr_think_time(25);
    /*插入集合点*/
lr_rendezvous("登录");
/*手动关联sessionid*/
web_set_max_html_param_len("1024");
web_reg_save_param("sessionid",
  "LB=JSESSIONID=",
  "RB=;",
  LAST);
web_reg_save_param("uid",
  "LB=info:{j_userId:'",
  "RB=',j_username",
  "Search=NoResource",
  LAST);

web_custom_request("login",
  "URL=http://172.16.5.50:9090/login?{\"j_username\":\"{employeeId}\",\"j_password\":\"123456\",\"rememberMe\":false}",
  "Method=POST",
  "TargetFrame=",
  "Resource=0",
  "RecContentType=text/json",
  "Referer=http://172.16.5.50:9090/",
  "Snapshot=t2.inf",
  "Mode=HTML",
  "EncType=application/json",
  "Body={\"j_username\":\"{employeeId}\",\"j_password\":\"123456\",\"rememberMe\":false}",
  LAST);
   lr_message( "uid为:%s",
  lr_eval_string("{uid}") );
web_custom_request("PermissionServiceUtil.containsSystem.dwr",
  "URL=http://172.16.5.50:9090/dwr/call/plaincall/PermissionServiceUtil.containsSystem.dwr",
  "Method=POST",
  "TargetFrame=",
  "Resource=0",
  "RecContentType=text/javascript",
  "Referer=http://172.16.5.50:9090/",
  "Snapshot=t3.inf",
  "Mode=HTML",
  "EncType=text/plain",
  "Body=callCount=1\n"
  "page=/\n"
  "httpSessionId={sessionid}\n"
  "scriptSessionId={scriptsessionid}\n"
  "c0-scriptName=PermissionServiceUtil\n"
  "c0-methodName=containsSystem\n"
  "c0-id=0\n"
  "c0-param0=string:{uid}\n"
  "batchId=0\n",
  LAST);
  lr_message( "sessionid为:%s",
  lr_eval_string("{sessionid}") );
        web_set_max_html_param_len("1024");
  web_reg_save_param("scriptsession",
  "LB=ScriptSessionId = \"",
  "RB=\";",
  LAST);

web_url("index.html",
  "URL=http://172.16.5.50:9090/index.html",
  "TargetFrame=",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=",
  "Snapshot=t4.inf",
  "Mode=HTML",
  EXTRARES,
.......
  "URL=http://172.16.5.50:8090/download?uuid=C43FCD1D98C00001D56F1870CEC6E8D0", ENDITEM,
  "URL=http://172.16.5.50:8090/download?uuid=C43A5232F7800001E0C4E8A7167F1345", ENDITEM,
  "URL=http://172.16.5.50:8090/download?uuid=C438657BFBC00001B9F51340103D7490", ENDITEM,
  LAST);
    lr_message( "scriptsession为:%s",
  lr_eval_string("{scriptsession}") );

web_custom_request("AppServerManager.getSystemInfo.dwr",
  "URL=http://172.16.5.50:9090/dwr/call/plaincall/AppServerManager.getSystemInfo.dwr",
  "Method=POST",
  "TargetFrame=",
  "Resource=0",
  "RecContentType=text/javascript",
  "Referer=http://172.16.5.50:9090/index.html#systemCode=menu_FEI_OA&userId={uid}",
  "Snapshot=t6.inf",
  "Mode=HTML",
  "EncType=text/plain",
  "Body=callCount=1\n"
  "page=/index.html\n"
  "httpSessionId={sessionid}\n"
  "scriptSessionId={scriptsession}\n"
  "c0-scriptName=AppServerManager\n"
  "c0-methodName=getSystemInfo\n"
  "c0-id=0\n"
  "c0-param0=string:menu_FEI_OA\n"
  "batchId=0\n",
  LAST);

......
作者: dearl568    时间: 2010-4-19 18:46
自己先顶起来
作者: peag    时间: 2010-4-23 09:19
帮顶
作者: sleeperonce    时间: 2019-7-11 20:39
你好,请问这个问题你解决了码




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