您的位置:首页 > 其它

LOADRUNNER关联的高级应用

2013-04-07 13:53 302 查看
Action()
{

int array_len ,i=1;

char array_name[20];

web_reg_save_param("outFlightVal",

"LB=\"http:\/\/a.lietou.com\/",

"RB=.shtml\">",

"ORD=ALL",

LAST);

web_url("a.lietou.com",

"URL=http://a.lietou.com",

"Resource=0",

"RecContentType=text/html",

"Referer=",

"Snapshot=t25.inf",

"Mode=HTML",

EXTRARES,

LAST);

array_len=atoi(lr_eval_string("{outFlightVal_count}"));

lr_output_message("%d",array_len);

for (i=1;i<=array_len;i++) {

sprintf(array_name,"{outFlightVal_%d}",i);

lr_output_message("%s",lr_eval_string(array_name));

lr_save_string(lr_eval_string(array_name),"shen");

web_reg_save_param("title",

"LB=<title>",

"RB=</title>",

"ORD=1",

LAST);

web_reg_save_param("content",

"LB=content=",

"RB=\/>\r\n",

"ORD=1",

LAST);

web_url("a.lietou.com",

"URL=http://a.lietou.com/{shen}.shtml",

"Resource=0",

"RecContentType=text/html",

"Referer=",

"Snapshot=t25.inf",

"Mode=HTML",

EXTRARES,

LAST);

}

return 0;

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: