Class TestPlan
- All Implemented Interfaces:
Serializable
,Cloneable
,Searchable
,org.apache.jmeter.testelement.TestElement
,TestStateListener
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jmeter.testelement.TestElement
org.apache.jmeter.testelement.TestElement.Companion
-
Field Summary
Fields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTS, Companion, ENABLED, GUI_CLASS, NAME, TEST_CLASS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addParameter
(String name, String value) void
addTestElement
(org.apache.jmeter.testelement.TestElement tg) void
Adds a feature to the AbstractThreadGroup attribute of the TestPlan object.static boolean
Gets the static copy of the functional modeorg.apache.jmeter.testelement.schema.PropertiesAccessor<? extends TestPlan,
? extends org.apache.jmeter.testelement.TestPlanSchema> getProps()
org.apache.jmeter.testelement.TestPlanSchema
Returns the classpathString[]
boolean
Fetches the functional mode propertyboolean
Fetch the serialize threadgroups propertyboolean
void
protected Object
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
void
Called once for all threads after the end of a test.void
Called once for all threads after the end of a test.void
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.Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addPropertiesValues, addProperty, addProperty, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getPropertyOrNull, 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
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.jmeter.testelement.TestElement
get, get, get, get, get, get, get, get, get, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getPropertyOrNull, getString, removed, removeProperty, set, set, set, set, set, set, set, set, set
-
Constructor Details
-
TestPlan
public TestPlan() -
TestPlan
-
-
Method Details
-
getSchema
public org.apache.jmeter.testelement.TestPlanSchema getSchema()- Specified by:
getSchema
in interfaceorg.apache.jmeter.testelement.TestElement
-
getProps
public org.apache.jmeter.testelement.schema.PropertiesAccessor<? extends TestPlan,? extends org.apache.jmeter.testelement.TestPlanSchema> getProps()- Specified by:
getProps
in interfaceorg.apache.jmeter.testelement.TestElement
-
readResolve
-
prepareForPreCompile
public void prepareForPreCompile() -
isFunctionalMode
public boolean isFunctionalMode()Fetches the functional mode property- Returns:
- functional mode
-
setUserDefinedVariables
-
getUserDefinedVariablesAsProperty
-
getBasedir
-
setBasedir
-
getArguments
-
getUserDefinedVariables
-
setFunctionalMode
public void setFunctionalMode(boolean funcMode) -
getFunctionalMode
public static boolean getFunctionalMode()Gets the static copy of the functional mode- Returns:
- mode
-
setSerialized
public void setSerialized(boolean serializeTGs) -
setTearDownOnShutdown
public void setTearDownOnShutdown(boolean tearDown) -
isTearDownOnShutdown
public boolean isTearDownOnShutdown() -
setTestPlanClasspath
Set the classpath for the test plan. If the classpath is made up from more then one path, the parts must be separated withCLASSPATH_SEPARATOR
.- Parameters:
text
- the classpath to be set
-
setTestPlanClasspathArray
-
getTestPlanClasspathArray
-
getTestPlanClasspath
Returns the classpath- Returns:
- classpath
-
isSerialized
public boolean isSerialized()Fetch the serialize threadgroups property- Returns:
- serialized setting
-
addParameter
-
addTestElement
public void addTestElement(org.apache.jmeter.testelement.TestElement tg) Description copied from class:AbstractTestElement
- Specified by:
addTestElement
in interfaceorg.apache.jmeter.testelement.TestElement
- Overrides:
addTestElement
in classAbstractTestElement
-
addThreadGroup
Adds a feature to the AbstractThreadGroup attribute of the TestPlan object.- Parameters:
group
- the feature to be added to the AbstractThreadGroup attribute
-
testEnded
public 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.
- Specified by:
testEnded
in interfaceTestStateListener
- See Also:
-
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.
- Specified by:
testEnded
in interfaceTestStateListener
- Parameters:
host
- name of host- See Also:
-
testStarted
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.
- Specified by:
testStarted
in interfaceTestStateListener
- See Also:
-
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.
- Specified by:
testStarted
in interfaceTestStateListener
- Parameters:
host
- name of host- See Also:
-