use of org.apache.jmeter.samplers.SampleEvent in project jmeter-plugins by undera.
the class MonitoringResultsCollectorTest method testSampleOccurred.
/**
* Test of sampleOccurred method, of class MonitoringResultsCollector.
*/
@Test
public void testSampleOccurred() {
System.out.println("sampleOccurred");
SampleEvent event = null;
MonitoringResultsCollector instance = new MonitoringResultsCollector();
instance.sampleOccurred(event);
// TODO review the generated test code and remove the default call to fail.
}
use of org.apache.jmeter.samplers.SampleEvent in project jmeter-plugins by undera.
the class AutoStopTest method testSampleStopped.
/**
* Test of sampleStopped method, of class AutoStop.
*/
@Test
public void testSampleStopped() {
System.out.println("sampleStopped");
SampleEvent se = null;
AutoStop instance = new AutoStop();
instance.sampleStopped(se);
}
use of org.apache.jmeter.samplers.SampleEvent in project jmeter-plugins by undera.
the class AutoStopTest method testSampleOccurred_error.
/**
* Test of sampleOccurred method, of class AutoStop.
*/
@Test
public void testSampleOccurred_error() throws InterruptedException {
System.out.println("sampleOccurred error");
SampleResult res = new SampleResult();
SampleEvent se = new SampleEvent(res, "");
AutoStop instance = new AutoStop();
instance.setResponseTime("0");
instance.setErrorRate("60.6");
instance.setErrorRateSecs("3");
instance.sampleOccurred(se);
for (int n = 0; n < 5; n++) {
synchronized (this) {
wait(1000);
}
instance.sampleOccurred(se);
}
}
use of org.apache.jmeter.samplers.SampleEvent in project jmeter-plugins by undera.
the class AutoStopTest method testSampleStarted.
/**
* Test of sampleStarted method, of class AutoStop.
*/
@Test
public void testSampleStarted() {
System.out.println("sampleStarted");
SampleEvent se = null;
AutoStop instance = new AutoStop();
instance.sampleStarted(se);
}
use of org.apache.jmeter.samplers.SampleEvent in project jmeter-plugins by undera.
the class SynthesisReportGuiTest method testAdd.
/**
* Test of add method, of class SynthesisReportGui.
*/
@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);
}
Aggregations