JMeter using jar files outside of ext folder

两盒软妹~` 提交于 2019-12-13 06:17:32

问题


How do you get jmeter to look at additional jar files outside of the lib/ext folder? Ideally I would be able to hold the jar files separately with the project the extended classes intend to help test, that way my ext folder does not become cluttered with multiple projects worth of class extentions.


回答1:


In user.properties you can use those 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.


来源:https://stackoverflow.com/questions/32227437/jmeter-using-jar-files-outside-of-ext-folder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!