51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 4794|回复: 3
打印 上一主题 下一主题

[原创] loadrunner 回放脚本错误[MsgId: MWAR-26373]

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2010-4-19 17:56:17 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
大家好!第一次在这里求助,希望获得大家的解答!

   问题:回放脚本时,提示: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);

......
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2010-4-19 18:46:41 | 只看该作者
自己先顶起来
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2010-4-23 09:19:33 | 只看该作者
帮顶
回复 支持 反对

使用道具 举报

该用户从未签到

4#
发表于 2019-7-11 20:39:32 | 只看该作者
你好,请问这个问题你解决了码
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-5-8 02:42 , Processed in 0.072918 second(s), 26 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表