Class TestPlan
- All Implemented Interfaces:
Serializable, Cloneable, Searchable, TestElement, TestStateListener
- See Also:
-
Field Summary
Fields inherited from interface TestElement
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameter(String name, String value) voidvoidAdds a feature to the AbstractThreadGroup attribute of the TestPlan object.static booleanGets the static copy of the functional modeReturns the classpathString[]booleanFetches the functional mode propertybooleanFetch the serialize threadgroups propertybooleanvoidvoidsetBasedir(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 AbstractTestElement
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
-
Constructor Details
-
TestPlan
public TestPlan() -
TestPlan
-
-
Method Details
-
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
-
isSerialized
public boolean isSerialized()Fetch the serialize threadgroups property- Returns:
- serialized setting
-
addParameter
-
addTestElement
Description copied from class:AbstractTestElement- Specified by:
addTestElementin interfaceTestElement- 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:
-