hemikak / mqtt-jmeter

This is the plugin for Jmeter to Test MQTT protocol
Apache License 2.0
22 stars 7 forks source link

Problem getting values from other samplers in subscriber #17

Closed hemikak closed 6 years ago

hemikak commented 6 years ago

When trying to get values for the Subscriber from other samplers before running the Mqtt Subscriber (using "${value}" for example) there is a problem- it seems that the subscriber is initializing when the thread is starting and not when the sampler is activated, thus the value are not set yet and the subscription fail. i think the right behaviour should be to start the initClient in the sample method instead of the startThread method - the same goes regarding the "subscribe". if my analysis is not right i'll be glad if you could explain why the current behaviour is the right one.

Thanks, Hemika