<span style="font-family: Arial, Helvetica, sans-serif;">以前跟老师学过几天的loadrunner,最近要用了,想要从头来看一下,这个文章就作为我的学习笔记了,哈哈!</span>
lr_output_message(const *char format,exp1,exp2,....expn) ;//输出函数
egg:
int i=0;
i++;
lr_output_message("our i is %d",i);//在屏幕上打出 our i is 1
sprintf( char *string_buffer, const char *format_string[, args] ); //字符串复制函数
egg:
char fileName[64];
int index=20;
* suffix="txt";
sprintf(fileName,"log_%d.%s",index,suffix);<span style="white-space:pre"> </span>//把log_,数字,扩展名组合成文件名,存储到fileName中
lr_out_putmessage("The file name is %s",fileName);<span style="white-space:pre"> </span>//输出 The file name is log_20.txt
itoa(i,num,10); <span style="white-space:pre"> </span>//i是一个10禁制整形值,这里把i变成10的字符串形式,存储到unm中
<pre name="code" class="cpp">strcat(str1,str2); //把str2连接到str1尾部
egg: char *str1="abcd";
char *str2="efgh";
strcat(str1,str2);
lr_out_putmessage("str1=%s",str1); //输出str1=abcdefgh
</pre><pre>