Search in sources :

Example 1 with TestIterationListener

use of org.apache.jmeter.testelement.TestIterationListener in project jmeter by apache.

the class JMeterThread method notifyTestListeners.

void notifyTestListeners() {
    threadVars.incIteration();
    for (TestIterationListener listener : testIterationStartListeners) {
        if (listener instanceof TestElement) {
            listener.testIterationStart(new LoopIterationEvent(threadGroupLoopController, threadVars.getIteration()));
            ((TestElement) listener).recoverRunningVersion();
        } else {
            listener.testIterationStart(new LoopIterationEvent(threadGroupLoopController, threadVars.getIteration()));
        }
    }
}
Also used : TestIterationListener(org.apache.jmeter.testelement.TestIterationListener) TestElement(org.apache.jmeter.testelement.TestElement) AbstractTestElement(org.apache.jmeter.testelement.AbstractTestElement) LoopIterationEvent(org.apache.jmeter.engine.event.LoopIterationEvent)

Aggregations

LoopIterationEvent (org.apache.jmeter.engine.event.LoopIterationEvent)1 AbstractTestElement (org.apache.jmeter.testelement.AbstractTestElement)1 TestElement (org.apache.jmeter.testelement.TestElement)1 TestIterationListener (org.apache.jmeter.testelement.TestIterationListener)1