I was running a test on LoadRunner vugen when I got the error:
"Message id [-13992] was not saved - Auto log cache is too small to contain the message"
The script fails at the block of code written here below:
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*/
}
I was able to realise that the same sprintf statement was written twice outside of the if..else block. I just removed it and the script worked fine.
But my question is: why did I get the mentioned error with the above code ? I thought "a_buf" would be overwritten with the same statement everytime after coming out of the if.. else block and I might have got the error in the output which might have resulted in my web request failing or not downloading the required records. Why would I get this runtime error? What does it mean? Thanks