51Testing软件测试论坛
标题:
LoadRunner的下载脚本,下载速度从最开始的5MB/S降到200KB/S,请教原因
[打印本页]
作者:
arielchenli
时间:
2012-9-24 15:58
标题:
LoadRunner的下载脚本,下载速度从最开始的5MB/S降到200KB/S,请教原因
手工编写的下载文件脚本,在局域网内单个脚本运行,发现下载速度越来越小,从最开始的5MB/S,降到200KB/S,请教原因,谢谢
测试脚本见下:
Action()
{
web_set_max_html_param_len("9000000");
web_reg_save_param("text","LB=","RB=","search=body",LAST);
//web_set_sockets_option("OVERLAPPED_SEND", "0");
lr_start_transaction("DownloadFile-5M");
web_custom_request("DownloadFile",
"URL=http://192.168.0.9:9005/service/test.3001/download",
"Method=get",
"RecContentType=application/octet-stream",
"EncType=text/plain; charset=utf-8",
LAST);
iflen = web_get_int_property(HTTP_INFO_DOWNLOAD_SIZE);
if(iflen>7000){
lr_end_transaction("DownloadFile-5M",LR_PASS);
}else{
lr_end_transaction("DownloadFile-5M",LR_FAIL);
//lr_error_message("%s",lr_eval_string("{text}"));
}
return 0;
}
作者:
arielchenli
时间:
2012-9-24 17:45
帮忙顶,有没有知道原因的,谢谢
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2