Add JMeter plugin programmatically - non gui mode

旧街凉风 提交于 2019-12-11 01:49:52

问题


I am trying to use jmeter-plugins. Does it have to be placed only under /lib/ext folder? Is there any way for me to refer to the plugin jar using some properties? (like user.classpath property to refer to my custom lib)


回答1:


If you don't want to put JMeter plugin jars in the lib/ext directory, then define the property search_paths in jmeter.properties.




回答2:


After placing the plugin manager jar in the /lib/ext/ you need to do the following to install a particular plugin.

Download the latest cmdrunner from this URL by changing the version.

wget http://search.maven.org/remotecontent?filepath=kg/apc/cmdrunner/2.2/cmdrunner-2.2.jar

Copy the cmdrunner to jmeter/lib/ directory

mv cmdrunner-2.2.jar apache-jmeter-5.1.1/lib/

Execute the following command to generate script file PluginsManagerCMD

java -cp apache-jmeter-5.1.1/lib/ext/jmeter-plugins-manager-1.3.jar org.jmeterplugins.repository.PluginManagerCMDInstaller

After the script is generated, you can use it to install a particular plugin

apache-jmeter-5.1.1/bin/PluginsManagerCMD.sh status
apache-jmeter-5.1.1/bin/PluginsManagerCMD.sh available
apache-jmeter-5.1.1/bin/PluginsManagerCMD.sh install jpgc-tst=2.5


来源:https://stackoverflow.com/questions/29802463/add-jmeter-plugin-programmatically-non-gui-mode

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