51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1498|回复: 0
打印 上一主题 下一主题

[原创] 新人求助JSESSIONID问题。

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2009-8-31 11:44:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
看过不少这个问题的帖子,可是很遗憾最终也没有能看到有回复已经解决的楼主。希望各位大大给予帮助啊。
场景:LR测试简单web系统登录。
情况:脚本只要迭代2次或2次以上就会出现获取不到 JSESSIONID的情况。
报错信息:ogIn.c(19): Error -26377: No match found for the requested parameter "JSESSIONID2". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 1024 bytes, use web_set_max_html_param_len to increase the parameter size   [MsgId: MERR-26377]
LogIn.c(19): web_url("metaldb") highest severity level was "ERROR", 331680 body bytes, 1509 header bytes, 397 chunking overhead bytes   [MsgId: MMSG-26387]
具体登录脚本:
LogIn()
{
web_set_max_html_param_len("1024");
/* Registering parameter(s) from source task id 6
// {JSESSIONID2} = "2FFAB7246D7DE6776DE20C64541BEAD9"
// */
web_reg_save_param("JSESSIONID2",
  "LB/IC=jsessionid=",
  "RB/IC=\"",
  "Ord=1",
  "Search=body",
  "RelFrameId=1",
  LAST);
    lr_output_message("the response is: %s", lr_eval_string("{JSESSIONID2}"));
web_url("metaldb",
  "URL=http://192.168.67.58:8084/metaldb/",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=",
  "Snapshot=t1.inf",
  "Mode=HTML",
  EXTRARES,
  "Url=images/index_pic02.gif", ENDITEM,
  "Url=images/index_bg01.gif", ENDITEM,
  LAST);
web_submit_data("login.action;jsessionid=2FFAB7246D7DE6776DE20C64541BEAD9",
  "Action=http://192.168.67.58:8084/metaldb/login/login.action;jsessionid={JSESSIONID2}",
  "Method=POST",
  "RecContentType=text/html",
  "Referer=http://192.168.67.58:8084/metaldb/",
  "Snapshot=t5.inf",
  "Mode=HTML",
  ITEMDATA,
  "Name=userName", "Value={Login}", ENDITEM,
  "Name=password", "Value=123456", ENDITEM,
  EXTRARES,
  "Url=../images/top_duble01.gif", "Referer=http://192.168.67.58:8084/metaldb/top.jsp", ENDITEM,
  "Url=../common/css/images/white_sign.gif", "Referer=http://192.168.67.58:8084/metaldb/top.jsp", ENDITEM,
  "Url=../common/css/images/green_sign.gif", "Referer=http://192.168.67.58:8084/metaldb/top.jsp", ENDITEM,
  "Url=../img/main_bg_2.gif", "Referer=http://192.168.67.58:8084/metaldb/leftjsclsj.jsp", ENDITEM,
  "Url=../common/css/images/left_bottombg.gif", "Referer=http://192.168.67.58:8084/metaldb/leftjsclsj.jsp", ENDITEM,
  "Url=../images/img/base.gif", "Referer=http://192.168.67.58:8084/metaldb/leftjsclsj.jsp", ENDITEM,
  "Url=../images/img/joinbottom.gif", "Referer=http://192.168.67.58:8084/metaldb/leftjsclsj.jsp", ENDITEM,
  "Url=../images/img/page.gif", "Referer=http://192.168.67.58:8084/metaldb/leftjsclsj.jsp", ENDITEM,
  "Url=../struts/dojo/src/debug.js", "Referer=http://192.168.67.58:8084/metaldb/jsclsj/jsclsjcljbxxlist.action", ENDITEM,
  "Url=../struts/dojo/src/browser_debug.js", "Referer=http://192.168.67.58:8084/metaldb/jsclsj/jsclsjcljbxxlist.action", ENDITEM,
  "Url=../img/Loader.gif", "Referer=http://192.168.67.58:8084/metaldb/jsclsj/jsclsjcljbxxlist.action", ENDITEM,
  "Url=../img/main_bg_3.gif", "Referer=http://192.168.67.58:8084/metaldb/jsclsj/jsclsjcljbxxlist.action", ENDITEM,
  "Url=../images/main02_sign01.gif", "Referer=http://192.168.67.58:8084/metaldb/jsclsj/jsclsjcljbxxlist.action", ENDITEM,
  "Url=../images/buttonbg.gif", "Referer=http://192.168.67.58:8084/metaldb/jsclsj/jsclsjcljbxxlist.action", ENDITEM,
  "Url=../images/main02_button.gif", "Referer=http://192.168.67.58:8084/metaldb/jsclsj/jsclsjcljbxxlist.action", ENDITEM,
  "Url=../img/jiantou-ermao.ani", "Referer=http://192.168.67.58:8084/metaldb/jsclsj/jsclsjcljbxxlist.action", ENDITEM,
  "Url=../images/main02_button02.gif", "Referer=http://192.168.67.58:8084/metaldb/jsclsj/jsclsjcljbxxlist.action", ENDITEM,
  LAST);
  return 0;
}
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-19 02:19 , Processed in 0.075782 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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