Package org.apache.jmeter.reporters

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


  /* 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

      // 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

    * Test of modifyTestElement method, of class PageDataExtractorOverTimeGui.
    */
   @Test
   public void testModifyTestElement() {
      System.out.println("modifyTestElement");
      TestElement te = new ResultCollector();
      PageDataExtractorOverTimeGui instance = new PageDataExtractorOverTimeGui();
      instance.modifyTestElement(te);
   }
View Full Code Here

     */
    @Override
    public void modifyTestElement(TestElement c) {
        super.modifyTestElement(c);
        if (c instanceof ResultCollector) {
            ResultCollector rc = (ResultCollector) c;
            rc.setFilename(getFile());

            rc.setProperty(new StringProperty(
                    CorrectedResultCollector.FILENAME, getFile()));
            CollectionProperty rows = JMeterPluginsUtils
                    .tableModelRowsToCollectionProperty(tableModel,
                            DATA_PROPERTY);
            rc.setProperty(rows);
            collector = rc;
        }
    }
View Full Code Here

   @Test
   public void testModifyTestElement()
   {
      System.out.println("modifyTestElement");
      TestElement c = new ResultCollector();
      ThroughputVsThreadsGui instance = new ThroughputVsThreadsGui();
      instance.modifyTestElement(c);
   }
View Full Code Here

   @Test
   public void testConfigure()
   {
      System.out.println("configure");
      TestElement el = new ResultCollector();
      ThroughputVsThreadsGui instance = new ThroughputVsThreadsGui();
      instance.configure(el);
   }
View Full Code Here

        instance.add(res);

        SampleResult res2 = new SampleResult();
        instance.add(res2);

        ResultCollector rc = new ResultCollector();
        rc.setListener(instance);
        rc.sampleOccurred(new SampleEvent(res, ""));
        rc.sampleOccurred(new SampleEvent(res2, ""));

        File f = File.createTempFile("test", ".csv");
        instance.getGraphPanelChart().saveGraphToCSV(f);
    }
View Full Code Here

     * Test of modifyTestElement method, of class SynthesisReportGui.
     */
    @Test
    public void testModifyTestElement() {
        System.out.println("modifyTestElement");
        TestElement c = new ResultCollector();
        SynthesisReportGui instance = new SynthesisReportGui();
        instance.modifyTestElement(c);
    }
View Full Code Here

   @Test
   public void testModifyTestElement()
   {
      System.out.println("modifyTestElement");
      TestElement c = new ResultCollector();
      TimesVsThreadsGui instance = new TimesVsThreadsGui();
      instance.modifyTestElement(c);
   }
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.