org.apache.jmeter.protocol.java.sampler
public class BeanShellSampler extends BeanShellTestElement implements Sampler, Interruptible
Modifier and Type | Field and 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 and Description |
---|
BeanShellSampler() |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, getBeanShellInterpreter, processFileOrScript, readResolve, setFilename, setParameters, setResetInterpreter, setScript, testEnded, testEnded, testIterationStart, testStarted, testStarted, threadFinished, threadStarted
addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty
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, setName, 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.Copyright © 1998-2014 Apache Software Foundation. All Rights Reserved.