|
测试时录制了一段代码,并对其中的boardid进行了参数初始化,脚本能够回放成功,但是在controller软件中使用该脚本时,有时会出现
错误: missing newline in E:\Program files\Mercury\LoadRunner\scripts\0413nextpage\boadid.dat
但并不是每次都会出现,不晓是这是脚本的问题还是软件的问题还是运行程序的问题?
lr_rendezvous("page");
//for(i=0;i<100;i++){
lr_start_transaction("page");
web_submit_data("list.aspx_2",
"Action=http://192.168.1.254:79/remotingtest/list.aspx?boardid={boadid}",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.1.254:79/remotingtest/list.aspx?boardid={boadid}",
"Snapshot=t15.inf",
"Mode=HTML",
ITEMDATA,
"Name=Aspnetpager1_input", "Value={p}", ENDITEM,
"Name=Aspnetpager1", "Value=转到", ENDITEM,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
LAST);
lr_end_transaction("page", LR_AUTO);
lr_rendezvous("page");
//for(i=0;i<100;i++){
lr_start_transaction("page");
web_submit_data("list.aspx_2",
"Action=http://192.168.1.254:79/remotingtest/list.aspx?boardid={boadid}",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.1.254:79/remotingtest/list.aspx?boardid={boadid}",
"Snapshot=t15.inf",
"Mode=HTML",
ITEMDATA,
"Name=Aspnetpager1_input", "Value={p}", ENDITEM,
"Name=Aspnetpager1", "Value=转到", ENDITEM,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
LAST);
lr_end_transaction("page", LR_AUTO);
lr_rendezvous("page");
lr_start_transaction("page");
web_submit_data("list.aspx_2",
"Action=http://192.168.1.254:79/remotingtest/list.aspx?boardid={boardid}",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.1.254:79/remotingtest/list.aspx?boardid={boardid}",
"Snapshot=t15.inf",
"Mode=HTML",
ITEMDATA,
"Name=Aspnetpager1_input", "Value={p}", ENDITEM,
"Name=Aspnetpager1", "Value=转到", ENDITEM,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
LAST);
lr_end_transaction("page", LR_AUTO); |
|