I was trying to add groovy (Groovy 2.4.3) to the JMeter 2.13.
I am placing all the %groovy_home%/lib/.jars in %java_home%/lib/ext/groovy-lib/.jar
I added the classpath in jmeter.property file (search_paths=/lib/ext/groovy-lib)
The problem is after starting JMeter, I am able to use Groovy in BSF elements (assertions, Samplers etc) but the JSR223 elements (assertions, samplers etc) are not showing the Groovy script language option.


Any help would be valuable Thanks
The simplest and easiest way to get groovy engine up and running is:
You must use user.classpath and groovy-all-xxx.jar
List of paths that JMeter will search for utility and plugin dependency classes. Use your platform path separator (as per System Property "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
So it should be:
user.classpath=/lib/ext/groovy-lib/groovy-all-xxx.jar
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With