将 Jmeter 测试和资源文件放在远程服务器上的什么位置?
Where to place Jmeter test and resource files on remote server?
我已经在服务器上设置了 Jmeter 用于远程测试,但是我不知道 how/where 配置 jmeter-server 以查找构成我的测试计划的 .jmx
文件。
我已将文件路径替换为 jmx 文件中的资源文件(即我在本地引用的各种 CSV 文件)。
我正在使用 Jmeter 版本 5.4.1,并且还在设置服务器时使用了 this guide。
.jmx script is being transferred automatically from the master to the slave machine(s), you don't need to worry about it. The only thing to remember is that if you're using any JMeter Plugins - 你需要在从机上安装它们
如果您使用 CSV 文件的相对路径 - 在从站上,它们将相对于您从中启动 jmeter-server 脚本的文件夹。通常人们从 "bin" folder 启动 JMeter,因此使用相对于 JMeter 的“bin”文件夹的文件路径是有意义的。
另一种方法是像 Redis Data Set or HTTP Simple Table Server 一样对测试数据使用“中央”位置,这样您就不必将测试数据复制到从服务器。
我已经在服务器上设置了 Jmeter 用于远程测试,但是我不知道 how/where 配置 jmeter-server 以查找构成我的测试计划的 .jmx
文件。
我已将文件路径替换为 jmx 文件中的资源文件(即我在本地引用的各种 CSV 文件)。
我正在使用 Jmeter 版本 5.4.1,并且还在设置服务器时使用了 this guide。
.jmx script is being transferred automatically from the master to the slave machine(s), you don't need to worry about it. The only thing to remember is that if you're using any JMeter Plugins - 你需要在从机上安装它们
如果您使用 CSV 文件的相对路径 - 在从站上,它们将相对于您从中启动 jmeter-server 脚本的文件夹。通常人们从 "bin" folder 启动 JMeter,因此使用相对于 JMeter 的“bin”文件夹的文件路径是有意义的。
另一种方法是像 Redis Data Set or HTTP Simple Table Server 一样对测试数据使用“中央”位置,这样您就不必将测试数据复制到从服务器。