github abstracta/jmeter-java-dsl v0.32
0.32

latest releases: v1.29.1, v1.29, v1.28.1...
3 years ago

Now is possible to add custom tags to InxfluxDB listener metrics. Eg:

import static org.assertj.core.api.Assertions.assertThat;
import static us.abstracta.jmeter.javadsl.JmeterDsl.*;

import java.io.IOException;
import java.time.Duration;
import org.junit.jupiter.api.Test;
import us.abstracta.jmeter.javadsl.core.TestPlanStats;

public class PerformanceTest {

  @Test
  public void testPerformance() throws IOException {
    TestPlanStats stats = testPlan(
      threadGroup(2, 10,
        httpSampler("http://my.service")
      ),
      influxDbListener("http://localhost:8086/write?db=jmeter")
        .tag("myTag", "myVal")
    ).run();
    assertThat(stats.overall().sampleTimePercentile99()).isLessThan(Duration.ofSeconds(5));
  }
  
}

Don't miss a new jmeter-java-dsl release

NewReleases is sending notifications on new releases.