JMeter在ext文件夹之外使用jar文件 [英] JMeter using jar files outside of ext folder

查看:701
本文介绍了JMeter在ext文件夹之外使用jar文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何让jmeter查看lib / ext文件夹之外的其他jar文件?理想情况下,我可以使用扩展类打算帮助测试的项目单独保存jar文件,这样我的ext文件夹就不会因为多个项目的类扩展而变得混乱。

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.

推荐答案

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

In user.properties you can use those properties:


  • search_paths

  • user.classpath

  • plugin_dependency_paths

search_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:

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:

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.

这篇关于JMeter在ext文件夹之外使用jar文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆