Package org.apache.jmeter.functions
Class Groovy
java.lang.Object
org.apache.jmeter.functions.AbstractFunction
org.apache.jmeter.functions.Groovy
- All Implemented Interfaces:
org.apache.jmeter.functions.Function
@AutoService(org.apache.jmeter.functions.Function.class)
public class Groovy
extends org.apache.jmeter.functions.AbstractFunction
__groovy function
Provides a Groovy interpreter
- Since:
- 3.1
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(org.apache.jmeter.samplers.SampleResult previousResult, org.apache.jmeter.samplers.Sampler currentSampler) protected voidpopulateBindings(Bindings bindings) Populate variables to be passed to scriptsvoidsetParameters(Collection<org.apache.jmeter.engine.util.CompoundVariable> parameters) Methods inherited from class org.apache.jmeter.functions.AbstractFunction
addVariableValue, checkMinParameterCount, checkParameterCount, checkParameterCount, execute, getVariables
-
Field Details
-
INIT_FILE
- See Also:
-
-
Constructor Details
-
Groovy
public Groovy()
-
-
Method Details
-
populateBindings
Populate variables to be passed to scripts- Parameters:
bindings- Bindings
-
execute
public String execute(org.apache.jmeter.samplers.SampleResult previousResult, org.apache.jmeter.samplers.Sampler currentSampler) throws org.apache.jmeter.functions.InvalidVariableException - Specified by:
executein interfaceorg.apache.jmeter.functions.Function- Specified by:
executein classorg.apache.jmeter.functions.AbstractFunction- Throws:
org.apache.jmeter.functions.InvalidVariableException
-
setParameters
public void setParameters(Collection<org.apache.jmeter.engine.util.CompoundVariable> parameters) throws org.apache.jmeter.functions.InvalidVariableException - Specified by:
setParametersin interfaceorg.apache.jmeter.functions.Function- Specified by:
setParametersin classorg.apache.jmeter.functions.AbstractFunction- Throws:
org.apache.jmeter.functions.InvalidVariableException
-
getReferenceKey
- Specified by:
getReferenceKeyin interfaceorg.apache.jmeter.functions.Function- Specified by:
getReferenceKeyin classorg.apache.jmeter.functions.AbstractFunction
-
getArgumentDesc
-