当我遇到错误时,我正在 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/