TA的每日心情 | 开心 2017-7-12 15:01 |
---|
签到天数: 95 天 连续签到: 1 天 [LV.6]测试旅长
|
脚本如下,请各位大神指点。。为什么达不到每秒1500次点击
Action()
{
//定义参数判断应答是否成功
int tag=0;
lr_start_transaction("nginx");
tag = web_reg_find("Text=Welcome",LAST);
web_url("59.173.***.***:8042",
"URL=http://59.173.***.***:8042/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTTP",
LAST);
//结果判断
if (tag==0)
{ //判断成功
lr_output_message("Send out the comment successfully.");
}//在日志中输出Send out the comment successfully
else
{ //如果出现次数小于等于
lr_error_message("Send out the comment unsuccessfully."); //在日志中输出Send out the comment successfully
return 0;
}
lr_end_transaction("nginx", LR_AUTO);
return 0;
}
|
|