Package org.apache.jmeter.protocol.http.sampler

Examples of org.apache.jmeter.protocol.http.sampler.WebServiceSampler


  /**
   * the implementation loads the URL and the soap action for the request.
   */
  public void configure(TestElement el) {
    super.configure(el);
    WebServiceSampler sampler = (WebServiceSampler) el;
    wsdlField.setText(sampler.getWsdlURL());
        protocol.setText(sampler.getProtocol());
    domain.setText(sampler.getDomain());
        port.setText(sampler.getPropertyAsString(HTTPSamplerBase.PORT));
    path.setText(sampler.getPath());
    soapAction.setText(sampler.getSoapAction());
    soapXml.setText(sampler.getXmlData());
    soapXmlFile.setFilename(sampler.getXmlFile());
    randomXmlFile.setText(sampler.getXmlPathLoc());
        connectTimeout.setText(sampler.getTimeout());
    memCache.setSelected(sampler.getMemoryCache());
    readResponse.setSelected(sampler.getReadResponse());
    useProxy.setSelected(sampler.getUseProxy());
    if (sampler.getProxyHost().length() == 0) {
      proxyHost.setEnabled(false);
    } else {
      proxyHost.setText(sampler.getProxyHost());
    }
    if (sampler.getProxyPort() == 0) {
      proxyPort.setEnabled(false);
    } else {
      proxyPort.setText(String.valueOf(sampler.getProxyPort()));
    }
  }
View Full Code Here


    try {
      // We get the AuthManager and pass it to the WSDLHelper
      // once the sampler is updated to Axis, all of this stuff
      // should not be necessary. Now I just need to find the
      // time and motivation to do it.
      WebServiceSampler sampler = (WebServiceSampler) this.createTestElement();
      AuthManager manager = sampler.getAuthManager();
      HELPER = new WSDLHelper(url, manager);
      HELPER.parse();
      return HELPER.getWebMethods();
    } catch (Exception exception) {
      JOptionPane.showConfirmDialog(this,
View Full Code Here

  /**
   * @see org.apache.jmeter.gui.JMeterGUIComponent#createTestElement()
   */
  public TestElement createTestElement() {
    WebServiceSampler sampler = new WebServiceSampler();
    this.configureTestElement(sampler);
    this.modifyTestElement(sampler);
    return sampler;
  }
View Full Code Here

   * 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) {
    WebServiceSampler sampler = (WebServiceSampler) s;
    this.configureTestElement(sampler);
    sampler.setDomain(domain.getText());
        sampler.setProperty(HTTPSamplerBase.PORT,port.getText());
    sampler.setPath(path.getText());
    sampler.setWsdlURL(wsdlField.getText());
    sampler.setMethod(HTTPSamplerBase.POST);
    sampler.setSoapAction(soapAction.getText());
    sampler.setXmlData(soapXml.getText());
    sampler.setXmlFile(soapXmlFile.getFilename());
    sampler.setXmlPathLoc(randomXmlFile.getText());
    sampler.setMemoryCache(memCache.isSelected());
    sampler.setReadResponse(readResponse.isSelected());
    sampler.setUseProxy(useProxy.isSelected());
    sampler.setProxyHost(proxyHost.getText());
    sampler.setProxyPort(proxyPort.getText());
  }
View Full Code Here

  /**
   * the implementation loads the URL and the soap action for the request.
   */
  public void configure(TestElement el) {
    super.configure(el);
    WebServiceSampler sampler = (WebServiceSampler) el;
    wsdlField.setText(sampler.getWsdlURL());
    domain.setText(sampler.getDomain());
        port.setText(sampler.getPropertyAsString(HTTPSamplerBase.PORT));
    path.setText(sampler.getPath());
    soapAction.setText(sampler.getSoapAction());
    soapXml.setText(sampler.getXmlData());
    soapXmlFile.setFilename(sampler.getXmlFile());
    randomXmlFile.setText(sampler.getXmlPathLoc());
    memCache.setSelected(sampler.getMemoryCache());
    readResponse.setSelected(sampler.getReadResponse());
    useProxy.setSelected(sampler.getUseProxy());
    if (sampler.getProxyHost().length() == 0) {
      proxyHost.setEnabled(false);
    } else {
      proxyHost.setText(sampler.getProxyHost());
    }
    if (sampler.getProxyPort() == 0) {
      proxyPort.setEnabled(false);
    } else {
      proxyPort.setText(String.valueOf(sampler.getProxyPort()));
    }
  }
View Full Code Here

    try {
      // We get the AuthManager and pass it to the WSDLHelper
      // once the sampler is updated to Axis, all of this stuff
      // should not be necessary. Now I just need to find the
      // time and motivation to do it.
      WebServiceSampler sampler = (WebServiceSampler) this.createTestElement();
      AuthManager manager = sampler.getAuthManager();
      HELPER = new WSDLHelper(url, manager);
      HELPER.parse();
      return HELPER.getWebMethods();
    } catch (Exception exception) {
      JOptionPane.showConfirmDialog(this, JMeterUtils.getResString("wsdl_helper_error"), "Warning",
View Full Code Here

TOP

Related Classes of org.apache.jmeter.protocol.http.sampler.WebServiceSampler

Copyright © 2018 www.massapicom. 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.