public interface TestElement extends Cloneable
Modifier and Type | Field and Description |
---|---|
static String |
COMMENTS |
static String |
ENABLED |
static String |
GUI_CLASS |
static String |
NAME |
static String |
TEST_CLASS |
Modifier and Type | Method and Description |
---|---|
void |
addTestElement(TestElement child) |
boolean |
canRemove()
Called by Remove to determine if it is safe to remove the element.
|
void |
clear()
Clear the TestElement of all data.
|
void |
clearTestElementChildren()
This method should clear any test element properties that are merged
by
addTestElement(TestElement) . |
Object |
clone() |
String |
getComment() |
String |
getName() |
JMeterProperty |
getProperty(String propName)
Given the name of the property, returns the appropriate property from
JMeter.
|
boolean |
getPropertyAsBoolean(String key)
Return a property as a boolean value.
|
boolean |
getPropertyAsBoolean(String key,
boolean defaultValue) |
double |
getPropertyAsDouble(String key) |
float |
getPropertyAsFloat(String key) |
int |
getPropertyAsInt(String key) |
int |
getPropertyAsInt(String key,
int defaultValue) |
long |
getPropertyAsLong(String key) |
long |
getPropertyAsLong(String key,
long defaultValue) |
String |
getPropertyAsString(String key) |
String |
getPropertyAsString(String key,
String defaultValue) |
JMeterContext |
getThreadContext() |
String |
getThreadName() |
boolean |
isEnabled()
Check if ENABLED property is present and true ; defaults to true
|
boolean |
isRunningVersion()
Returns true or false whether the element is the running version.
|
boolean |
isTemporary(JMeterProperty property)
Test whether a given property is only a temporary resident of the
TestElement
|
PropertyIterator |
propertyIterator()
Get a Property Iterator for the TestElements properties.
|
void |
recoverRunningVersion()
Tells the test element to return to the state it was in when
setRunningVersion(true) was called.
|
void |
removeProperty(String key) |
void |
setComment(String comment) |
void |
setEnabled(boolean enabled)
Set the enabled status of the test element
|
void |
setName(String name) |
void |
setProperty(JMeterProperty property)
Sets and overwrites a property in the TestElement.
|
void |
setProperty(String key,
boolean value) |
void |
setProperty(String key,
boolean value,
boolean dflt) |
void |
setProperty(String key,
int value) |
void |
setProperty(String key,
int value,
int dflt) |
void |
setProperty(String name,
long value) |
void |
setProperty(String name,
long value,
long dflt) |
void |
setProperty(String key,
String value) |
void |
setProperty(String key,
String value,
String dflt) |
void |
setRunningVersion(boolean run)
Make the test element the running version, or make it no longer the
running version.
|
void |
setTemporary(JMeterProperty property)
Indicate that the given property should be only a temporary property in
the TestElement
|
void |
setThreadContext(JMeterContext threadContext) |
void |
setThreadName(String threadName) |
void |
traverse(TestElementTraverser traverser)
Convenient way to traverse a test element.
|
static final String NAME
static final String GUI_CLASS
static final String ENABLED
static final String TEST_CLASS
static final String COMMENTS
void addTestElement(TestElement child)
void clearTestElementChildren()
addTestElement(TestElement)
.void setProperty(String key, boolean value)
void setProperty(String key, boolean value, boolean dflt)
void setProperty(String key, int value)
void setProperty(String key, int value, int dflt)
void setProperty(String name, long value)
void setProperty(String name, long value, long dflt)
boolean isEnabled()
void setEnabled(boolean enabled)
enabled
- the status to setboolean isRunningVersion()
boolean isTemporary(JMeterProperty property)
property
- void setTemporary(JMeterProperty property)
property
- voidboolean getPropertyAsBoolean(String key)
boolean getPropertyAsBoolean(String key, boolean defaultValue)
long getPropertyAsLong(String key)
long getPropertyAsLong(String key, long defaultValue)
int getPropertyAsInt(String key)
int getPropertyAsInt(String key, int defaultValue)
float getPropertyAsFloat(String key)
double getPropertyAsDouble(String key)
void setRunningVersion(boolean run)
void recoverRunningVersion()
void clear()
void setProperty(JMeterProperty property)
JMeterProperty getProperty(String propName)
PropertyIterator propertyIterator()
void removeProperty(String key)
Object clone()
void traverse(TestElementTraverser traverser)
JMeterContext getThreadContext()
void setThreadContext(JMeterContext threadContext)
threadContext
- The threadContext to set.String getThreadName()
void setThreadName(String threadName)
threadName
- The threadName to set.boolean canRemove()
String getName()
void setName(String name)
String getComment()
void setComment(String comment)
Copyright © 1998-2016 Apache Software Foundation. All Rights Reserved.