【问题标题】:Jmeter remote run and CSV filesJmeter 远程运行和 CSV 文件
【发布时间】:2013-10-16 19:24:06
【问题描述】:

我有 JMeter (2.8) 测试,这些测试在本地运行时运行良好,而在远程运行时失败。
我运行它们的唯一区别是-r 开关(或-R <list of machines>),所有其他参数完全相同。

测试在远程模式下失败,因为应该包含来自 CSV 文件的值的变量包含 <EOF> 值 - 这意味着测试无法加载 CSV 文件。

我已将 CSV 文件上传到每台远程计算机 (as someone suggested) 上 JMeter 的 bin 目录,但这无济于事。

我使用的是 Linux 机器。

【问题讨论】:

    标签: linux jmeter


    【解决方案1】:

    来自 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>
    

    【讨论】:

    • 我在文档中错过了这一点。从正确的目录启动 jmeter 服务器解决了这个问题。
    【解决方案2】:

    原来 jmeter-server 正在“jmeter/file-from-ui.csv”路径上寻找一些东西。使用 strace 找到了这个。

    我通过在我启动 jmeter-server 的目录中添加一个 jmeter 文件夹并将我的 csv 文件放入其中解决了我的问题。

    【讨论】:

      猜你喜欢
      • 2012-05-23
      • 1970-01-01
      • 1970-01-01
      • 2018-11-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-09-30
      • 1970-01-01
      相关资源
      最近更新 更多