JMeter 使用 ext 文件夹外的 jar 文件

JMeter using jar files outside of ext folder

如何让 jmeter 查看 lib/ext 文件夹之外的其他 jar 文件?理想情况下,我能够将 jar 文件与扩展的 classes 打算帮助测试的项目分开保存,这样我的 ext 文件夹就不会被价值 class 扩展的多个项目弄得乱七八糟。

在 user.properties 中,您可以使用这些属性:

  • search_paths
  • user.classpath
  • plugin_dependency_paths

search_paths:

 List of paths (separated by ;) to search for additional JMeter plugin classes,
 for example new GUI elements and samplers.
 A path item can either be a jar file or a directory.
 Any jar file in such a directory will be automatically included,
 jar files in sub directories are ignored.
 The given value is in addition to any jars found in the lib/ext directory.
 Do not use this for utility or plugin dependency jars.

user.classpath:

 List of paths that JMeter will search for utility and plugin dependency classes.
 Use your platform path separator to separate multiple paths.
 A path item can either be a jar file or a directory.
 Any jar file in such a directory will be automatically included,
 jar files in sub directories are ignored.
 The given value is in addition to any jars found in the lib directory.
 All entries will be added to the class path of the system class loader
 and also to the path of the JMeter internal loader.
 Paths with spaces may cause problems for the JVM

plugin_dependency_paths:

 List of paths (separated by ;) that JMeter will search for utility
 and plugin dependency classes.
 A path item can either be a jar file or a directory.
 Any jar file in such a directory will be automatically included,
 jar files in sub directories are ignored.
 The given value is in addition to any jars found in the lib directory
 or given by the user.classpath property.
 All entries will be added to the path of the JMeter internal loader only.
 For plugin dependencies using plugin_dependency_paths should be preferred over
 user.classpath.