Examples of PublisherSampler


Examples of org.apache.jmeter.protocol.jms.sampler.PublisherSampler

     * Modifies a given TestElement to mirror the data in the gui components.
     *
     * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
     */
    public void modifyTestElement(TestElement s) {
        PublisherSampler sampler = (PublisherSampler) s;
        this.configureTestElement(sampler);
        sampler.setUseJNDIProperties(String.valueOf(useProperties.isSelected()));
        sampler.setJNDIIntialContextFactory(jndiICF.getText());
        sampler.setProviderUrl(urlField.getText());
        sampler.setConnectionFactory(jndiConnFac.getText());
        sampler.setDestination(jmsDestination.getText());
        sampler.setUsername(jmsUser.getText());
        sampler.setPassword(jmsPwd.getText());
        sampler.setTextMessage(textMessage.getText());
        sampler.setInputFile(messageFile.getFilename());
        sampler.setRandomPath(randomFile.getFilename());
        sampler.setConfigChoice(configChoice.getText());
        sampler.setMessageChoice(msgChoice.getText());
        sampler.setIterations(iterations.getText());
        sampler.setUseAuth(useAuth.isSelected());
        sampler.setDestinationStatic(destSetup.getText().equals(DEST_SETUP_STATIC));
    }
View Full Code Here

Examples of org.apache.jmeter.protocol.jms.sampler.PublisherSampler

     * the implementation loads the URL and the soap action for the request.
     */
    @Override
    public void configure(TestElement el) {
        super.configure(el);
        PublisherSampler sampler = (PublisherSampler) el;
        useProperties.setSelected(sampler.getUseJNDIPropertiesAsBoolean());
        jndiICF.setText(sampler.getJNDIInitialContextFactory());
        urlField.setText(sampler.getProviderUrl());
        jndiConnFac.setText(sampler.getConnectionFactory());
        jmsDestination.setText(sampler.getDestination());
        jmsUser.setText(sampler.getUsername());
        jmsPwd.setText(sampler.getPassword());
        textMessage.setText(sampler.getTextMessage());
        messageFile.setFilename(sampler.getInputFile());
        randomFile.setFilename(sampler.getRandomPath());
        configChoice.setText(sampler.getConfigChoice());
        msgChoice.setText(sampler.getMessageChoice());
        updateConfig(sampler.getConfigChoice());
        iterations.setText(sampler.getIterations());
        useAuth.setSelected(sampler.isUseAuth());
        destSetup.setText(sampler.isDestinationStatic() ? DEST_SETUP_STATIC : DEST_SETUP_DYNAMIC);
    }
View Full Code Here

Examples of org.apache.jmeter.protocol.jms.sampler.PublisherSampler

  /**
   * @see org.apache.jmeter.gui.JMeterGUIComponent#createTestElement()
   */
  public TestElement createTestElement() {
    PublisherSampler sampler = new PublisherSampler();
    this.configureTestElement(sampler);
    sampler.setUseJNDIProperties(String.valueOf(useProperties.isSelected()));
    sampler.setJNDIIntialContextFactory(jndiICF.getText());
    sampler.setProviderUrl(urlField.getText());
    sampler.setConnectionFactory(jndiConnFac.getText());
    sampler.setTopic(jmsTopic.getText());
    sampler.setUsername(jmsUser.getText());
    sampler.setPassword(jmsPwd.getText());
    sampler.setTextMessage(textMessage.getText());
    sampler.setInputFile(messageFile.getFilename());
    sampler.setRandomPath(randomFile.getFilename());
    sampler.setConfigChoice(configChoice.getText());
    sampler.setMessageChoice(msgChoice.getText());
    sampler.setIterations(iterations.getText());
    sampler.setUseAuth(reqAuth.getText());
    return sampler;
  }
View Full Code Here

Examples of org.apache.jmeter.protocol.jms.sampler.PublisherSampler

    /**
     * @see org.apache.jmeter.gui.JMeterGUIComponent#createTestElement()
     */
    @Override
    public TestElement createTestElement() {
      PublisherSampler sampler = new PublisherSampler();
      setupSamplerProperties(sampler);

      return sampler;
  }
View Full Code Here

Examples of org.apache.jmeter.protocol.jms.sampler.PublisherSampler

     *
     * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
     */
    @Override
    public void modifyTestElement(TestElement s) {
        PublisherSampler sampler = (PublisherSampler) s;
        setupSamplerProperties(sampler);
        sampler.setDestinationStatic(destSetup.getText().equals(DEST_SETUP_STATIC));
    }
View Full Code Here

Examples of org.apache.jmeter.protocol.jms.sampler.PublisherSampler

     * the implementation loads the URL and the soap action for the request.
     */
    @Override
    public void configure(TestElement el) {
        super.configure(el);
        PublisherSampler sampler = (PublisherSampler) el;
        useProperties.setSelected(sampler.getUseJNDIPropertiesAsBoolean());
        jndiICF.setText(sampler.getJNDIInitialContextFactory());
        urlField.setText(sampler.getProviderUrl());
        jndiConnFac.setText(sampler.getConnectionFactory());
        jmsDestination.setText(sampler.getDestination());
        jmsUser.setText(sampler.getUsername());
        jmsPwd.setText(sampler.getPassword());
        textMessage.setInitialText(sampler.getTextMessage());
        textMessage.setCaretPosition(0);
        messageFile.setFilename(sampler.getInputFile());
        randomFile.setFilename(sampler.getRandomPath());
        configChoice.setText(sampler.getConfigChoice());
        msgChoice.setText(sampler.getMessageChoice());
        iterations.setText(sampler.getIterations());
        expiration.setText(sampler.getExpiration());
        priority.setText(sampler.getPriority());
        useAuth.setSelected(sampler.isUseAuth());
        jmsUser.setEnabled(useAuth.isSelected());
        jmsPwd.setEnabled(useAuth.isSelected());
        destSetup.setText(sampler.isDestinationStatic() ? DEST_SETUP_STATIC : DEST_SETUP_DYNAMIC);
        useNonPersistentDelivery.setSelected(sampler.getUseNonPersistentDelivery());
        jmsPropertiesPanel.configure(sampler.getJMSProperties());
        updateChoice(msgChoice.getText());
        updateConfig(sampler.getConfigChoice());
    }
View Full Code Here

Examples of org.apache.jmeter.protocol.jms.sampler.PublisherSampler

  /**
   * @see org.apache.jmeter.gui.JMeterGUIComponent#createTestElement()
   */
  public TestElement createTestElement() {
    PublisherSampler sampler = new PublisherSampler();
    this.configureTestElement(sampler);
    sampler.setUseJNDIProperties(String.valueOf(useProperties.isSelected()));
    sampler.setJNDIIntialContextFactory(jndiICF.getText());
    sampler.setProviderUrl(urlField.getText());
    sampler.setConnectionFactory(jndiConnFac.getText());
    sampler.setTopic(jmsTopic.getText());
    sampler.setUsername(jmsUser.getText());
    sampler.setPassword(jmsPwd.getText());
    sampler.setTextMessage(textMessage.getText());
    sampler.setInputFile(messageFile.getFilename());
    sampler.setRandomPath(randomFile.getFilename());
    sampler.setConfigChoice(configChoice.getText());
    sampler.setMessageChoice(msgChoice.getText());
    sampler.setIterations(iterations.getText());
    sampler.setUseAuth(reqAuth.getText());
    return sampler;
  }
View Full Code Here

Examples of org.apache.jmeter.protocol.jms.sampler.PublisherSampler

   * Modifies a given TestElement to mirror the data in the gui components.
   *
   * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
   */
  public void modifyTestElement(TestElement s) {
    PublisherSampler sampler = (PublisherSampler) s;
    this.configureTestElement(sampler);
    sampler.setUseJNDIProperties(String.valueOf(useProperties.isSelected()));
    sampler.setJNDIIntialContextFactory(jndiICF.getText());
    sampler.setProviderUrl(urlField.getText());
    sampler.setConnectionFactory(jndiConnFac.getText());
    sampler.setTopic(jmsTopic.getText());
    sampler.setUsername(jmsUser.getText());
    sampler.setPassword(jmsPwd.getText());
    sampler.setTextMessage(textMessage.getText());
    sampler.setInputFile(messageFile.getFilename());
    sampler.setRandomPath(randomFile.getFilename());
    sampler.setConfigChoice(configChoice.getText());
    sampler.setMessageChoice(msgChoice.getText());
    sampler.setIterations(iterations.getText());
    sampler.setUseAuth(reqAuth.getText());
  }
View Full Code Here

Examples of org.apache.jmeter.protocol.jms.sampler.PublisherSampler

  /**
   * the implementation loads the URL and the soap action for the request.
   */
  public void configure(TestElement el) {
    super.configure(el);
    PublisherSampler sampler = (PublisherSampler) el;
    useProperties.setSelected(sampler.getUseJNDIPropertiesAsBoolean());
    jndiICF.setText(sampler.getJNDIInitialContextFactory());
    urlField.setText(sampler.getProviderUrl());
    jndiConnFac.setText(sampler.getConnectionFactory());
    jmsTopic.setText(sampler.getTopic());
    jmsUser.setText(sampler.getUsername());
    jmsPwd.setText(sampler.getPassword());
    textMessage.setText(sampler.getTextMessage());
    messageFile.setFilename(sampler.getInputFile());
    randomFile.setFilename(sampler.getRandomPath());
    configChoice.setText(sampler.getConfigChoice());
    msgChoice.setText(sampler.getMessageChoice());
    updateConfig(sampler.getConfigChoice());
    iterations.setText(sampler.getIterations());
    reqAuth.setText(sampler.getUseAuth());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.