简体   繁体   English

在jmeter中录制时如何上传视频文件?

[英]How can I upload video file while recording in jmeter?

I am using Jmeter2.12 in Linux fedora OS and recording using firefox37 browser. 我在Linux fedora OS中使用Jmeter2.12,并使用firefox37浏览器进行记录。

In this environment setting, How can I Upload video file while recording in Jmeter? 在这种环境设置下,如何在Jmeter中录制时上传视频文件?

Thanks, Vairamuthu. 谢谢,Vairamuthu。

JMeter proxy is capable of recording file upload events, all you need is to put your video file under /bin folder of your JMeter installation. JMeter代理能够记录文件上传事件,您所需要做的就是将视频文件放在JMeter安装的/ bin文件夹下。

See the relevant chapter of the HTTP(S) Test Script Recorder (was: HTTP Proxy Server ) User Manual entry 请参阅HTTP(S)测试脚本记录器的相关章节(以前是:HTTP Proxy Server)用户手册条目

Uploading files 上载档案

Some browsers (eg Firefox and Opera) don't include the full name of a file when uploading files. 某些浏览器(例如Firefox和Opera)在上传文件时不包含文件的全名。 This can cause the JMeter proxy server to fail. 这可能导致JMeter代理服务器失败。 One solution is to ensure that any files to be uploaded are in the JMeter working directory, either by copying the files there or by starting JMeter in the directory containing the files. 一种解决方案是通过将文件复制到JMeter工作目录中或在包含文件的目录中启动JMeter来确保要上载的任何文件都位于JMeter工作目录中。

For more information on simulating file upload and download events in your JMeter test check out Performance testing: Upload and Download Scenarios with Apache JMeter article. 有关在JMeter测试中模拟文件上传和下载事件的更多信息,请参阅性能测试:“使用Apache JMeter上传和下载方案”一文。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM