Package kg.apc.jmeter.perfmon

Examples of kg.apc.jmeter.perfmon.PerfMonCollector


        grid.setModel(tableModel);
    }

    @Override
    public TestElement createTestElement() {
        TestElement te = new PerfMonCollector();
        modifyTestElement(te);
        te.setComment(JMeterPluginsUtils.getWikiLinkText(getWikiPage()));
        return te;
    }
View Full Code Here


        if (grid.isEditing()) {
            grid.getCellEditor().stopCellEditing();
        }

        if (te instanceof PerfMonCollector) {
            PerfMonCollector pmte = (PerfMonCollector) te;
            CollectionProperty rows = JMeterPluginsUtils.tableModelRowsToCollectionProperty(tableModel, PerfMonCollector.DATA_PROPERTY);
            pmte.setData(rows);
        }
        super.configureTestElement(te);
    }
View Full Code Here

    }

    @Override
    public void configure(TestElement te) {
        super.configure(te);
        PerfMonCollector pmte = (PerfMonCollector) te;
        JMeterProperty perfmonValues = pmte.getMetricSettings();
        if (!(perfmonValues instanceof NullProperty)) {
            JMeterPluginsUtils.collectionPropertyToTableModelRows((CollectionProperty) perfmonValues, tableModel);
        } else {
            log.warn("Received null property instead of collection");
        }
View Full Code Here

    }

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

    }

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

    @Test
    public void testWork() throws InterruptedException {
        System.out.println("work");
        PerfMonGui instance = new PerfMonGui();
        PerfMonCollector collector = (PerfMonCollector) instance.createTestElement();
        //collector.setListener(instance);
        collector.testStarted();
        //collector.testIterationStart(null);
        Thread.sleep(2000);
        collector.testEnded();
        //assertEquals(5, instance.model.firstEntry().getValue().size());
    }
View Full Code Here

TOP

Related Classes of kg.apc.jmeter.perfmon.PerfMonCollector

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.