linux - Jmeter远程运行和CSV文件

标签 linux jmeter

我有 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/

相关文章:

linux - 将一个文件的一部分插入到另一个文件的特定位置

python - 如何对在 443 以外的不同端口上运行的应用程序使用 https

c - 当涉及 fork 时,如何在两个进程之间共享变量

jmeter - 使用 Jmeter 生成响应时间图

performance - Jmeter远程/分布式测试吞吐量错误

Jmeter - 如何在响应断言失败时输出额外信息(jmeter 变量)

regex - 用 grep 匹配一行中的两个字符串

linux - 动态找到内核加载的地址

testing - JMeter。线程间同步共享数据

java - JMeter是否支持UI的性能测试