public abstract class BeanShellTestElement extends AbstractTestElement implements Serializable, Cloneable, ThreadListener, TestListener
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS| Constructor and Description |
|---|
BeanShellTestElement() |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
protected BeanShellInterpreter |
getBeanShellInterpreter()
Get the interpreter and set up standard script variables.
|
String |
getFilename() |
protected abstract String |
getInitFileProperty() |
String |
getParameters() |
String |
getScript()
Return the script (TestBean version).
|
boolean |
isResetInterpreter() |
protected Object |
processFileOrScript(BeanShellInterpreter bsh)
Process the file or script from the test element.
|
protected Object |
readResolve() |
void |
setFilename(String s) |
void |
setParameters(String s) |
void |
setResetInterpreter(boolean b) |
void |
setScript(String s)
Set the script (TestBean version).
|
void |
testEnded()
Called once for all threads after the end of a test.
|
void |
testEnded(String host)
Called once for all threads after the end of a test.
|
void |
testIterationStart(LoopIterationEvent event)
Each time through a Thread Group's test script, an iteration event is
fired for each thread.
|
void |
testStarted()
Called just before the start of the test from the main engine thread.
|
void |
testStarted(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.
|
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, traversePropertyprotected abstract String getInitFileProperty()
protected BeanShellInterpreter getBeanShellInterpreter()
Sets the following script variables:
protected Object readResolve()
public Object clone()
clone in interface TestElementclone in class AbstractTestElementprotected Object processFileOrScript(BeanShellInterpreter bsh) throws JMeterException
Sets the following script variables:
bsh - the interpreter, not nullnullJMeterExceptionpublic String getScript()
public void setScript(String s)
s - the script to execute (may be blank)public void threadStarted()
ThreadListenerthreadStarted in interface ThreadListenerJMeterThread.threadStarted()public void threadFinished()
ThreadListenerthreadFinished in interface ThreadListenerJMeterThread.threadFinished(LoopIterationListener)public void testEnded()
TestListenerCalled 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 TestListenerStandardJMeterEngine.stopTest()public void testEnded(String host)
TestListenerCalled 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 TestListenerhost - name of hostStandardJMeterEngine.stopTest()public void testIterationStart(LoopIterationEvent event)
TestListenertestIterationStart in interface TestListenerpublic void testStarted()
TestListenerCalled 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 TestListenerStandardJMeterEngine.run()public void testStarted(String host)
TestListenerCalled 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 TestListenerhost - name of hostStandardJMeterEngine.run()public String getParameters()
public void setParameters(String s)
public String getFilename()
public void setFilename(String s)
public boolean isResetInterpreter()
public void setResetInterpreter(boolean b)
Copyright © 1998-2012 Apache Software Foundation. All Rights Reserved.