public class TestPlan extends AbstractTestElement implements Serializable, TestStateListener
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Modifier and Type | Method and Description |
---|---|
void |
addParameter(String name,
String value) |
void |
addTestElement(TestElement tg) |
void |
addThreadGroup(AbstractThreadGroup group)
Adds a feature to the AbstractThreadGroup attribute of the TestPlan object.
|
Arguments |
getArguments() |
String |
getBasedir() |
static boolean |
getFunctionalMode()
Gets the static copy of the functional mode
|
String |
getTestPlanClasspath()
Returns the classpath
|
String[] |
getTestPlanClasspathArray() |
Map<String,String> |
getUserDefinedVariables() |
JMeterProperty |
getUserDefinedVariablesAsProperty() |
boolean |
isFunctionalMode()
Fetches the functional mode property
|
boolean |
isSerialized()
Fetch the serialize threadgroups property
|
boolean |
isTearDownOnShutdown() |
void |
prepareForPreCompile() |
protected Object |
readResolve() |
void |
setBasedir(String b) |
void |
setFunctionalMode(boolean funcMode) |
void |
setSerialized(boolean serializeTGs) |
void |
setTearDownOnShutdown(boolean tearDown) |
void |
setTestPlanClasspath(String text)
Set the classpath for the test plan.
|
void |
setTestPlanClasspathArray(String[] text) |
void |
setUserDefinedVariables(Arguments vars) |
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 |
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.
|
addPropertiesValues, addProperty, addProperty, canRemove, clear, clearTemporary, clearTestElementChildren, clone, 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
public TestPlan()
public TestPlan(String name)
protected Object readResolve()
public void prepareForPreCompile()
public boolean isFunctionalMode()
public void setUserDefinedVariables(Arguments vars)
public JMeterProperty getUserDefinedVariablesAsProperty()
public String getBasedir()
public void setBasedir(String b)
public Arguments getArguments()
public void setFunctionalMode(boolean funcMode)
public static boolean getFunctionalMode()
public void setSerialized(boolean serializeTGs)
public void setTearDownOnShutdown(boolean tearDown)
public boolean isTearDownOnShutdown()
public void setTestPlanClasspath(String text)
CLASSPATH_SEPARATOR
.text
- the classpath to be setpublic void setTestPlanClasspathArray(String[] text)
public String[] getTestPlanClasspathArray()
public String getTestPlanClasspath()
public boolean isSerialized()
public void addTestElement(TestElement tg)
AbstractTestElement
addTestElement
in interface TestElement
addTestElement
in class AbstractTestElement
public void addThreadGroup(AbstractThreadGroup group)
group
- the feature to be added to the AbstractThreadGroup attributepublic void testEnded()
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(String host)
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()
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(String host)
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()
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.