|
录制了一个web提交、上传附件的过程。
如果不加附件,(即去掉红色的test.txt部分),脚本就能正常回放成功。
如果加了附件,回放就会报错。
Action.c(137): Error -26627: HTTP Status-Code=404 (Not Found) for "http://192.168.137.216:8088/CTmsPortal/productLibrary/addProduct.shtml" [MsgId: MERR-26627]
Action.c(137): web_submit_data("addProduct.shtml") highest severity level was "ERROR", 0 body bytes, 118 header bytes, 5 chunking overhead bytes [MsgId: MMSG-26387]
请教各位老师,此问题产生的原因,及解决方法?
脚本如下:
web_submit_data("addProduct.shtml",
"Action=http://192.168.137.216:8088/CTmsPortal/productLibrary/addProduct.shtml",
"Method=POST",
"EncType=multipart/form-data",
"RecContentType=text/html",
"Referer=http://192.168.137.216:8088/CTmsPortal/productLibrary/productLibraryAdd.shtml?domain.SORT=",
"Snapshot=t8.inf",
"Mode=HTML",
ITEMDATA,
"Name=page", "Value=1", ENDITEM,
"Name=pageSize", "Value=10", ENDITEM,
"Name=domain.CREATEUSER_NAME", "Value=", ENDITEM,
"Name=domain.CARD_NAME1", "Value=", ENDITEM,
"Name=domain.SORT", "Value=", ENDITEM,
"Name=domain.FACTORY_ID1", "Value=", ENDITEM,
"Name=domain.CARD_NAME", "Value=test-1029", ENDITEM,
"Name=domain.CARD_CAPACITY", "Value=1", ENDITEM,
"Name=domain.PIN_TYPE", "Value=3", ENDITEM,
"Name=domain.FACTORY_ID", "Value=462", ENDITEM,
"Name=domain.CHIPFACTORY_ID", "Value=3", ENDITEM,
"Name=domain.CHIP_TYPE", "Value=3", ENDITEM,
"Name=domain.COS_VERSION", "Value=3", ENDITEM,
"Name=domain.PRODUCT_VALIDITY", "Value=3", ENDITEM,
"Name=photos", "Value=test.txt", "File=Yes", ENDITEM,
"Name=domain.PRODUCT_REMARKS", "Value=", ENDITEM,
LAST); |
|