|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TestElement
Field Summary | |
---|---|
static String |
COMMENTS
|
static String |
ENABLED
|
static String |
GUI_CLASS
|
static String |
NAME
|
static String |
TEST_CLASS
|
Method Summary | |
---|---|
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 |
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 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. |
Field Detail |
---|
static final String NAME
static final String GUI_CLASS
static final String ENABLED
static final String TEST_CLASS
static final String COMMENTS
Method Detail |
---|
void addTestElement(TestElement child)
void clearTestElementChildren()
addTestElement(TestElement)
.
void setProperty(String key, String value)
void setProperty(String key, String value, String dflt)
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)
boolean isEnabled()
boolean 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()
String getPropertyAsString(String key)
String getPropertyAsString(String key, String defaultValue)
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)
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |