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 - Fields not retaining value #6

Open
bhar008 opened this issue Sep 3, 2014 · 4 comments
Open

MQTT Publisher & Subscriber - Fields not retaining value #6

bhar008 opened this issue Sep 3, 2014 · 4 comments

Comments

@bhar008
Copy link

bhar008 commented Sep 3, 2014

Hi,

In MQTT Publisher, the "Client ID" field is not able to retain or save any values. I enter a value in the Client ID field and if i click on any other component in the test plan and come back to the MQTT sampler, the value in the field disappears. Similarly, 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,
BK

@firesh-bakhda
Copy link

In MQTT Publisher, the "Client ID" field is not able to retain or save any values. I enter a value in the Client ID field and if i click on any other component in the test plan and come back to the MQTT sampler, the value in the field disappears. Similarly, the "Random Suffix" check box is checked whenever the script is opened, whereas i want the checkbox to be unchecked always.

I am having the same issue too

@firesh-bakhda
Copy link

@tuanhiep - Please do have a look at this issue. I have just downloaded the latest master branch code and the issue still persist.

@okryvorotko
Copy link

I have the same issue too.

@vraghavachari
Copy link

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

4 participants