Class TestPlan
- All Implemented Interfaces:
- Serializable,- Cloneable,- Searchable,- org.apache.jmeter.testelement.TestElement,- TestStateListener
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.jmeter.testelement.TestElementorg.apache.jmeter.testelement.TestElement.Companion
- 
Field SummaryFields inherited from interface org.apache.jmeter.testelement.TestElementCOMMENTS, Companion, ENABLED, GUI_CLASS, NAME, TEST_CLASS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.AbstractTestElementaddPropertiesValues, 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.Objectfinalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jmeter.testelement.TestElementget, 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- 
TestPlanpublic TestPlan()
- 
TestPlan
 
- 
- 
Method Details- 
getSchemapublic org.apache.jmeter.testelement.TestPlanSchema getSchema()- Specified by:
- getSchemain interface- org.apache.jmeter.testelement.TestElement
 
- 
getPropspublic org.apache.jmeter.testelement.schema.PropertiesAccessor<? extends TestPlan,? extends org.apache.jmeter.testelement.TestPlanSchema> getProps()- Specified by:
- getPropsin interface- org.apache.jmeter.testelement.TestElement
 
- 
readResolve
- 
prepareForPreCompilepublic void prepareForPreCompile()
- 
isFunctionalModepublic boolean isFunctionalMode()Fetches the functional mode property- Returns:
- functional mode
 
- 
setUserDefinedVariables
- 
getUserDefinedVariablesAsProperty
- 
getBasedir
- 
setBasedir
- 
getArguments
- 
getUserDefinedVariables
- 
setFunctionalModepublic void setFunctionalMode(boolean funcMode) 
- 
getFunctionalModepublic static boolean getFunctionalMode()Gets the static copy of the functional mode- Returns:
- mode
 
- 
setSerializedpublic void setSerialized(boolean serializeTGs) 
- 
setTearDownOnShutdownpublic void setTearDownOnShutdown(boolean tearDown) 
- 
isTearDownOnShutdownpublic boolean isTearDownOnShutdown()
- 
setTestPlanClasspathSet 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
- 
getTestPlanClasspathReturns the classpath- Returns:
- classpath
 
- 
isSerializedpublic boolean isSerialized()Fetch the serialize threadgroups property- Returns:
- serialized setting
 
- 
addParameter
- 
addTestElementpublic void addTestElement(org.apache.jmeter.testelement.TestElement tg) Description copied from class:AbstractTestElement- Specified by:
- addTestElementin interface- org.apache.jmeter.testelement.TestElement
- Overrides:
- addTestElementin class- AbstractTestElement
 
- 
addThreadGroupAdds a feature to the AbstractThreadGroup attribute of the TestPlan object.- Parameters:
- group- the feature to be added to the AbstractThreadGroup attribute
 
- 
testEndedpublic 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 interface- TestStateListener
- See Also:
 
- 
testEndedCalled 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 interface- TestStateListener
- Parameters:
- host- name of host
- See Also:
 
- 
testStartedpublic 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 interface- TestStateListener
- See Also:
 
- 
testStartedCalled 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 interface- TestStateListener
- Parameters:
- host- name of host
- See Also:
 
 
-