Hello,

I have written a Custom Sampler by extending "AbstractJavaSamplerClient". My
sampler is very simple, it just logs the method being invoked.

If i run the sampler for 2 threads with "loop count" of 1, I see the
following output:

INFO  03/23, 02:49:18 hat.test.jms.test.DummySampler Constructor
INFO  03/23, 02:49:18 hat.test.jms.test.DummySampler setupTest
INFO  03/23, 02:49:18 hat.test.jms.test.DummySampler runTest
INFO  03/23, 02:49:18 hat.test.jms.test.DummySampler Constructor
INFO  03/23, 02:49:18 hat.test.jms.test.DummySampler setupTest
INFO  03/23, 02:49:18 hat.test.jms.test.DummySampler runTest
INFO  03/23, 02:49:18 hat.test.jms.test.DummySampler teardownTest
INFO  03/23, 02:49:18 hat.test.jms.test.DummySampler teardownTest

Here you will observe that the "runTest" method of the first thread is
invoked before the "setupTest" of the 2nd thread. For my test I need to
ensure that all threads have their setupTest method invoked before any of
them have their "runTest" method ivoked.

Does anyone know how I can do this?

Thanks,

Paul.

Reply via email to