Search in sources :

Example 6 with PerfMonCollector

use of kg.apc.jmeter.perfmon.PerfMonCollector in project jmeter-plugins by undera.

the class PerfMonGuiTest method testWork.

@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());
}
Also used : PerfMonCollector(kg.apc.jmeter.perfmon.PerfMonCollector) Test(org.junit.Test)

Example 7 with PerfMonCollector

use of kg.apc.jmeter.perfmon.PerfMonCollector in project jmeter-plugins by undera.

the class PerfMonGuiTest method testCreateTestElement.

@Test
public void testCreateTestElement() {
    System.out.println("createTestElement");
    PerfMonGui instance = new PerfMonGui();
    TestElement result = instance.createTestElement();
    assertTrue(result instanceof PerfMonCollector);
}
Also used : PerfMonCollector(kg.apc.jmeter.perfmon.PerfMonCollector) TestElement(org.apache.jmeter.testelement.TestElement) Test(org.junit.Test)

Aggregations

PerfMonCollector (kg.apc.jmeter.perfmon.PerfMonCollector)7 TestElement (org.apache.jmeter.testelement.TestElement)4 Test (org.junit.Test)4 CollectionProperty (org.apache.jmeter.testelement.property.CollectionProperty)1 JMeterProperty (org.apache.jmeter.testelement.property.JMeterProperty)1 NullProperty (org.apache.jmeter.testelement.property.NullProperty)1