LoadRunner调试问题之脚本错误日志的使用

发表于:2016-12-27 11:04

字体: | 上一篇 | 下一篇 | 我要投稿

 作者:秋之川    来源:51Testing软件测试网采编

  
LoadRunner 11
  在调试脚本的过程中,我习惯把Log打开,如附图。这样很容易看到出错地方的前因后果,也方便找原因。
  1、打开Run-time Settings->General->Log窗口;
  2、勾上“Enable logging” checkbox;
  3、选择“Extended Log”,再根据需要勾选子级别,我一般会勾选前两项;
  问题1:Action.c(933): Error -26377: No match found for the requested parameter "merchantPlanid". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size
  原因:上一个接口执行失败了,或者返回值里没有你期望save的参数,所以导致web_reg_save_param没有获取到期望的值。
  问题2:在Controller里运行脚本时,报错: Failed to send data by channels - post message failed.
  原因:Controller->Diagnostics->Configuration...->Diagnostics Distribution里的"Uncheck "Enable the following diagnostics"选项没有被选中。
  问题3:当你改变某个关联参数的.dat文件时,总是提示老的.dat文件不存在,或者你注释掉脚本,仍然编译时报错
  原因:"Vuser"->"Parameter List"里,不再使用的参数仍然存在,找到它,并删除掉即可。
《2023软件测试行业现状调查报告》独家发布~

关注51Testing

联系我们

快捷面板 站点地图 联系我们 广告服务 关于我们 站长统计 发展历程

法律顾问:上海兰迪律师事务所 项棋律师
版权所有 上海博为峰软件技术股份有限公司 Copyright©51testing.com 2003-2024
投诉及意见反馈:webmaster@51testing.com; 业务联系:service@51testing.com 021-64471599-8017

沪ICP备05003035号

沪公网安备 31010102002173号