Package us.abstracta.jmeter.javadsl.core
Class TestPlanStats
- java.lang.Object
-
- us.abstracta.jmeter.javadsl.core.TestPlanStats
-
public class TestPlanStats extends Object
Contains all statistics collected during the execution of a test plan.When using different samples, specify different names on them to be able to get each sampler specific statistics after they run.
- Since:
- 0.1
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,StatsSummary>labeledStatsprotected StatsSummaryoverallStatsprotected Supplier<StatsSummary>statsSummaryBuilder
-
Constructor Summary
Constructors Constructor Description TestPlanStats(Supplier<StatsSummary> statsSummaryBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSampleResult(org.apache.jmeter.samplers.SampleResult result)StatsSummarybyLabel(String label)Provides statistics for a specific label (usually a sampler label).Durationduration()Provides the time taken to run the test plan.Set<String>labels()Provides a set of collected labels (usually samplers labels).StatsSummaryoverall()Provides statistics for the entire test plan.voidsetEnd(Instant end)voidsetStart(Instant start)
-
-
-
Field Detail
-
statsSummaryBuilder
protected final Supplier<StatsSummary> statsSummaryBuilder
-
overallStats
protected StatsSummary overallStats
-
labeledStats
protected final Map<String,StatsSummary> labeledStats
-
-
Constructor Detail
-
TestPlanStats
public TestPlanStats(Supplier<StatsSummary> statsSummaryBuilder)
-
-
Method Detail
-
addSampleResult
public void addSampleResult(org.apache.jmeter.samplers.SampleResult result)
-
setStart
public void setStart(Instant start)
-
setEnd
public void setEnd(Instant end)
-
duration
public Duration duration()
Provides the time taken to run the test plan.
-
overall
public StatsSummary overall()
Provides statistics for the entire test plan.
-
byLabel
public StatsSummary byLabel(String label)
Provides statistics for a specific label (usually a sampler label).
-
-