I am working with groovy and want to load a groovy script in another groovy script. Is there any way that i can load this script from any location in my system?
Can someone give an example.
I am working with groovy and want to load a groovy script in another groovy script. Is there any way that i can load this script from any location in my system?
Can someone give an example.
You can do it using Script.evaluate() function like:
evaluate(new File("test.groovy"))
Demo:
There is also __groovy() function available since JMeter 3.1, you may find this useful as well.