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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameter(String name, String value) voidaddTestElement(org.apache.jmeter.testelement.TestElement tg) voidAdds a feature to the AbstractThreadGroup attribute of the TestPlan object.static booleanGets 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.TestPlanSchemaReturns the classpathString[]booleanFetches the functional mode propertybooleanFetch the serialize threadgroups propertybooleanvoidprotected ObjectvoidsetBasedir(String b) voidsetFunctionalMode(boolean funcMode) voidsetSerialized(boolean serializeTGs) voidsetTearDownOnShutdown(boolean tearDown) voidsetTestPlanClasspath(String text) Set the classpath for the test plan.voidsetTestPlanClasspathArray(String[] text) voidvoidCalled once for all threads after the end of a test.voidCalled once for all threads after the end of a test.voidCalled just before the start of the test from the main engine thread.voidtestStarted(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, traversePropertyMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
getSchemain interfaceorg.apache.jmeter.testelement.TestElement
-
getProps
public org.apache.jmeter.testelement.schema.PropertiesAccessor<? extends TestPlan,? extends org.apache.jmeter.testelement.TestPlanSchema> getProps()- Specified by:
getPropsin 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:
addTestElementin interfaceorg.apache.jmeter.testelement.TestElement- Overrides:
addTestElementin 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:
testEndedin 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:
testEndedin 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:
testStartedin 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:
testStartedin interfaceTestStateListener- Parameters:
host- name of host- See Also:
-