Recording test Upload File Script, playback reports warning-26490: file name in a multipart submit is missing or empty. Using an empty file [msgid: MWAR-26490].
After several days of hard work, the problem was finally solved. First read the previous Script: web_submit_data ("generalreport. aspx_2 ",
"Action = http: // 192.168.0.80/pbcmsc/gaisuan/generalreport. aspx? Taskid = 0e1d66f8-4ecd-42a7-8f9e-e79f6733e992 ",
"Method = post ",
"Enctype = multipart/form-Data ",
"Reccontenttype = text/html ",
"Referer = http: // 192.168.0.80/pbcmsc/gaisuan/generalreport. aspx? Taskid = 0e1d66f8-4ecd-42a7-8f9e-e79f6733e992 ",
"Snapshot = t11.inf ",
"Mode = html ",
Itemdata,
"Name =__ eventtarget", "value =", Enditem,
"Name =__ eventargument", "value =", Enditem,
"Name =__ viewstate", "value = {siebel_analytic_viewstate6}", Enditem,
"Name =__ eventvalidation", "value =/wewbqli6ruccgkxyjgqcqlgqy6fbalq + 76dcwlt3oxma + v3krniiylpyq + 7wlq5k9a + ozs4", Enditem,
"Name = ddlversion", "value = release version", Enditem,
"Name = txtbelongtopackage", "value = good-3", Enditem,
"Name = txtdemo", "value =", Enditem,
"Name = fuprj", "value = F:" test1.bwbd5 "," file = yes ", Enditem,
"Name = mu2 $ multipfile", "value =", "file = yes", Enditem,
"Name = btnupload", "value = upload", Enditem,
"Name = dxpccommonwinws", "value = 1: 1: 12000: 237: 238: 0: 0: 0", Enditem,
Last );
By understanding the web_submit_data function and various parameters, it is found that both fuprj and mu2 $ multipfile are the paths for uploading attachments. I want to check whether fuprj is the first success. If mu2 $ multipfile is empty, it will fail, and this error is reported. assign an upload file (the value of mu2 $ multipfile is F: "test1.txt), and both are uploaded successfully!
Go to: Warning-26490: file name in a multipart submit is missing or empty. Solution