c - vugen 出现 "Message id [-13992] was not saved - Auto log cache is too small to contain the message"错误

标签 c loadrunner vugen

当我遇到错误时,我正在 LoadRunner vugen 上运行测试:

"Message id [-13992] was not saved - Auto log cache is too small to contain the message"

脚本在下面编写的代码块处失败:

int m, i;    
lr_save_string("","a_buf")
m = atoi(lr_eval_string("{dcDownloads_count}"))
for(i=0;i<=m;i++)
{
   if(i<m)
      lr_param_sprintf("a_buf",do something manipulating a_buf)
   else
      lr_param_sprintf("a_buf", do some other things with a_buf)
      lr_param_sprintf(("a_buf", do some other things with a_buf)  /*the same above     sprintf statement was copied by mistake somehow*/
}

我意识到同一个 sprintf 语句在 if..else block 之外被写了两次。我刚刚删除了它,脚本运行良好。

但我的问题是:为什么上面的代码会出现上述错误? 我认为每次从 if..else block 中出来后,“a_buf”都会被相同的语句覆盖,并且我可能在输出中遇到错误,这可能导致我的 Web 请求失败或未下载所需的记录。 为什么我会收到此运行时错误?这是什么意思? 谢谢

最佳答案

该消息表示用于保存消息的内部缓冲区不够大。

解决方法: 在 default.cfg 文件的日志部分设置 AutoLogBufferSize。 以下示例将其设置为 999 KB

[日志]

AutoLogBufferSize=999

关于c - vugen 出现 "Message id [-13992] was not saved - Auto log cache is too small to contain the message"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31207465/

相关文章:

jmeter - Citrix 与 Load Runner : ctrx_get_bitmap_value returning different value while image is the same

testing - Loadrunner不记录

c - wchar_t 指针操作 - 如何检查它是否以 L".xls"结尾

c - 在 char * 中写入和读取整数

c - 这个值是如何计算的?

performance - 当响应仅包含单个值时提取响应

java - 将 Loadrunner 文件参数转换为有效负载的 Java 字符串

java - HP Vugen 如何找到用于录制脚本的 JRE?

c - Vugen - 将图像文件从一个文件夹复制到共享目录 - 仅限 C 代码

c - C中的文件操作