COMMENTS
public static final String COMMENTS
ENABLED
public static final String ENABLED
GUI_CLASS
public static final String GUI_CLASS
NAME
public static final String NAME
TEST_CLASS
public static final String TEST_CLASS
addTestElement
public void addTestElement(TestElement child)
canRemove
public boolean canRemove()
Called by Remove to determine if it is safe to remove the element. The
element can either clean itself up, and return true, or the element can
return false.
- true if safe to remove the element
clear
public void clear()
Clear the TestElement of all data.
clone
public Object clone()
getComment
public String getComment()
getName
public String getName()
getProperty
public JMeterProperty getProperty(String propName)
Given the name of the property, returns the appropriate property from
JMeter. If it is null, a NullProperty object will be returned.
getPropertyAsBoolean
public boolean getPropertyAsBoolean(String key)
Return a property as a boolean value.
getPropertyAsBoolean
public boolean getPropertyAsBoolean(String key,
boolean defaultValue)
getPropertyAsDouble
public double getPropertyAsDouble(String key)
getPropertyAsFloat
public float getPropertyAsFloat(String key)
getPropertyAsInt
public int getPropertyAsInt(String key)
getPropertyAsInt
public int getPropertyAsInt(String key,
int defaultValue)
getPropertyAsLong
public long getPropertyAsLong(String key)
getPropertyAsString
public String getPropertyAsString(String key)
getPropertyAsString
public String getPropertyAsString(String key,
String defaultValue)
getThreadContext
public JMeterContext getThreadContext()
- Returns the threadContext.
getThreadName
public String getThreadName()
isEnabled
public boolean isEnabled()
Check if ENABLED property is present and true ; defaults to true
- true if element is enabled
isRunningVersion
public boolean isRunningVersion()
Returns true or false whether the element is the running version.
isTemporary
public boolean isTemporary(JMeterProperty property)
Test whether a given property is only a temporary resident of the
TestElement
propertyIterator
public PropertyIterator propertyIterator()
Get a Property Iterator for the TestElements properties.
recoverRunningVersion
public void recoverRunningVersion()
Tells the test element to return to the state it was in when
makeRunningVersion() was called.
removeProperty
public void removeProperty(String key)
setComment
public void setComment(String comment)
setName
public void setName(String name)
setProperty
public void setProperty(String key,
String value)
setProperty
public void setProperty(String key,
String value,
String dflt)
setProperty
public void setProperty(String key,
boolean value)
setProperty
public void setProperty(String key,
boolean value,
boolean dflt)
setProperty
public void setProperty(String key,
int value)
setProperty
public void setProperty(String key,
int value,
int dflt)
setProperty
public void setProperty(JMeterProperty property)
Sets and overwrites a property in the TestElement. This call will be
ignored if the TestElement is currently a "running version".
setRunningVersion
public void setRunningVersion(boolean run)
Make the test element the running version, or make it no longer the
running version. This tells the test element that it's current state must
be retrievable by a call to recoverRunningVersion(). It is kind of like
making the TestElement Read- Only, but not as strict. Changes can be made
and the element can be modified, but the state of the element at the time
of the call to setRunningVersion() must be recoverable.
setTemporary
public void setTemporary(JMeterProperty property)
Indicate that the given property should be only a temporary property in
the TestElement
setThreadContext
public void setThreadContext(JMeterContext threadContext)
threadContext
- The threadContext to set.
setThreadName
public void setThreadName(String threadName)
threadName
- The threadName to set.
traverse
public void traverse(TestElementTraverser traverser)
Convenient way to traverse a test element.