这是我的第一个问题。我已经阅读了有关上传方案的其他回复,但我找不到解决方案。
当我尝试打开"上传文件时#34;窗口:
java.net.URISyntaxException:索引51处查询中的非法字符:http://xxxxxxxxxx/upload_file_window.ud121?vds={%22oid%22:0,%22folder%22:0,%22section%22:%22myfiles%22,%22last_section%22:%22videos%22,%22uploaded%22:false,%22uploader%22:null,%22searchresults%22:[],%22plupload_settings%22:{%22upload_url%22:%22upload_file_final.ud121%22,%22filters%22:[{%22title%22:%22Image%20files%22,%22extensions%22:%22jpg,gif,png,jpeg,JPG,GIF,PNG,JPEG%22},{%22title%22:%22Audio%20files%22,%22extensions%22:%22mp3,wmaupload,m4a,wav%22},{%22title%22:%22Video%20files%22,%22extensions%22:%22mpg,mpeg,wmv,flv,mov,swf,mp4,f4v%22}],%22file_size_limit%22:%222048mb%22},%22new_playlist_x%22:1280,%22new_playlist_y%22:720}
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)
这是一个jmeter协议错误? (我在jmeter中看到ajax记录的东西)。 我怎么能看到上传的HTTP请求?萤火虫? 应该是在本地上传的文件吗?
谢谢!
答案 0 :(得分:0)
您需要将文件上传到/ bin。
http://jmeter.apache.org/usermanual/component_reference.html#HTTP%28S%29_Test_Script_Recorder
上传文件 某些浏览器(例如Firefox和Opera)在上传文件时不包含文件的全名。这可能导致JMeter代理服务器失败。一种解决方案是确保要上载的任何文件都在JMeter工作目录中,方法是在那里复制文件或在包含文件的目录中启动JMeter。
答案 1 :(得分:0)