简体   繁体   English

JMeter使用文件进行分布式测试

[英]JMeter distributed testing with files

I have a JMeter test that is sending zip files to a server, and it is distributed it to 20 other machines. 我有一个JMeter测试,该测试将zip文件发送到服务器,并将其分发到其他20台计算机上。 I have the file to be sent in the same location in the filesystem on each machine. 我将文件发送到每台计算机上文件系统中的相同位置。

If I run the test to be distributed, it is possible to have the machines grab the zip from their own file system, rather than sending the zip over the network to each of the machines? 如果我运行要分发的测试,是否有可能让机器从它们自己的文件系统中抓取zip,而不是通过网络将zip发送到每台机器?

JMeter use local file system. JMeter使用本地文件系统。 But You could use the following elements to make slaves grab the files on startup: 但是您可以使用以下元素来使从属在启动时获取文件:

Put OS Process Sampler in Setup Thread Group. 将OS Process Sampler放入安装线程组。

Another option is to use FTP Sampler to grad it through ftp is master has an ftp server. 另一个选择是使用FTP Sampler通过ftp对其进行分级,因为master具有ftp服务器。

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

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