5

I have created several Jmeter plugins that I need to use when executing my Jmeter scenario. When executing manually my scenario I execute the following command:

jmeter.sh -Jsearch_paths="/home/installMyPlugin/lib/ext" -Jplugin_dependency_paths="/home/installMyPlugin/lib"  -JCookieManager.save.cookies=true -Dhostname=vm2ombre -n -Djmeter.save.saveservice.output_format=xml -Djmeter.save.saveservice.url=true -l home/report/jmeter/result.jtl -t home/installMyPlugin/scenarii/test.jmx

It works, my plugins are loaded and the scenario is executed.

Now, I would like to execute the same command using the Jmeter plugin for Gradle.

I tried to configure the build.gradle by setting the jmeterUserProperties in jmeterRun.configure but it doesn't work.

It seems my Jmeter plugins are not loaded at all.

How can I translate my command line to Jmeter plugin in Gradle? Even some hints to go to the right direction will be appreciated. Thanks,

Sébastien.

sebastien
  • 2,489
  • 5
  • 26
  • 47
  • Which JMeter plugin are you using? I would recommend you use the one I wrote :) I believe I currently have support for all the options you listed above. See here: https://github.com/jmeter-gradle-plugin/jmeter-gradle-plugin/wiki/Advanced-Usage – RaGe Jan 18 '16 at 19:00

1 Answers1

1

If you mean that Gradle plugin to run JMeter tests you can set user settable parameter:

List<String> jmPluginJars

You can find other parameters on GitHub Plugin Wiki page

Vadim Yangunaev
  • 1,817
  • 1
  • 18
  • 41