LoadRunner9.5想把参数输出到外部文件,为什么不认识C的变量类型??
char *file1;long file_stream;
file1=lr_eval_string("e:\\a.txt");
file_stream =fopen(file1, "w")
fprintf(file_stream, "%s %s\r\n",lr_eval_string("{Newparam_1}"),lr_eval_string("{rect}"));
fclose(file_stream);
LR提示:
Action.c (50): illegal statement termination
Action.c (50): skipping `char'
Action.c (50): undeclared identifier `file1'
Action.c (50): type error: pointer expected
Action.c (51): illegal statement termination
Action.c (51): skipping `long'
Action.c (51): undeclared identifier `file_stream'
Action.c (53): operands of = have illegal types `int' and `pointer to char'
Action.c (58): syntax error; found `fprintf' expecting `;'
e:\\#loadrunner9.5\\face_detection_9\\\\combined_Face_Detection_9.c (5): 9 errors, not writing pre_cci.ci 请把这种代码放在LR代码的最上面。 谢谢陈老师。。。
不过最后一次迭代不会写进来,只写到倒数第二次。 好了,是我放错了
页:
[1]