Thanks Sergio. So I would have to say create 10 Kafka Producers in my setUp Thread Group, and then pass them to my standard Thread Group? How? As I understand, JMeter variables can't be shared between Thread groups, and Properties can, but are limited to String values.
On Sun, Mar 15, 2020 at 4:31 PM Sergio Boso <[email protected]> wrote: > Hi, you can easily add a "setUp Thread Group" end insert proper samplers > below this thread group > > Regards > Sergio > > > Il 15/03/2020 16:22, Alexandre Gattiker ha scritto: > > 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)? > -- > > Ing. Sergio Boso > > > >
