public abstract class BeanShellTestElement extends AbstractTestElement implements java.io.Serializable, java.lang.Cloneable, ThreadListener, TestStateListener
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor and Description |
---|
BeanShellTestElement() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
protected BeanShellInterpreter |
getBeanShellInterpreter()
Get the interpreter and set up standard script variables.
|
java.lang.String |
getFilename() |
protected abstract java.lang.String |
getInitFileProperty() |
java.lang.String |
getParameters() |
java.lang.String |
getScript()
Return the script (TestBean version).
|
boolean |
isResetInterpreter() |
protected java.lang.Object |
processFileOrScript(BeanShellInterpreter bsh)
Process the file or script from the test element.
|
protected java.lang.Object |
readResolve() |
void |
setFilename(java.lang.String s) |
void |
setParameters(java.lang.String s) |
void |
setResetInterpreter(boolean b) |
void |
setScript(java.lang.String s)
Set the script (TestBean version).
|
void |
testEnded()
Called once for all threads after the end of a test.
|
void |
testEnded(java.lang.String host)
Called once for all threads after the end of a test.
|
void |
testStarted()
Called just before the start of the test from the main engine thread.
|
void |
testStarted(java.lang.String host)
Called just before the start of the test from the main engine thread.
|
void |
threadFinished()
Called for each thread after all samples have been processed.
|
void |
threadStarted()
Called for each thread before starting sampling.
|
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
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
removed
protected abstract java.lang.String getInitFileProperty()
protected BeanShellInterpreter getBeanShellInterpreter()
Sets the following script variables:
protected java.lang.Object readResolve()
public java.lang.Object clone()
clone
in interface TestElement
clone
in class AbstractTestElement
protected java.lang.Object processFileOrScript(BeanShellInterpreter bsh) throws JMeterException
Sets the following script variables:
bsh
- the interpreter, not null
null
JMeterException
- when working with the bsh failspublic java.lang.String getScript()
public void setScript(java.lang.String s)
s
- the script to execute (may be blank)public void threadStarted()
ThreadListener
threadStarted
in interface ThreadListener
public void threadFinished()
ThreadListener
threadFinished
in interface ThreadListener
public void testEnded()
TestStateListener
Called once for all threads after the end of a test. This will use the same element instances as at the start of the test.
N.B. testStarted() and testEnded() are called from different threads.
testEnded
in interface TestStateListener
StandardJMeterEngine.stopTest()
public void testEnded(java.lang.String host)
TestStateListener
Called once for all threads after the end of a test. This will use the same element instances as at the start of the test.
N.B. testStarted() and testEnded() are called from different threads.
testEnded
in interface TestStateListener
host
- name of hostStandardJMeterEngine.stopTest()
public void testStarted()
TestStateListener
Called just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point.
N.B. testStarted() and testEnded() are called from different threads.
testStarted
in interface TestStateListener
StandardJMeterEngine.run()
public void testStarted(java.lang.String host)
TestStateListener
Called just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point.
N.B. testStarted() and testEnded() are called from different threads.
testStarted
in interface TestStateListener
host
- name of hostStandardJMeterEngine.run()
public java.lang.String getParameters()
public void setParameters(java.lang.String s)
public java.lang.String getFilename()
public void setFilename(java.lang.String s)
public boolean isResetInterpreter()
public void setResetInterpreter(boolean b)
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.