This release allows adding listeners like dashboardVisualizer
, htmlReporter
, etc, to existing test plans, like the ones loaded from a JMX, though the new children
method!
Here is an example:
import static us.abstracta.jmeter.javadsl.JmeterDsl.*;
import org.junit.jupiter.api.Test;
import us.abstracta.jmeter.javadsl.core.DslTestPlan;
public class TestPerformance {
@Test
public void test() throws Exception {
DslTestPlan.fromJmx("test.jmx")
.children(htmlReporter("report"))
.run();
}
}
Thanks to @BharadwajSamavedam for asking about this.