-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to load topic on each iteration from csv file #22
Comments
Pub sampler could be parameterized, but sub sampler cannot be parameterized - one sub sampler can only sub to one topic. If you'd like to have one user sub to different topics, now you will have to create several sub samplers. |
Thanks for reply. |
I created a temp fix, please try following attachment. If it works for you, we'll include in the future release. |
It is working now. |
Hi, My requirement is, the value of ${clientid} (in above picture) should be updated on all successive iterations. i.e. sampler should read new value from a file for every iteration. Can you fix this problem? P.S: I am re-opening same issue (#22) as the problem is quite similar to the issue #22 :) |
otherwise it would be good idea and easier if you can add clear connection feature in the plugin |
@Hiteshkikani ClientId (as part of MQTT context) is determined during the connection phase, thus across the iterations within a JMeter thread, ClientId will not change. We have a new implementation(in "separate_conn" branch ) to create MQTT connection before publish/subscribe sampler, so it's promising you can clear the connection at the end of your iteration, and create a new one with another ClientId for the next loop. I will keep you posted after some verification test. |
@Hiteshkikani Please let us know if this helps. |
@rende2005 thank you so much. This served my purpose. Appreciate your support |
Hi,
I have created a script using MQTT plug in which sends messages to a topic.
I have parameterized payload and passing message from csv file.
Jmeter is able to load new message from csv file on each iteration and publish to the topic which is hard coded.
But when I try to parameterise Topic name and pass it from csv file, topic name is loaded only once when thread is actually started and is unable to update topic name on each iteration which is my requirement.
The text was updated successfully, but these errors were encountered: