|
loadrunner 8.1 在录制ie普通下载的时候,比如下载一个附件到本地,录制的这段代码如下:
lr_start_transaction("下载附件二");
web_submit_data("downloadProjectFile.do_2",
"Action=http://10.6.9.76/downloadProjectFile.do?fileID={p_fileID2}",
"Method=POST",
"EncType=multipart/form-data",
"TargetFrame=",
"RecContentType=application/x-msdownload",
"Referer=http://10.6.9.76/detailProjectFile.do?toInsert=ok&projectID={p_projectID}&a=0.7410415936368366",
"Snapshot=t11.inf",
"Mode=HTML",
ITEMDATA,
"Name=projectID", "Value={p_projectID}", ENDITEM,
"Name=planTypeId", "Value=", ENDITEM,
"Name=projectId", "Value={p_projectId2}", ENDITEM,
"Name=declareUnitId", "Value={p_declareUnitId}", ENDITEM,
EXTRARES,
"Url=/business/image/button_bg_n.gif", "Referer=http://10.6.9.76/detailProjectFile.do?toInsert=ok&projectID={p_projectID}&a=0.7410415936368366", ENDITEM,
LAST);
lr_end_transaction("下载附件二",LR_AUTO);
其中能关联的已经关联替换了,但是回放并没有下载到本地,代码中也没有保存到本地的路径和文件名称,难道没有录制进去么,还是有什么别的函数代码,大家能把代码拿来看看么,谢谢。。。 |
|