Package org.apache.jmeter.reporters

Examples of org.apache.jmeter.reporters.ResultCollector$FileEntry


  /* Overrides AbstractJMeterGuiComponent.configure(TestElement) */
  public void configure(TestElement el) {
    super.configure(el);
    setFile(el.getPropertyAsString(ResultCollector.FILENAME));
    ResultCollector rc = (ResultCollector) el;
    errorLogging.setSelected(rc.isErrorLogging());
    successOnlyLogging.setSelected(rc.isSuccessOnlyLogging());
    if (collector == null) {
      collector = new ResultCollector();
    }
    collector.setSaveConfig((SampleSaveConfiguration) rc.getSaveConfig().clone());
  }
View Full Code Here


                println("Creating summariser <" + summariserName + ">");
                summer = new Summariser(summariserName);
            }

            if (logFile != null) {
                ResultCollector logger = new ResultCollector(summer);
                logger.setFilename(logFile);
                tree.add(tree.getArray()[0], logger);
            }
            else {
                // only add Summariser if it can not be shared with the ResultCollector
                if (summer != null) {
View Full Code Here

      // Remove the disabled items
      // For GUI runs this is done in Start.java
      convertSubTree(tree);

      if (logFile != null) {
        ResultCollector logger = new ResultCollector();
        logger.setFilename(logFile);
        tree.add(tree.getArray()[0], logger);
      }
      String summariserName = JMeterUtils.getPropDefault("summariser.name", "");//$NON-NLS-1$
      if (summariserName.length() > 0) {
        log.info("Creating summariser <" + summariserName + ">");
View Full Code Here

      // Remove the disabled items
      // For GUI runs this is done in Start.java
      convertSubTree(tree);

      if (logFile != null) {
        ResultCollector logger = new ResultCollector();
        logger.setFilename(logFile);
        tree.add(tree.getArray()[0], logger);
      }
      String summariserName = JMeterUtils.getPropDefault("summariser.name", "");//$NON-NLS-1$
      if (summariserName.length() > 0) {
        log.info("Creating summariser <" + summariserName + ">");
View Full Code Here

  }

  /* Implements JMeterGUIComponent.modifyTestElement(TestElement) */
  public TestElement createTestElement() {
    if (collector == null) {
      collector = new ResultCollector();
    }
    modifyTestElement(collector);
    return (TestElement) collector.clone();
  }
View Full Code Here

  /* Implements JMeterGUIComponent.modifyTestElement(TestElement) */
  public void modifyTestElement(TestElement c) {
    configureTestElement((AbstractListenerElement) c);
    if (c instanceof ResultCollector) {
      ResultCollector rc = (ResultCollector) c;
      rc.setErrorLogging(errorLogging.isSelected());
      rc.setFilename(getFile());
      collector = rc;
    }
  }
View Full Code Here

  /* Overrides AbstractJMeterGuiComponent.configure(TestElement) */
  public void configure(TestElement el) {
    super.configure(el);
    setFile(el.getPropertyAsString(ResultCollector.FILENAME));
    ResultCollector rc = (ResultCollector) el;
    errorLogging.setSelected(rc.isErrorLogging());
    if (collector == null) {
      collector = new ResultCollector();
    }
    collector.setSaveConfig((SampleSaveConfiguration) rc.getSaveConfig().clone());
  }
View Full Code Here

                println("Creating summariser <" + summariserName + ">");
                summer = new Summariser(summariserName);
            }

            if (logFile != null) {
                ResultCollector logger = new ResultCollector(summer);
                logger.setFilename(logFile);
                tree.add(tree.getArray()[0], logger);
            }
            else {
                // only add Summariser if it can not be shared with the ResultCollector
                if (summer != null) {
View Full Code Here

    }

    /* Implements JMeterGUIComponent.createTestElement() */
    public TestElement createTestElement() {
        if (collector == null) {
            collector = new ResultCollector();
        }
        modifyTestElement(collector);
        return (TestElement) collector.clone();
    }
View Full Code Here

    /* Implements JMeterGUIComponent.modifyTestElement(TestElement) */
    public void modifyTestElement(TestElement c) {
        configureTestElement((AbstractListenerElement) c);
        if (c instanceof ResultCollector) {
            ResultCollector rc = (ResultCollector) c;
            rc.setErrorLogging(errorLogging.isSelected());
            rc.setSuccessOnlyLogging(successOnlyLogging.isSelected());
            rc.setFilename(getFile());
            collector = rc;
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.jmeter.reporters.ResultCollector$FileEntry

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.