public class TestPlanStats extends Object
When using different samples, specify different names on them to be able to get each sampler specific statistics after they run.
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,StatsSummary> |
labeledStats |
protected StatsSummary |
overallStats |
protected Supplier<StatsSummary> |
statsSummaryBuilder |
| Constructor and Description |
|---|
TestPlanStats(Supplier<StatsSummary> statsSummaryBuilder) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSampleResult(org.apache.jmeter.samplers.SampleResult result) |
StatsSummary |
byLabel(String label)
Provides statistics for a specific label (usually a sampler label).
|
Duration |
duration()
Provides the time taken to run the test plan.
|
Set<String> |
labels()
Provides a set of collected labels (usually samplers labels).
|
StatsSummary |
overall()
Provides statistics for the entire test plan.
|
void |
setEnd(Instant end) |
void |
setStart(Instant start) |
protected final Supplier<StatsSummary> statsSummaryBuilder
protected StatsSummary overallStats
protected final Map<String,StatsSummary> labeledStats
public TestPlanStats(Supplier<StatsSummary> statsSummaryBuilder)
public void addSampleResult(org.apache.jmeter.samplers.SampleResult result)
public void setStart(Instant start)
public void setEnd(Instant end)
public Duration duration()
public StatsSummary overall()
public StatsSummary byLabel(String label)
Copyright © 2023. All rights reserved.