/** the implementation loads the URL and the soap action for the request. */
 @Override
 public void configure(TestElement el) {
   super.configure(el);
   SubscriberSampler sampler = (SubscriberSampler) el;
   urlField.setText(sampler.getProviderUrl());
   mqttDestination.setText(sampler.getDestination());
   clientId.setText(sampler.getClientId());
   mqttUser.setText(sampler.getUsername());
   mqttPwd.setText(sampler.getPassword());
   useAuth.setSelected(sampler.isUseAuth());
   mqttUser.setEnabled(useAuth.isSelected());
   mqttPwd.setEnabled(useAuth.isSelected());
   samplerTimeout.setText(sampler.getSamplerTimeout());
   iterations.setText(sampler.getIterations());
   connectionTimeout.setText("" + sampler.getConnectionTimeout());
   cleanSession.setSelected(Boolean.parseBoolean(sampler.getCLEANSESSION()));
   // typeQoSValue.setText(sampler.getQuality());
 }
 /**
  * Modifies a given TestElement to mirror the data in the gui components.
  *
  * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
  */
 @Override
 public void modifyTestElement(TestElement s) {
   SubscriberSampler sampler = (SubscriberSampler) s;
   this.configureTestElement(sampler);
   sampler.setProviderUrl(urlField.getText());
   sampler.setDestination(mqttDestination.getText());
   sampler.setClientID(clientId.getText());
   sampler.setUsername(mqttUser.getText());
   sampler.setPassword(mqttPwd.getText());
   sampler.setUseAuth(useAuth.isSelected());
   sampler.setSamplerTimeout(samplerTimeout.getText());
   sampler.setConnectionTimeout(connectionTimeout.getText());
   sampler.setIterations(iterations.getText());
   // we might need this in future - for now it's causing problems
   // sampler.setRandomSuffix(this.suffixClientId.isSelected());
   sampler.setRandomSuffix(false);
   sampler.setLength(this.suffixLength.getText());
   // sampler.setOneConnectionPerTopic(this.connectionPerTopic.isSelected());
   // sampler.setSTRATEGY(this.topicChoice.getText());
   // sampler.setQuality(typeQoSValue.getText());
   sampler.setCLEANSESSION(cleanSession.isSelected());
 }