I'm trying to write a JSR 223 Sampler that sends messages to Kafka,
essentially replicating PepperBox (
https://github.com/GSLabDev/pepper-box/blob/master/src/main/java/com/gslab/pepper/sampler/PepperBoxKafkaSampler.java)
in
Groovy.

Is there a way to replicate the behavior of setupTest(), i.e. run a code
block only once before all iterations (to create the Kafka producer)?

Reply via email to