Class DslViewResultsTree
- java.lang.Object
-
- us.abstracta.jmeter.javadsl.core.testelements.BaseTestElement
-
- us.abstracta.jmeter.javadsl.core.listeners.BaseListener
-
- us.abstracta.jmeter.javadsl.core.listeners.DslVisualizer
-
- us.abstracta.jmeter.javadsl.core.listeners.DslViewResultsTree
-
- All Implemented Interfaces:
DslTestElement,DslTestPlan.TestPlanChild,DslListener,BaseSampler.SamplerChild,MultiLevelTestElement,BaseThreadGroup.ThreadGroupChild
public class DslViewResultsTree extends DslVisualizer
Shows a popup window including live results tree using JMeter built-in View Results Tree element.If resultsTreeVisualizer is added at testPlan level it will show information about all samples in the test plan, if added at thread group level it will only show samples for samplers contained within it, if added as a sampler child, then only that sampler samples will be shown.
- Since:
- 0.19
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDslViewResultsTree.CodeBuilder
-
Field Summary
Fields Modifier and Type Field Description protected intresultsLimit-
Fields inherited from class us.abstracta.jmeter.javadsl.core.testelements.BaseTestElement
guiClass, name
-
-
Constructor Summary
Constructors Constructor Description DslViewResultsTree()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.jmeter.testelement.TestElementbuildTestElement()org.apache.jorphan.collections.HashTreebuildTreeUnder(org.apache.jorphan.collections.HashTree parent, BuildTreeContext context)Builds the JMeter HashTree for this TestElement under the provided tree node.DslViewResultsTreeresultsLimit(int resultsLimit)Specifies the maximum number of sample results to show.-
Methods inherited from class us.abstracta.jmeter.javadsl.core.listeners.DslVisualizer
logNonGuiExecutionWarning
-
Methods inherited from class us.abstracta.jmeter.javadsl.core.testelements.BaseTestElement
buildConfiguredTestElement, buildTestElementGui, 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
showInGui
-
-
-
-
Method Detail
-
resultsLimit
public DslViewResultsTree resultsLimit(int resultsLimit)
Specifies the maximum number of sample results to show.When the limit is reached, only latest sample results are shown.
Take into consideration that the greater the number of displayed results, the more system memory is required, which might cause an OutOfMemoryError depending on JVM settings.
- Parameters:
resultsLimit- the maximum number of sample results to show. When not set the default value is 500.- Returns:
- the visualizer for further configuration or usage.
-
buildTreeUnder
public org.apache.jorphan.collections.HashTree buildTreeUnder(org.apache.jorphan.collections.HashTree parent, BuildTreeContext context)Description copied from interface:DslTestElementBuilds the JMeter HashTree for this TestElement under the provided tree node.- Specified by:
buildTreeUnderin interfaceDslTestElement- Overrides:
buildTreeUnderin classDslVisualizer- Parameters:
parent- the node which will be the parent for the created tree.context- context information which contains information shared by elements while building the test plan tree (eg: adding additional items to test plan when a particular protocol element is added).- Returns:
- The tree created under the parent node.
-
buildTestElement
protected org.apache.jmeter.testelement.TestElement buildTestElement()
- Specified by:
buildTestElementin classBaseTestElement
-
-