use of org.apache.jmeter.samplers.SampleEvent in project jmeter by apache.
the class TestResultAction method testOnFailureStopThread.
@Test
public void testOnFailureStopThread() {
sampleResult.setSuccessful(false);
resultAction.setErrorAction(ResultAction.ON_ERROR_STOPTHREAD);
resultAction.sampleOccurred(new SampleEvent(sampleResult, "JUnit-TG"));
Assert.assertFalse(sampleResult.isStopTest());
Assert.assertFalse(sampleResult.isStopTestNow());
Assert.assertTrue(sampleResult.isStopThread());
Assert.assertFalse(sampleResult.isStartNextThreadLoop());
}
use of org.apache.jmeter.samplers.SampleEvent in project jmeter by apache.
the class TestResultAction method testOnFailureStartNextThreadLoop.
@Test
public void testOnFailureStartNextThreadLoop() {
sampleResult.setSuccessful(false);
resultAction.setErrorAction(ResultAction.ON_ERROR_START_NEXT_THREAD_LOOP);
resultAction.sampleOccurred(new SampleEvent(sampleResult, "JUnit-TG"));
Assert.assertFalse(sampleResult.isStopTest());
Assert.assertFalse(sampleResult.isStopTestNow());
Assert.assertFalse(sampleResult.isStopThread());
Assert.assertTrue(sampleResult.isStartNextThreadLoop());
}
Aggregations