Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to customize Jmeter startup with Jmeter gradle plugin

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.

like image 579
sebastien Avatar asked Nov 09 '22 21:11

sebastien


1 Answers

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

like image 128
Vadim Yangunaev Avatar answered Dec 17 '22 04:12

Vadim Yangunaev