Giter VIP home page Giter VIP logo

Comments (9)

rende2005 avatar rende2005 commented on May 20, 2024 1

@Hiteshkikani
You can get the new plugin binary from https://github.com/emqtt/mqtt-jmeter/releases/tag/v1.0.1
Please refer to README instructions @ https://github.com/emqtt/mqtt-jmeter/tree/separate_conn when you try it out.

Please let us know if this helps.

from mqtt-jmeter.

jinfahua avatar jinfahua commented on May 20, 2024

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.

from mqtt-jmeter.

hitkik avatar hitkik commented on May 20, 2024

Thanks for reply.
I have already parameterized pub topic but the problem is topic not getting updated on each iteration. It loads value from csv only once and uses the same value throughout the test execution. I want pub topic to get updated on each iteration

from mqtt-jmeter.

jinfahua avatar jinfahua commented on May 20, 2024

I created a temp fix, please try following attachment. If it works for you, we'll include in the future release.

mqtt-xmeter-jar-with-dependencies.jar.zip

from mqtt-jmeter.

hitkik avatar hitkik commented on May 20, 2024

It is working now.
Thanks.

from mqtt-jmeter.

hitkik avatar hitkik commented on May 20, 2024

Hi,
The problem is same as mentioned in the conversation above but this time it is with clientid. MQTT pub and sub sampler reads cliendId from a csv file only during 1st cycle (iteration) and then keeps same value for all following iterations during thread execution.
image

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 :)

from mqtt-jmeter.

hitkik avatar hitkik commented on May 20, 2024

otherwise it would be good idea and easier if you can add clear connection feature in the plugin

from mqtt-jmeter.

rende2005 avatar rende2005 commented on May 20, 2024

@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.

from mqtt-jmeter.

hitkik avatar hitkik commented on May 20, 2024

@rende2005 thank you so much. This served my purpose. Appreciate your support

from mqtt-jmeter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.