LR并发时的错误解释
麻烦各位帮我分析下错误原因,我在做一个把文件下载到本地的压力测试,当并发用户在500以上就会出现下面的错误:Action.c(8): Error -26377: No match found for the requested parameter "fcontent". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 10000bytes, use web_set_max_html_param_len to increase the parameter size
Action.c(8): Error -26374: The above "not found" error(s) may be explained by header and body byte counts being 0 and 0, respectively.
我的脚本:
Action()
{
int iflen;
long lfbody;
char *string;
web_set_max_html_param_len("10000");
web_reg_save_param("fcontent", "LB=", "RB=", "SEARCH=BODY", LAST);
web_url("SystemConfig.zip",
"URL=http://192.168.203.242:8080/subWeb/pc/SystemConfig.zip",
"Resource=1",
"RecContentType=application/zip",
"Referer=",
"Snapshot=t1.inf",
LAST);
lr_rendezvous("等待下载");
lr_start_transaction("开始下载");
string=lr_eval_string("E:\测试\\{test}.zip");
lr_message(string);
iflen = web_get_int_property(HTTP_INFO_DOWNLOAD_SIZE);
if(iflen > 0)
{
if((lfbody = fopen(string, "wb")) == NULL)
{
lr_output_message("文件操作失败!");
return -1;
}
fwrite(lr_eval_string("{fcontent}"), iflen, 1, lfbody);
fclose(lfbody);
}
lr_end_transaction("开始下载", LR_AUTO);
return 0;
} 并发压力过大,导致服务器响应出现问题了 回复 2# PrefTest
请教下,我是菜鸟,这个是服务器的问题么,脚本本身没问题么。 SNIFFER,有杀错都显示
脚本底层还是通过http走的
页:
[1]