https://bz.apache.org/bugzilla/show_bug.cgi?id=64968
Bug ID: 64968
Summary: Java API to implement test
Product: JMeter
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: Main
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: JMETER 5.4.1
Instead of creating test in JMX via GUI, would it be possible to implement and
execute test via Java?
Something like:
TestPlanStats stats = testPlan(
threadGroup(2, 10,
httpSampler("http://my.service")
.post("{\"name\": \"test\"}", Type.APPLICATION_JSON)
),
//this is just to log details of each request stats
jtlWriter("test" + Instant.now() + ".jtl")
).run();
assertThat(stats.overall().elapsedTimePercentile99()).isLessThan(Duration.ofSeconds(5));
--
You are receiving this mail because:
You are the assignee for the bug.