我有 JMeter (2.8) 测试,这些测试在本地运行时运行良好,但在远程运行时失败。
我如何运行它们的唯一区别是 -r
开关(或 -R <list of machines>
),所有其他参数完全相同。
测试在远程模式下失败,因为应该包含来自 CSV 文件的值的变量包含 <EOF>
值 - 这意味着测试未能加载 CSV 文件。
我已将 CSV 文件上传到 bin
每台远程机器上的 JMeter 目录 ( as someone suggested ),但这没有帮助。
我正在使用 Linux 机器。
最佳答案
来自 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>
关于linux - Jmeter远程运行和CSV文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14160241/