录制测试上传文件脚本,回放报Warning -26490: File name in a multipart submit is missing or empty. Using an empty file          [MsgId: MWAR-26490]。

经过几天努力,总算解决了此问题,先看以前的脚本:         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=送审版", 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=上传", ENDITEM,

"Name=dxpcCommonWinWS", "Value=1:1:12000:237:238:0:0:0", ENDITEM,

LAST);

通过了解web_submit_data函数及各参数,发现fuprj和mu2$multipFile都是上传附件的路径。我就想是不是fuprj第一个成功,mu2$multipFile为空是会失败,并报该错,给他赋值一个上传文件(mu2$multipFile的Value= F:""""test1.txt),结果二个都上传成功!

转:Warning -26490: File name in a multipart submit is missing or empty.解决方法的更多相关文章

  1. 安卓(android)建立项目时失败,出现Android Manifest.xml file missing几种解决方法?(总结中)

    安卓(android)建立项目时失败.出现AndroidManifest.xml file missing几种解决方法?(总结中) Eclipse新建项目.遇到这种问题.注意例如以下: 1.文件名称最 ...

  2. vue-cli 报Module build failed: Error: No parser and no file path given, couldn't infer a parser.错的解决方法

    出错提示如下: ERROR Failed to compile with errors :: error in ./src/App.vue Module build failed: Error: No ...

  3. 动态input file多文件上传到后台没反应的解决方法!!!

    其实我也不太清除具体是什么原因,但是后面就可以了!!! 我用的是springMVC 自带的文件上传 1.首先肯定是要有springMVC上传文件的相关配置! 2.前端 这是动态input file上传 ...

  4. PHP “Warning: session_start()...”、"correct (..\..\php5\Temp) in Unknown on line 0" 的解决方法

    运行php的时候出现了一下警告: Warning: Unknown: open(D:/Program Files/php5/temp1\sess_l5b1a48m6kmb1g0t5cs33690v0, ...

  5. 转:postgresql:pg_restore: [archiver] input file does not appear to be a valid archive的解决方法

      使用ps_restore恢复备份数据库出错:pg_restore: [archiver] input file does not appear to be a valid archive 使用pg ...

  6. 有关 MyEclipse->export runnable jar file选项 launch configuration里面没有可以选择的东西的解决方法

    为什么eclipse里export-->runnable jar file-->的launch configuration里面没有可以选择的东西或者新写的main方法却找不到呢? 将你程序 ...

  7. mysql: "Warning: Using a password on the command line interface can be insecure." 解决方法

    错误重现: 命令行或者shell脚本中执行以下命令,如果您当前服务器mysql版本是大于5.6的,则会出现警告:Warning: Using a password on the command lin ...

  8. navicat cannot create file 文件名、目录名或卷标语法不正确 解决方法

    配置了mycat,用navicat连接8066端口,点击“查询”的时候发现出现报错: 开始以为是mycat的配置有问题,找了好久都没发现错误.根据提示信息进入到相应的目录发现每个连接其实就是一个win ...

  9. sc.textFile("file:///home/spark/data.txt") Input path does not exist解决方法——submit 加参数 --master local 即可解决

    use this val data = sc.textFile("/home/spark/data.txt") this should work and set master as ...

随机推荐

  1. erlang四大behaviour之一gen_server

      来源:http://www.cnblogs.com/puputu/articles/1701017.html erlang程序设计里面有个设计原则就是把你的进程构造成树,把共用代码提出来,特定功能 ...

  2. 一把刀终极配置Win7/8版 v2.0 绿色版

    软件名称: 一把刀终极配置Win7/8版 软件语言: 简体中文 授权方式: 免费软件 运行环境: Win8 / Win7 软件大小: 1.3MB 图片预览: 软件简介: 一把刀终极配置 For Win ...

  3. Bug(案例)图片的垂直出现隐藏

    这个案例是一个出Bug的案例,很抱歉本人没有找到bug在哪,但是功能却实现了. <!DOCTYPE html> <html> <head> <meta cha ...

  4. Foundations of Computer Science

    1, Iteration, Induction and Recursion 2, the running time of program 3, combinatorics and probabilit ...

  5. SQL IO监控

    DBCC DROPCLEANBUFFERS --清空缓存 SET STATISTICS IO { ON | OFF } SET STATISTICS TIME { ON | OFF }

  6. data Mining with Weka: Trailer More Data Mining with Weka 用weka 进行数据挖掘 Weka 用weka 进行更多数据挖掘

    https://www.youtube.com/user/WekaMOOC 大学公开课  视频教程 weka 入门教程 data Mining with Weka: Trailer  More Dat ...

  7. Java变量名命名规则

    $ .字母.下划线开头都行,后面的可以是数字.字母.下划线: 匈牙利命名法.Camel命名法与Pascal命名法 匈牙利命名法:在Windows编程中使用非常普遍,由微软的一位匈牙利程序员提出.匈牙利 ...

  8. 把aspx页面输出成xml的方法注意事项

    先贴代码 Response.Charset = "gb2312"; Response.ContentType = "text/xml"; Response.Co ...

  9. docker Swarm 集群发现

    Node 发现 $swarm manage --discovery dockerhost01:,dockerhost02:,dockerhost03: -H= 文件发现 $swarm manage - ...

  10. Google Gson的使用方法

    用法1:从网络获取到json字符串之后,假如该字符串为data, Gson gson = new Gson(); HomeBean json = gson.fromJson(data, HomeBea ...