Class HtmlReporter
- java.lang.Object
-
- us.abstracta.jmeter.javadsl.core.testelements.BaseTestElement
-
- us.abstracta.jmeter.javadsl.core.listeners.BaseListener
-
- us.abstracta.jmeter.javadsl.core.listeners.HtmlReporter
-
- All Implemented Interfaces:
DslTestElement,DslTestPlan.TestPlanChild,DslListener,BaseSampler.SamplerChild,MultiLevelTestElement,BaseThreadGroup.ThreadGroupChild
public class HtmlReporter extends BaseListener
Generates a nice HTML report at the end of test plan execution.- Since:
- 0.6
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHtmlReporter.ApdexThresholdsstatic classHtmlReporter.AutoFlushingResultCollector
-
Field Summary
Fields Modifier and Type Field Description protected HtmlReporter.ApdexThresholdsapdexThresholdsprotected Map<String,HtmlReporter.ApdexThresholds>labelApdexThresholdsprotected FilereportDirectory-
Fields inherited from class us.abstracta.jmeter.javadsl.core.testelements.BaseTestElement
guiClass, name
-
-
Constructor Summary
Constructors Constructor Description HtmlReporter(String reportsDirectoryPath, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HtmlReporterapdexThresholds(Duration satisfiedThreshold, Duration toleratedThreshold)Allows to configure general Apdex thresholds for all requests.org.apache.jmeter.testelement.TestElementbuildTestElement()HtmlReportertimeGraphsGranularity(Duration granularity)Allows specifying the granularity for time graphs.HtmlReportertransactionApdexThresholds(String sampleLabelRegex, Duration satisfiedThreshold, Duration toleratedThreshold)Allows to configure a particular sample label Apdex thresholds.-
Methods inherited from class us.abstracta.jmeter.javadsl.core.testelements.BaseTestElement
buildConfiguredTestElement, buildTestElementGui, buildTreeUnder, configureTestElement, durationToSeconds, loadBeanProperties, showAndWaitFrameWith, showFrameWith, showInGui, showTestElementGui
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface us.abstracta.jmeter.javadsl.core.DslTestElement
buildTreeUnder, showInGui
-
-
-
-
Field Detail
-
reportDirectory
protected File reportDirectory
-
apdexThresholds
protected final HtmlReporter.ApdexThresholds apdexThresholds
-
labelApdexThresholds
protected final Map<String,HtmlReporter.ApdexThresholds> labelApdexThresholds
-
-
Method Detail
-
timeGraphsGranularity
public HtmlReporter timeGraphsGranularity(Duration granularity)
Allows specifying the granularity for time graphs.This is handy if you need to get more or less detail presented in time graphs.
- Parameters:
granularity- specifies the granularity to be set. When not specified, the default value is 1 minute. Due to existing bug, set this value to a duration greater than 1 second to avoid issues with TPS graphs.- Returns:
- the HtmlReporter for further configuration and usage.
- Since:
- 1.9
-
apdexThresholds
public HtmlReporter apdexThresholds(Duration satisfiedThreshold, Duration toleratedThreshold)
Allows to configure general Apdex thresholds for all requests.Apdex allows to evaluate user satisfaction according to response times. You may find more about this here.
- Parameters:
satisfiedThreshold- specifies the satisfaction threshold. When not specified this value defaults to 1500.toleratedThreshold- specifies the tolerance threshold. When not specified this value defaults to 3000.- Returns:
- the HtmlReporter for further configuration and usage.
- Since:
- 0.59
-
transactionApdexThresholds
public HtmlReporter transactionApdexThresholds(String sampleLabelRegex, Duration satisfiedThreshold, Duration toleratedThreshold)
Allows to configure a particular sample label Apdex thresholds.You can use it to control the apdex thresholds for a set of samplers or transactions that share same label.
- Parameters:
sampleLabelRegex- regular expression used to match sample labels to apply the thresholds to.satisfiedThreshold- specifies the satisfaction threshold. When not specified, the general apdex thresholds for all requests are applied.toleratedThreshold- specifies the tolerance threshold. When not specified, the general apdex thresholds for all requests are applied.- Returns:
- the HtmlReporter for further configuration and usage.
- Since:
- 0.59
- See Also:
apdexThresholds(Duration, Duration)
-
buildTestElement
public org.apache.jmeter.testelement.TestElement buildTestElement()
- Specified by:
buildTestElementin classBaseTestElement
-
-