这是我的第一个问题。我已经阅读了其他关于上传场景的回复,但我找不到解决方案。
当我尝试打开“上传文件”窗口时:
java.net.URISyntaxException:索引51处的查询中有非法字符:< code > http://xxxxxxxxxxx/upload _ file _ window . ud 121?vds={"oid":0," folder":0," section":"myfiles "," last_section":"videos "," uploaded":false," uploader":null," searchresults":[]," plupload _ settings ":{ " upload _ file _ final . ud 121 "," filters":[{"title":"Image files "," extensions":"jpg,gif,png,jpeg,jpg,GIF,PNG,JPEG"},{"title ":"音频文件"," extensions":"mp3,extensions
at java.net.URI$Parser.fail(URI.java:2829)
at java.net.URI$Parser.checkChars(URI.java:3002)
at java.net.URI$Parser.parseHierarchical(URI.java:3092)
at java.net.URI$Parser.parse(URI.java:3034)
at java.net.URI.<init>(URI.java:595)
at java.net.URL.toURI(URL.java:936)
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:234)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1088)
at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:211)
这是jeter协议错误?(我在jeter中看到ajax中记录了一些东西)。我怎么能看到上传的HTTP请求?Firebug?本地上传的文件应该在哪里?
谢谢你!
你需要把要上传的文件放在/bin里。
http://jmeter.apache.org/usermanual/component_reference.html#HTTP(S)_Test_Script_Recorder
上传文件某些浏览器(如Firefox和Opera)在上传文件时不包括文件的全名。这可能会导致JMeter代理服务器失败。一种解决方案是确保任何要上传的文件都在JMeter工作目录中,要么将文件复制到那里,要么在包含文件的目录中启动JMeter。