Serializable
, Cloneable
, ConfigMergabilityIndicator
, Searchable
, Interruptible
, Sampler
, TestElement
, TestStateListener
, ThreadListener
public class BeanShellSampler extends BeanShellTestElement implements Sampler, Interruptible, ConfigMergabilityIndicator
Modifier and Type | Field | Description |
---|---|---|
static String |
FILENAME |
|
static String |
INIT_FILE |
|
static String |
PARAMETERS |
|
static String |
RESET_INTERPRETER |
|
static String |
SCRIPT |
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor | Description |
---|---|
BeanShellSampler() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
applies(ConfigTestElement configElement) |
Does configElement apply to Sampler
|
String |
getFilename() |
|
protected String |
getInitFileProperty() |
|
String |
getParameters() |
|
String |
getScript() |
Return the script (TestBean version).
|
boolean |
interrupt() |
Interrupt the current operation if possible.
|
boolean |
isResetInterpreter() |
|
SampleResult |
sample(Entry e) |
Obtains statistics about the given Entry, and packages the information
into a SampleResult.
|
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty
clone, getBeanShellInterpreter, processFileOrScript, readResolve, setFilename, setParameters, setResetInterpreter, setScript, testEnded, testEnded, testStarted, testStarted, threadFinished, threadStarted
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addTestElement, canRemove, clear, clearTestElementChildren, clone, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse
public static final String FILENAME
public static final String SCRIPT
public static final String PARAMETERS
public static final String INIT_FILE
public static final String RESET_INTERPRETER
protected String getInitFileProperty()
getInitFileProperty
in class BeanShellTestElement
public String getScript()
BeanShellTestElement
getScript
in class BeanShellTestElement
public String getFilename()
getFilename
in class BeanShellTestElement
public String getParameters()
getParameters
in class BeanShellTestElement
public boolean isResetInterpreter()
isResetInterpreter
in class BeanShellTestElement
public SampleResult sample(Entry e)
Sampler
public boolean interrupt()
Interruptible
interrupt
in interface Interruptible
true
if there was an operation to interrupt.public boolean applies(ConfigTestElement configElement)
ConfigMergabilityIndicator
applies
in interface ConfigMergabilityIndicator
configElement
- ConfigTestElement
AbstractSampler.applies(org.apache.jmeter.config.ConfigTestElement)
Copyright © 1998-2018 Apache Software Foundation. All Rights Reserved.