2013-01-04 36 views
2

我有JMeter(2.8)测试,它们在本地运行时运行良好,在远程运行时失败。
我运行这些的唯一区别是-r开关(或-R <list of machines>),所有其他参数完全相同。因为它应该包含从CSV文件值的变量包含Jmeter远程运行和CSV文件

试验是失败在远程模式<EOF>值 - 这意味着测试失败加载CSV文件。

我已经上传CSV文件bin每台远程计算机(as someone suggested)上目录的JMeter的,但这并不能帮助。

我正在使用Linux机器。

回答

4

来自的JMeter文档:

Relative file names are resolved with respect to the path of the active test plan. 
For distributed testing, the CSV file must be stored on the server host system in the 
correct relative directory to where the jmeter server is started.</b> 
Absolute file names are also supported, but note that they are unlikely to work in remote 
mode, unless the remote server has the same directory structure. 

另一种选择是使用一个变量作为基本文件夹为CSV文件和在启动时来设置它的每个远程服务器上:

-Jresdir=<CSV Folder> 
+0

我错过了文档。从适当的目录启动jmeter服务器解决了这个问题。 –

1

原来,JMeter的-server正在寻找路径“jmeter/file-from-ui.csv”中的一些内容。通过使用strace找到了这个。

我解决了我的问题,在我启动jmeter-server的dir中添加一个jmeter文件夹,并将我的csv文件放在那里。