public class DslDebugPostProcessor extends BaseTestElement implements DslPostProcessor
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
resultsTreeVisualizeror
jtlWritersaving sub results and response bodies in xml format, avoiding stopping in each thread break point and avoid affecting the performance test metrics.
| Modifier and Type | Class and Description |
|---|---|
static class |
DslDebugPostProcessor.CodeBuilder |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
includeJmeterProperties |
protected boolean |
includeSamplerProperties |
protected boolean |
includeSystemProperties |
protected boolean |
includeVariables |
guiClass, name| Constructor and Description |
|---|
DslDebugPostProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.jmeter.testelement.TestElement |
buildTestElement() |
DslDebugPostProcessor |
jmeterProperties()
Specifies to include JMeter properties (test plan parameters, or info shared by threads) in sub
sample response body.
|
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.
|
DslDebugPostProcessor |
jmeterVariables(boolean include)
Specifies if JMeter variables should or not be included in sub sample response body.
|
DslDebugPostProcessor |
samplerProperties()
Specifies to include parent sampler properties (parameters of the sampler) in sub sample
response body.
|
DslDebugPostProcessor |
samplerProperties(boolean include)
Specifies if parent sampler properties (parameters of the sampler) should or not be included in
sub sample response body.
|
DslDebugPostProcessor |
systemProperties()
Specifies to include system properties (JVM parameters and properties) in sub sample response
body.
|
DslDebugPostProcessor |
systemProperties(boolean include)
Specifies if system properties (JVM parameters and properties) should or not be included in sub
sample response body.
|
buildConfiguredTestElement, buildTestElementGui, buildTreeUnder, configureTestElement, durationToSeconds, loadBeanProperties, showAndWaitFrameWith, showFrameWith, showInGui, showTestElementGuiclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildTreeUnder, showInGuiprotected boolean includeSamplerProperties
protected boolean includeVariables
protected boolean includeJmeterProperties
protected boolean includeSystemProperties
public DslDebugPostProcessor jmeterVariables(boolean include)
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.
include - if true, JMeter variables will be included in sub sample response body,
otherwise they won't. By default, jmeter variables are included.public DslDebugPostProcessor samplerProperties()
This is just a shorter way to enable samplerProperties(boolean).
samplerProperties(boolean)public DslDebugPostProcessor samplerProperties(boolean include)
This method is useful when you want to review some dynamic sampler property.
include - if true, sampler properties will be included in sub sample response body,
otherwise they won't. By default, sampler properties are not included.public DslDebugPostProcessor jmeterProperties()
This is just a shorter way to enable jmeterProperties(boolean).
jmeterProperties(boolean)public DslDebugPostProcessor jmeterProperties(boolean include)
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.
include - if true, JMeter properties will be included in sub sample response body,
otherwise they won't. By default, JMeter properties are not included.public DslDebugPostProcessor systemProperties()
This is just a shorter way to enable systemProperties(boolean).
systemProperties(boolean)public DslDebugPostProcessor systemProperties(boolean include)
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
include - if true, system properties will be included in sub sample response body,
otherwise they won't. By default, system properties are not included.protected org.apache.jmeter.testelement.TestElement buildTestElement()
buildTestElement in class BaseTestElementCopyright © 2024. All rights reserved.