Hi I am extending the AbstractJavaSamplerClient class in order to use custom
JavaRequest on my Tests.

 

public class TestSampler extends AbstractJavaSamplerClient { ...

 

In the JMeter GUI, I compose my test of several JavaRequest of this type.
The ideal behaviour would be having the TestSampler class instantiated just
once per complete Test and use instance variables in my TestSampler in order
to share data between the different JavaRequests composing my Test. However
this is not possible since an instance of the TestSampler is created per
each JavaRequest  I use in my Test. Hence in order to share data between
Java requests I am forced to use static variables, but this make impossible
having multiple instances of my Test running in parallel (that is multiple
users in parallel).  What should I be doing in order to have both data
sharing between JavaRequests and multi-users??

Reply via email to