Class BeanShellSampler
-
- All Implemented Interfaces:
-
java.io.Serializable
,java.lang.Cloneable
,org.apache.jmeter.engine.util.ConfigMergabilityIndicator
,org.apache.jmeter.gui.Searchable
,org.apache.jmeter.samplers.Interruptible
,org.apache.jmeter.samplers.Sampler
,org.apache.jmeter.testelement.TestElement
,org.apache.jmeter.testelement.TestStateListener
,org.apache.jmeter.testelement.ThreadListener
public class BeanShellSampler extends BeanShellTestElement implements Sampler, Interruptible, ConfigMergabilityIndicator
A sampler which understands BeanShell
-
-
Field Summary
Fields Modifier and Type Field Description public final static String
FILENAME
public final static String
SCRIPT
public final static String
PARAMETERS
public final static String
INIT_FILE
public final static String
RESET_INTERPRETER
public String
parameters
public String
filename
public String
script
public transient JMeterContext
threadContext
public transient String
threadName
public final static TestElement.Companion
Companion
public final static String
NAME
public final static String
GUI_CLASS
public final static String
ENABLED
public final static String
TEST_CLASS
public final static String
COMMENTS
-
Constructor Summary
Constructors Constructor Description BeanShellSampler()
-
Method Summary
Modifier and Type Method Description BeanShellSamplerSchema
getSchema()
PropertiesAccessor<out BeanShellSampler, out BeanShellSamplerSchema>
getProps()
String
getScript()
String
getFilename()
String
getParameters()
boolean
isResetInterpreter()
SampleResult
sample(Entry e)
boolean
interrupt()
boolean
applies(ConfigTestElement configElement)
-
Methods inherited from class org.apache.jmeter.util.BeanShellTestElement
clone, getFilename, getParameters, getScript, setFilename, setParameters, setResetInterpreter, setScript, testEnded, testStarted, threadFinished, threadStarted
-
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addTestElement, canRemove, clear, clearTestElementChildren, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyOrNull, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse
-
Methods inherited from class org.apache.jmeter.testelement.TestElement
get, get, get, get, get, get, get, get, get, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getString, removed, set
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getSchema
BeanShellSamplerSchema getSchema()
-
getProps
PropertiesAccessor<out BeanShellSampler, out BeanShellSamplerSchema> getProps()
-
getFilename
String getFilename()
-
getParameters
String getParameters()
-
isResetInterpreter
boolean isResetInterpreter()
-
sample
SampleResult sample(Entry e)
-
interrupt
boolean interrupt()
-
applies
boolean applies(ConfigTestElement configElement)
-
-
-
-