loadrunner常用函数
1、
int sprintf(char * string , const char*format_string[,args]);/字符串赋值函数
Action()
{
int index=56;
charfilename[64],*suffix="txt";
sprintf(filename,"log_%d.%s",index,suffix);
lr_output_message("The new filename is %s",filename);
return 0;
}
运行后输出:The new filename is log_56.txt