@Test public void testAdd() throws IOException { System.out.println("add"); SynthesisReportGui instance = new SynthesisReportGui(); SampleResult res = new SampleResult(); 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); }
@Override public void add(final SampleResult res) { JMeterUtils.runSafe(new Runnable() { @Override public void run() { if (isSampleIncluded(res)) { SamplingStatCalculator row; final String sampleLabel = res.getSampleLabel(useGroupName.isSelected()); synchronized (lock) { row = tableRows.get(sampleLabel); if (row == null) { row = new SamplingStatCalculator(sampleLabel); tableRows.put(row.getLabel(), row); model.insertRow(row, model.getRowCount() - 1); } } synchronized (row) { row.addSample(res); } SamplingStatCalculator tot = tableRows.get(TOTAL_ROW_LABEL); synchronized (tot) { tot.addSample(res); } model.fireTableDataChanged(); } } }); }
SynthesisReportGui extends AbstractGraphPanelVisualizer implements
        Clearable, ActionListener { @Override public void add(final SampleResult res) { JMeterUtils.runSafe(new Runnable() { @Override public void run() { if (isSampleIncluded(res)) { SamplingStatCalculator row; final String sampleLabel = res.getSampleLabel(useGroupName.isSelected()); synchronized (lock) { row = tableRows.get(sampleLabel); if (row == null) { row = new SamplingStatCalculator(sampleLabel); tableRows.put(row.getLabel(), row); model.insertRow(row, model.getRowCount() - 1); } } synchronized (row) { row.addSample(res); } SamplingStatCalculator tot = tableRows.get(TOTAL_ROW_LABEL); synchronized (tot) { tot.addSample(res); } model.fireTableDataChanged(); } } }); } }
SynthesisReportGui extends AbstractGraphPanelVisualizer implements
        Clearable, ActionListener { @Override public void add(final SampleResult res) { JMeterUtils.runSafe(new Runnable() { @Override public void run() { if (isSampleIncluded(res)) { SamplingStatCalculator row; final String sampleLabel = res.getSampleLabel(useGroupName.isSelected()); synchronized (lock) { row = tableRows.get(sampleLabel); if (row == null) { row = new SamplingStatCalculator(sampleLabel); tableRows.put(row.getLabel(), row); model.insertRow(row, model.getRowCount() - 1); } } synchronized (row) { row.addSample(res); } SamplingStatCalculator tot = tableRows.get(TOTAL_ROW_LABEL); synchronized (tot) { tot.addSample(res); } model.fireTableDataChanged(); } } }); } SynthesisReportGui(); }
SynthesisReportGui extends AbstractGraphPanelVisualizer implements
        Clearable, ActionListener { @Override public void add(final SampleResult res) { JMeterUtils.runSafe(new Runnable() { @Override public void run() { if (isSampleIncluded(res)) { SamplingStatCalculator row; final String sampleLabel = res.getSampleLabel(useGroupName.isSelected()); synchronized (lock) { row = tableRows.get(sampleLabel); if (row == null) { row = new SamplingStatCalculator(sampleLabel); tableRows.put(row.getLabel(), row); model.insertRow(row, model.getRowCount() - 1); } } synchronized (row) { row.addSample(res); } SamplingStatCalculator tot = tableRows.get(TOTAL_ROW_LABEL); synchronized (tot) { tot.addSample(res); } model.fireTableDataChanged(); } } }); } SynthesisReportGui(); @Override String getLabelResource(); @Override String getStaticLabel(); @Override void add(final SampleResult res); @Override void clearData(); @Override void stateChanged(ChangeEvent e); @Override void modifyTestElement(TestElement c); @Override void configure(TestElement el); @Override void clearGui(); static List<List<Object>> getAllTableData(ObjectTableModel model, Format[] formats); @Override void actionPerformed(ActionEvent ev); static DefaultTableModel getAllDataAsTable(ObjectTableModel model, Format[] formats, String[] columns); @Override String getWikiPage(); @Override GraphPanelChart getGraphPanelChart(); }
SynthesisReportGui extends AbstractGraphPanelVisualizer implements
        Clearable, ActionListener { @Override public void add(final SampleResult res) { JMeterUtils.runSafe(new Runnable() { @Override public void run() { if (isSampleIncluded(res)) { SamplingStatCalculator row; final String sampleLabel = res.getSampleLabel(useGroupName.isSelected()); synchronized (lock) { row = tableRows.get(sampleLabel); if (row == null) { row = new SamplingStatCalculator(sampleLabel); tableRows.put(row.getLabel(), row); model.insertRow(row, model.getRowCount() - 1); } } synchronized (row) { row.addSample(res); } SamplingStatCalculator tot = tableRows.get(TOTAL_ROW_LABEL); synchronized (tot) { tot.addSample(res); } model.fireTableDataChanged(); } } }); } SynthesisReportGui(); @Override String getLabelResource(); @Override String getStaticLabel(); @Override void add(final SampleResult res); @Override void clearData(); @Override void stateChanged(ChangeEvent e); @Override void modifyTestElement(TestElement c); @Override void configure(TestElement el); @Override void clearGui(); static List<List<Object>> getAllTableData(ObjectTableModel model, Format[] formats); @Override void actionPerformed(ActionEvent ev); static DefaultTableModel getAllDataAsTable(ObjectTableModel model, Format[] formats, String[] columns); @Override String getWikiPage(); @Override GraphPanelChart getGraphPanelChart(); static final String WIKIPAGE; }