org.apache.jmeter.testelement

Class TestPlan

Implemented Interfaces:
Cloneable, Serializable, TestElement, TestListener

public class TestPlan
extends AbstractTestElement
implements Serializable, TestListener

Fields inherited from interface org.apache.jmeter.testelement.TestElement

COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS

Constructor Summary

TestPlan()
TestPlan(String name)

Method Summary

void
addParameter(String name, String value)
void
addTestElement(TestElement tg)
void
addThreadGroup(ThreadGroup group)
Adds a feature to the ThreadGroup 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
getUserDefinedVariables()
JMeterProperty
getUserDefinedVariablesAsProperty()
boolean
isFunctionalMode()
Fetches the functional mode property
boolean
isSerialized()
Fetch the serialize threadgroups property
void
prepareForPreCompile()
void
setBasedir(String b)
void
setFunctionalMode(boolean funcMode)
void
setSerialized(boolean serializeTGs)
void
setTestPlanClasspath(String text)
Set the classpath for the test plan
void
setTestPlanClasspathArray(String[] text)
void
setUserDefinedVariables(Arguments vars)
void
testEnded()
void
testEnded(String host)
void
testIterationStart(LoopIterationEvent event)
void
testStarted()
void
testStarted(String host)

Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement

addProperty, addTestElement, canRemove, clear, clearTemporary, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty

Constructor Details

TestPlan

public TestPlan()

TestPlan

public TestPlan(String name)

Method Details

addParameter

public void addParameter(String name,
                         String value)

addTestElement

public void addTestElement(TestElement tg)
Specified by:
addTestElement in interface TestElement
Overrides:
addTestElement in interface AbstractTestElement

addThreadGroup

public void addThreadGroup(ThreadGroup group)
Adds a feature to the ThreadGroup attribute of the TestPlan object.
Parameters:
group - the feature to be added to the ThreadGroup attribute

getArguments

public Arguments getArguments()

getBasedir

public String getBasedir()

getFunctionalMode

public static boolean getFunctionalMode()
Gets the static copy of the functional mode
Returns:
mode

getTestPlanClasspath

public String getTestPlanClasspath()
Returns the classpath
Returns:
classpath

getTestPlanClasspathArray

public String[] getTestPlanClasspathArray()

getUserDefinedVariables

public Map getUserDefinedVariables()

getUserDefinedVariablesAsProperty

public JMeterProperty getUserDefinedVariablesAsProperty()

isFunctionalMode

public boolean isFunctionalMode()
Fetches the functional mode property
Returns:
functional mode

isSerialized

public boolean isSerialized()
Fetch the serialize threadgroups property
Returns:
serialized setting

prepareForPreCompile

public void prepareForPreCompile()

setBasedir

public void setBasedir(String b)

setFunctionalMode

public void setFunctionalMode(boolean funcMode)

setSerialized

public void setSerialized(boolean serializeTGs)

setTestPlanClasspath

public void setTestPlanClasspath(String text)
Set the classpath for the test plan
Parameters:
text -

setTestPlanClasspathArray

public void setTestPlanClasspathArray(String[] text)

setUserDefinedVariables

public void setUserDefinedVariables(Arguments vars)

testEnded

public void testEnded()
Specified by:
testEnded in interface TestListener

testEnded

public void testEnded(String host)
Specified by:
testEnded in interface TestListener

testIterationStart

public void testIterationStart(LoopIterationEvent event)
Specified by:
testIterationStart in interface TestListener

testStarted

public void testStarted()
Specified by:
testStarted in interface TestListener

testStarted

public void testStarted(String host)
Specified by:
testStarted in interface TestListener

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.