Skip to content
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

MQTT Publisher & Subscriber - "Random Suffix" check box is checked #15

Open
swapnilchintalwar opened this issue Jul 7, 2015 · 1 comment

Comments

@swapnilchintalwar
Copy link

Hi,

In MQTT Publisher, the "Random Suffix" check box is checked whenever the script is opened, whereas i want the checkbox to be unchecked always.

In the MQTT Subscriber, the Cient ID field is able to retain the value but the Random Suffix is checked everytime i open the script although i made sure it is unchecked and the script is saved.

Please tell me why this issue occurs and also it would be great if you could tell me the purpose of the Random suffix checkbox.

Thanks,
Swapnil

@vraghavachari
Copy link

Hi Swapnil,

I believe this is a bug in the code. Here is how I was able to fix it.

  1. Modify the MQTTPublisherGui.java file as below.
  2. Build and generate a new mqtt-jmeter.jar and place them in your JMETER/lib/ext folder.
  3. Reopen JMeter tool.

`public void configure(TestElement el) {
....
mqttUser.setEnabled(useAuth.isSelected());
mqttPwd.setEnabled(useAuth.isSelected());

            //Adding the missing "Set" for the following UI elements.
    clientId.setText(sampler.getCLIENT_ID());
    suffixClientId.setSelected(sampler.useRandomSuffix());
    this.connectionPerTopic.setSelected(sampler.isOneConnectionPerTopic());

            ......

}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants