使用loadrunner脚本添加的数据,其中,某个单位名称重复了N次
本帖最后由 beata-chenli 于 2012-12-28 13:57 编辑我使用loadrunner录制脚本,是系统的某个流程,但是从添加的数据来看,在需求单位名称中出现了无数个单位名称,如图显示,手动添加的时候是正确的,只显示一次。不知道是脚本问题还是什么问题,之前我录制的脚本都没有出错呀。求解!
回复 2# xzf2001
ID 我都进行参数化的了呀 把脚本贴出来 最好能提供脚本,可能是request内容发的有问题 upload()
{
lr_start_transaction("appendix");
web_url("FileUpload.jsp",
"URL=http://192.168.2.208/trade/member/BusinessProcess/dispstockenquiry/FileUpload.jsp?enquiry_id={enquiry}",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t43.inf",
"Mode=HTTP",
LAST);
web_submit_data("file.jsp",
"Action=http://192.168.2.208/trade/member/BusinessProcess/dispstockenquiry/file.jsp?time=Fri%20Dec%2028%2010:14:56%20CST%202012",
"Method=POST",
"EncType=multipart/form-data",
"RecContentType=text/html",
"Referer=http://192.168.2.208/trade/member/BusinessProcess/dispstockenquiry/FileUpload.jsp?enquiry_id={enquiry}",
"Snapshot=t44.inf",
"Mode=HTTP",
ITEMDATA,
"Name=filename", "Value=C:\\Documents and Settings\\Administrator\\桌面\\txt\\12.txt", "File=Yes", ENDITEM,
"Name=filename", "Value=", "File=Yes", ENDITEM,
"Name=enquiry_id", "Value={enquiry}", ENDITEM,
LAST);
lr_end_transaction("appendix",LR_AUTO);
web_submit_data("doTradeReg.do",
"Action=http://192.168.2.208/doTradeReg.do",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.2.208/trade/member/BusinessProcess/dispstockenquiry/dispstockInquiryIndex.jsp?menu_id=111110",
"Snapshot=t45.inf",
"Mode=HTTP",
ITEMDATA,
"Name=solinkman", "Value={username}", ENDITEM,
"Name=linkphone", "Value=02386556330", ENDITEM,
"Name=mobilenum", "Value=13883542841", ENDITEM,
"Name=cust_string", "Value=閲嶅簡鍦拌川鐭夸骇鐮旂┒闄228267-1", ENDITEM,
"Name=createdate", "Value={datetime}", ENDITEM,
"Name=isdeclareitem", "Value=0", ENDITEM,
"Name=item_no", "Value=", ENDITEM,
"Name=itemname", "Value=fenxunsuanjiatest20121228", ENDITEM,
"Name=delivery", "Value=moth", ENDITEM,
"Name=address", "Value=chongqing", ENDITEM,
"Name=quote_require", "Value=zhijie", ENDITEM,
"Name=fileuplode", "Value=", ENDITEM,
"Name=stockorg_region", "Value=1", ENDITEM,
"Name=enq_state", "Value=0", ENDITEM,
"Name=createdate", "Value={datetime}", ENDITEM,
"Name=stockorg_id", "Value={stockorgid}", ENDITEM,
"Name=stockorg_name", "Value=閲嶅簡鍦拌川鐭夸骇鐮旂┒闄\xA2", ENDITEM,
"Name=user_id", "Value={userid}", ENDITEM,
"Name=enquiry_id", "Value={enquiry}", ENDITEM,
"Name=trade_type_code", "Value=6701", ENDITEM,
"Name=enq_type", "Value=2", ENDITEM,
LAST);
web_concurrent_start(NULL);
web_url("jquery-latest.pack.js",
"URL=http://192.168.2.208/js/jquery-latest.pack.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://192.168.2.208/doTradeReg.do",
"Snapshot=t46.inf",
LAST);
web_url("floatdiv.js",
"URL=http://192.168.2.208/js/floatdiv.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://192.168.2.208/doTradeReg.do",
"Snapshot=t47.inf",
LAST);
web_concurrent_end(NULL);
web_url("addDispstockInquiryIndex.jsp",
"URL=http://192.168.2.208/trade/member/BusinessProcess/dispstockenquiry/addDispstockInquiryIndex.jsp?menu_id=111110",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t48.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("engine.js",
"URL=http://192.168.2.208/dwr/engine.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://192.168.2.208/trade/member/BusinessProcess/dispstockenquiry/addDispstockInquiryIndex.jsp?menu_id=111110",
"Snapshot=t49.inf",
LAST);
web_url("util.js",
"URL=http://192.168.2.208/dwr/util.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://192.168.2.208/trade/member/BusinessProcess/dispstockenquiry/addDispstockInquiryIndex.jsp?menu_id=111110",
"Snapshot=t50.inf",
LAST);
web_url("PnquiryQuery.js",
"URL=http://192.168.2.208/dwr/interface/PnquiryQuery.js",
"Resource=1",
"RecContentType=text/plain",
"Referer=http://192.168.2.208/trade/member/BusinessProcess/dispstockenquiry/addDispstockInquiryIndex.jsp?menu_id=111110",
"Snapshot=t51.inf",
LAST);
web_url("addDispstockInquiry.js",
"URL=http://192.168.2.208/trade/member/BusinessProcess/dispstockenquiry/addDispstockInquiry.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://192.168.2.208/trade/member/BusinessProcess/dispstockenquiry/addDispstockInquiryIndex.jsp?menu_id=111110",
"Snapshot=t52.inf",
LAST);
web_url("inquiry.js",
"URL=http://192.168.2.208/trade/member/BusinessProcess/dispstockenquiry/inquiry.js",
"Resource=1",
"Referer=http://192.168.2.208/trade/member/BusinessProcess/dispstockenquiry/addDispstockInquiryIndex.jsp?menu_id=111110",
LAST);
web_concurrent_end(NULL);
lr_think_time(5);
return 0;
}
页:
[1]