Class DslJsr223PostProcessor
- java.lang.Object
-
- us.abstracta.jmeter.javadsl.core.testelements.BaseTestElement
-
- us.abstracta.jmeter.javadsl.core.testelements.DslJsr223TestElement<DslJsr223PostProcessor,DslJsr223PostProcessor.PostProcessorVars>
-
- us.abstracta.jmeter.javadsl.core.postprocessors.DslJsr223PostProcessor
-
- All Implemented Interfaces:
DslTestElement,DslTestPlan.TestPlanChild,DslPostProcessor,BaseSampler.SamplerChild,MultiLevelTestElement,BaseThreadGroup.ThreadGroupChild
public class DslJsr223PostProcessor extends DslJsr223TestElement<DslJsr223PostProcessor,DslJsr223PostProcessor.PostProcessorVars> implements DslPostProcessor
Allows running custom logic after getting a sample result.This is a very powerful and flexible component that allows you to modify sample results (like changing the flag if is success or not), jmeter variables, context settings, etc.
By default, provided script will be interpreted as groovy script, which is the default setting for JMeter. If you need, you can use any of JMeter provided scripting languages (beanshell, javascript, jexl, etc.) by setting the
DslJsr223TestElement.language(String)property.- Since:
- 0.6
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDslJsr223PostProcessor.CodeBuilderstatic classDslJsr223PostProcessor.DslLambdaPostProcessorstatic interfaceDslJsr223PostProcessor.PostProcessorScriptAllows to use any java code as script.static classDslJsr223PostProcessor.PostProcessorVars-
Nested classes/interfaces inherited from class us.abstracta.jmeter.javadsl.core.testelements.DslJsr223TestElement
DslJsr223TestElement.Jsr223DslLambdaTestElement<V extends DslJsr223TestElement.Jsr223ScriptVars>, DslJsr223TestElement.Jsr223Script<V extends DslJsr223TestElement.Jsr223ScriptVars>, DslJsr223TestElement.Jsr223ScriptVars, DslJsr223TestElement.Jsr223TestElementCallBuilder<T extends org.apache.jmeter.testelement.TestElement>
-
-
Field Summary
-
Fields inherited from class us.abstracta.jmeter.javadsl.core.testelements.DslJsr223TestElement
DEFAULT_LANGUAGE, language, script, scriptClass, scriptString
-
Fields inherited from class us.abstracta.jmeter.javadsl.core.testelements.BaseTestElement
guiClass, name
-
-
Constructor Summary
Constructors Constructor Description DslJsr223PostProcessor(String name, Class<? extends DslJsr223PostProcessor.PostProcessorScript> scriptClass)DslJsr223PostProcessor(String name, String script)DslJsr223PostProcessor(String name, DslJsr223PostProcessor.PostProcessorScript script)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.jmeter.util.JSR223TestElementbuildJsr223TestElement()protected DslJsr223PostProcessor.DslLambdaPostProcessorbuildLambdaTestElement()-
Methods inherited from class us.abstracta.jmeter.javadsl.core.testelements.DslJsr223TestElement
buildTestElement, language
-
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
-
-
-
-
Constructor Detail
-
DslJsr223PostProcessor
public DslJsr223PostProcessor(String name, DslJsr223PostProcessor.PostProcessorScript script)
-
DslJsr223PostProcessor
public DslJsr223PostProcessor(String name, Class<? extends DslJsr223PostProcessor.PostProcessorScript> scriptClass)
-
-
Method Detail
-
buildJsr223TestElement
protected org.apache.jmeter.util.JSR223TestElement buildJsr223TestElement()
- Specified by:
buildJsr223TestElementin classDslJsr223TestElement<DslJsr223PostProcessor,DslJsr223PostProcessor.PostProcessorVars>
-
buildLambdaTestElement
protected DslJsr223PostProcessor.DslLambdaPostProcessor buildLambdaTestElement()
- Specified by:
buildLambdaTestElementin classDslJsr223TestElement<DslJsr223PostProcessor,DslJsr223PostProcessor.PostProcessorVars>
-
-