因为想拥有,所以要不断努力

LR 26388,26387错误,解决方法

上一篇 / 下一篇  2013-04-10 16:03:02 / 个人分类:函数使用

 
  我录制了一个简单查询条件执行过程,在LR回放时,失败了。报26388,26387错误,详细错误如下:
  Action.c(17): 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]

  Action.c(17): web_url("esm") highest severity level was "ERROR", 508304 body bytes, 2229header bytes, 64 chunking overhead bytes   [MsgId: MMSG-26387]
 
  根据错误信息中关键字"508304 body bytes, 2229header bytes, 64 chunking overhead bytes",猜错问题可能与传到的信息包字节大小有关,然后根据自己推理,在网上朝这个放心查找解决方法。经过自己的查找,问题终于解决了(困扰我了两天了,我一直觉得submit_vaule中value字段值不正确引起的,直到现在,我还不清楚该值为什么获取的不是用户操作输入的值8|_|8)。
 
  原因:在录制脚本时,LR自动设置关联,二服务器返回的报文过长,超出了LR默认参数保持长度,导致reponse中找不到从服务器返回的参数值。所以,在设置关联的语句前加上这句话:web_set_max_html_param_len(),就能成功解决这个问题了。e.g:web_set_max_html_param_len(600000)(这个值针对错误提示框中的数据508304)
 
  LR接收从服务器返会的参数最大长度是1024,这个函数用于设置需要保持的html字符串的长度

TAG:

exceptions的个人空间 引用 删除 exceptions   /   2016-02-26 12:17:06
5
chao801的个人空间 引用 删除 chao801   /   2014-05-08 12:39:11
5
 

评分:0

我来说两句

Open Toolbar