|
使用LR对系统录制脚本后,回放时出现(警告 -26490: 多部分提交中的文件名缺少或为空。使用空文)
脚本指向:
web_submit_data("newEventAccept.do",
"Action=http://xxx:7001/xx/eventAccept/newEventAccept.do",
"Method=POST",
"EncType=multipart/form-data",
"RecContentType=text/html",
"Referer=http://xxx:7001/xx/dealWorkitem.do?method=open&wiid=ff8080811960247301196105407e1520",
"Snapshot=t20.inf",
"Mode=HTML",
ITEMDATA,
"Name=acceptId", "Value=ff80808119602473011961053f4c151c", ENDITEM,
"Name=event.id", "Value=ff80808119564d5201196104a1b70b76", ENDITEM,
"Name=event.isOpen", "Value=N", ENDITEM,
"Name=event.openType", "Value=0", ENDITEM,
"Name=event.matterApanage", "Value=中国_无_无", ENDITEM,
"Name=event.relationPersNum", "Value=1", ENDITEM,
"Name=event.pubType1", "Value=类别1_无_无", ENDITEM,
"Name=event.perpose", "Value=目的1", ENDITEM,
"Name=event.priType", "Value=自定义分类1-1_无_无", ENDITEM,
"Name=event.reason", "Value=1号原因", ENDITEM,
"Name=filenames", "Value=C:\\x5CDocuments and Settings\\x5Ccapinfo\\x5C桌面\\x5C压力\\用户和角色.txt|", ENDITEM,
"Name=file[1]", "Value=", "File=Yes", ENDITEM,
"Name=file[0]", "Value=C:\\Documents and Settings\\capinfo\\桌面\\压力\\相关用户和角色.txt", "File=Yes", ENDITEM,
"Name=event.abstractTitle", "Value=1234", ENDITEM,
"Name=event.abstractContent", "Value=1234", ENDITEM,
"Name=workitemId", "Value=ff8080811960247301196105407e1520", ENDITEM,
"Name=add", "Value=", ENDITEM,
LAST); |
|