Class DslDebugPostProcessor
- java.lang.Object
-
- us.abstracta.jmeter.javadsl.core.testelements.BaseTestElement
-
- us.abstracta.jmeter.javadsl.core.postprocessors.DslDebugPostProcessor
-
- All Implemented Interfaces:
DslTestElement,DslTestPlan.TestPlanChild,DslPostProcessor,BaseSampler.SamplerChild,MultiLevelTestElement,BaseThreadGroup.ThreadGroupChild
public class DslDebugPostProcessor extends BaseTestElement implements DslPostProcessor
Adds a sub result to a given sampler result, including jmeter variables, jmeter properties, etc., which are handy when debugging test plans.This element is particularly helpful when debugging extractors, since it allows checking generated JMeter variables.
This element by default will only include JMeter variables in sub sample response body, which differs from JMeter default configuration, since is the most used scenario and avoids unnecessary memory or disk usage.
In general use IDE debugger in first steps of debugging a test plan using a thread group configuration with only 1 thread. If you need to get more information on a test plan with multiple threads during or after test plan execution, then use this element, in combination with
resultsTreeVisualizer
orjtlWriter
saving sub results and response bodies in xml format, avoiding stopping in each thread break point and avoid affecting the performance test metrics.- Since:
- 0.47
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDslDebugPostProcessor.CodeBuilder
-
Field Summary
Fields Modifier and Type Field Description protected booleanincludeJmeterPropertiesprotected booleanincludeSamplerPropertiesprotected booleanincludeSystemPropertiesprotected booleanincludeVariables-
Fields inherited from class us.abstracta.jmeter.javadsl.core.testelements.BaseTestElement
guiClass, name
-
-
Constructor Summary
Constructors Constructor Description DslDebugPostProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.jmeter.testelement.TestElementbuildTestElement()DslDebugPostProcessorjmeterProperties()Specifies to include JMeter properties (test plan parameters, or info shared by threads) in sub sample response body.DslDebugPostProcessorjmeterProperties(boolean include)Specifies if JMeter properties (test plan parameters, or info shared by threads) should or not be included in sub sample response body.DslDebugPostProcessorjmeterVariables(boolean include)Specifies if JMeter variables should or not be included in sub sample response body.DslDebugPostProcessorsamplerProperties()Specifies to include parent sampler properties (parameters of the sampler) in sub sample response body.DslDebugPostProcessorsamplerProperties(boolean include)Specifies if parent sampler properties (parameters of the sampler) should or not be included in sub sample response body.DslDebugPostProcessorsystemProperties()Specifies to include system properties (JVM parameters and properties) in sub sample response body.DslDebugPostProcessorsystemProperties(boolean include)Specifies if system properties (JVM parameters and properties) should or not be included in sub sample response body.-
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
-
-
-
-
Method Detail
-
jmeterVariables
public DslDebugPostProcessor jmeterVariables(boolean include)
Specifies if JMeter variables should or not be included in sub sample response body.This method is useful when you want to disable inclusion of JMeter variables and enable some other info instead (like JMeter properties) and keep memory and disk usage to the minimum. Another scenario might be to dynamically include them or not according to some test plan parameter.
- Parameters:
include- if true, JMeter variables will be included in sub sample response body, otherwise they won't. By default, jmeter variables are included.- Returns:
- the debug post processor for further configuration or usage.
-
samplerProperties
public DslDebugPostProcessor samplerProperties()
Specifies to include parent sampler properties (parameters of the sampler) in sub sample response body.This is just a shorter way to enable
samplerProperties(boolean).- Returns:
- the post processor for further configuration or usage.
- Since:
- 1.0
- See Also:
samplerProperties(boolean)
-
samplerProperties
public DslDebugPostProcessor samplerProperties(boolean include)
Specifies if parent sampler properties (parameters of the sampler) should or not be included in sub sample response body.This method is useful when you want to review some dynamic sampler property.
- Parameters:
include- if true, sampler properties will be included in sub sample response body, otherwise they won't. By default, sampler properties are not included.- Returns:
- the post processor for further configuration or usage.
-
jmeterProperties
public DslDebugPostProcessor jmeterProperties()
Specifies to include JMeter properties (test plan parameters, or info shared by threads) in sub sample response body.This is just a shorter way to enable
jmeterProperties(boolean).- Returns:
- the post processor for further configuration or usage.
- Since:
- 1.0
- See Also:
jmeterProperties(boolean)
-
jmeterProperties
public DslDebugPostProcessor jmeterProperties(boolean include)
Specifies if JMeter properties (test plan parameters, or info shared by threads) should or not be included in sub sample response body.This method is useful when you want to review some test plan parameter provided through JMeter property, or when you want to review some property shared and modified by test plan threads.
- Parameters:
include- if true, JMeter properties will be included in sub sample response body, otherwise they won't. By default, JMeter properties are not included.- Returns:
- the post processor for further configuration or usage.
-
systemProperties
public DslDebugPostProcessor systemProperties()
Specifies to include system properties (JVM parameters and properties) in sub sample response body.This is just a shorter way to enable
systemProperties(boolean).- Returns:
- the post processor for further configuration or usage.
- Since:
- 1.0
- See Also:
systemProperties(boolean)
-
systemProperties
public DslDebugPostProcessor systemProperties(boolean include)
Specifies if system properties (JVM parameters and properties) should or not be included in sub sample response body.This method is useful when you want to review some JVM parameter or property while executing the test plan. In general, since system properties are not usually modified on runtime, it is recommended to only enable this in a sampler that only runs once in a test plan (not inside thread groups with multiple iterations), to avoid unnecessary memory or disk usage
- Parameters:
include- if true, system properties will be included in sub sample response body, otherwise they won't. By default, system properties are not included.- Returns:
- the post processor for further configuration or usage.
-
buildTestElement
protected org.apache.jmeter.testelement.TestElement buildTestElement()
- Specified by:
buildTestElementin classBaseTestElement
-
-