Jmeter代理服务器未捕获文件上传请求 [英] Jmeter proxy server doesn't capture file upload request

查看:226
本文介绍了Jmeter代理服务器未捕获文件上传请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从Jmeter的代理服务器捕获文件上载请求,但是在上载文件时显示了错误消息.我已经将proxy.binary.types属性配置为application/x-amf,application/x-java-serialized-object,application/octet-stream,application/vnd.ms-excel.

I was trying to capture a file upload request from the Jmeter's proxy server but while uploading the file error message was displayed. I had already configured the proxy.binary.types property to application/x-amf,application/x-java-serialized-object,application/octet-stream,application/vnd.ms-excel.

以下是在UI上显示的错误消息:

Below is the error message displayed on UI:

java.io.FileNotFoundException: employee_template.xls (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(Unknown Source)
    at java.io.FileInputStream.<init>(Unknown Source)
    at org.apache.jmeter.protocol.http.sampler.PostWriter.writeFileToStream(PostWriter.java:406)
    at org.apache.jmeter.protocol.http.sampler.PostWriter.sendPostData(PostWriter.java:115)
    at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sendPostData(HTTPSampler.java:122)
    at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:508)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:965)
    at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:242)

推荐答案

将要复制的文件复制到JMeter的bin文件夹中,请参见:

Copy the files to upload in bin folder of JMeter, see:

这篇关于Jmeter代理服务器未捕获文件上传请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆