Hi,
You can put java jar file in jmeter lib folder and after restart JMeter you
can use classes from this jar in jsr223 sampler in groovy script after
import.
I prefer building my supporting utils (java or groovy) in external IDE
project eg. IntelliJ (Gradle/Maven) and pack it as jar.

Regards,
Mariusz

On Wed, 23 Dec 2020 at 17:55, Tong Sun <[email protected]> wrote:

> Hi,
>
> - Most people would have some Java code to support JMeter test scripts.
> - Those Java code would most probably need to be built on third party libs
> - Those third party libs are downloaded and cached automatically by
> groovy/grapes in its cache.
>
> So the question is what is the best approach to use groovy/grapes
> cache jar files?
>
> I did some research but didn't find much good answers, the best one I
> found is
>
> https://stackoverflow.com/questions/59398827/
>
> which is as simple as providing JMeter a grapeConfig.xml file. But
> that's all within the conversation -- I don't know where to find such
> grapeConfig.xml, or how to generate one.
>
> Anyway, the question/goal is what is the best approach to use
> groovy/grapes cache jar files. thx
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to