|
Apache JMeter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.jmeter.testelement.AbstractTestElement
public abstract class AbstractTestElement
| Field Summary |
|---|
| Fields inherited from interface org.apache.jmeter.testelement.TestElement |
|---|
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS |
| Constructor Summary | |
|---|---|
AbstractTestElement()
|
|
| Method Summary | |
|---|---|
protected void |
addPropertiesValues(List<String> result,
Set<String> propertyNames)
Add to result the values of propertyNames |
protected void |
addProperty(JMeterProperty property)
Add property to test element without cloning it |
protected void |
addProperty(JMeterProperty property,
boolean clone)
Add property to test element |
void |
addTestElement(TestElement el)
|
boolean |
canRemove()
Called by Remove to determine if it is safe to remove the element. |
void |
clear()
Clear the TestElement of all data. |
protected void |
clearTemporary(JMeterProperty property)
Remove property from temporaryProperties |
void |
clearTestElementChildren()
This method should clear any test element properties that are merged by TestElement.addTestElement(TestElement).
Default implementation - does nothing |
Object |
clone()
|
protected void |
emptyTemporary()
Clears temporaryProperties |
boolean |
equals(Object o)
|
String |
getComment()
|
String |
getName()
|
JMeterProperty |
getProperty(String key)
Get the named property. |
boolean |
getPropertyAsBoolean(String key)
Return a property as a boolean value. |
boolean |
getPropertyAsBoolean(String key,
boolean defaultVal)
|
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)
|
List<String> |
getSearchableTokens()
} |
JMeterContext |
getThreadContext()
|
String |
getThreadName()
|
int |
hashCode()
|
boolean |
isEnabled()
Check if ENABLED property is present and true ; defaults to true |
boolean |
isRunningVersion()
Returns the runningVersion. |
boolean |
isTemporary(JMeterProperty property)
Test whether a given property is only a temporary resident of the TestElement |
protected void |
logProperties()
Log the properties of the test element |
protected void |
mergeIn(TestElement element)
Add to this the properties of element (by reference) |
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 name,
boolean value)
|
void |
setProperty(String name,
boolean value,
boolean dflt)
Create a boolean property - but only if it is not the default. |
void |
setProperty(String name,
int value)
|
void |
setProperty(String name,
int value,
int dflt)
Create a boolean property - but only if it is not the default. |
void |
setProperty(String name,
String value)
|
void |
setProperty(String name,
String value,
String dflt)
Create a String property - but only if it is not the default. |
void |
setRunningVersion(boolean runningVersion)
Sets the runningVersion. |
void |
setTemporary(JMeterProperty property)
Indicate that the given property should be only a temporary property in the TestElement |
void |
setThreadContext(JMeterContext inthreadContext)
|
void |
setThreadName(String inthreadName)
|
void |
traverse(TestElementTraverser traverser)
Convenient way to traverse a test element. |
protected void |
traverseCollection(CollectionProperty col,
TestElementTraverser traverser)
|
protected void |
traverseMap(MapProperty map,
TestElementTraverser traverser)
|
protected void |
traverseProperty(TestElementTraverser traverser,
JMeterProperty value)
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractTestElement()
| Method Detail |
|---|
public Object clone()
clone in interface TestElementclone in class Objectpublic void clear()
clear in interface TestElementpublic void clearTestElementChildren()
TestElement.addTestElement(TestElement).
Default implementation - does nothing
clearTestElementChildren in interface TestElementpublic void removeProperty(String key)
removeProperty in interface TestElementpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic void addTestElement(TestElement el)
addTestElement in interface TestElementpublic void setName(String name)
setName in interface TestElementpublic String getName()
getName in interface TestElementpublic void setComment(String comment)
setComment in interface TestElementpublic String getComment()
getComment in interface TestElementpublic JMeterProperty getProperty(String key)
getProperty in interface TestElementpublic void traverse(TestElementTraverser traverser)
TestElement
traverse in interface TestElement
protected void traverseProperty(TestElementTraverser traverser,
JMeterProperty value)
protected void traverseMap(MapProperty map,
TestElementTraverser traverser)
protected void traverseCollection(CollectionProperty col,
TestElementTraverser traverser)
public int getPropertyAsInt(String key)
getPropertyAsInt in interface TestElement
public int getPropertyAsInt(String key,
int defaultValue)
getPropertyAsInt in interface TestElementpublic boolean getPropertyAsBoolean(String key)
TestElement
getPropertyAsBoolean in interface TestElement
public boolean getPropertyAsBoolean(String key,
boolean defaultVal)
getPropertyAsBoolean in interface TestElementpublic float getPropertyAsFloat(String key)
getPropertyAsFloat in interface TestElementpublic long getPropertyAsLong(String key)
getPropertyAsLong in interface TestElement
public long getPropertyAsLong(String key,
long defaultValue)
getPropertyAsLong in interface TestElementpublic double getPropertyAsDouble(String key)
getPropertyAsDouble in interface TestElementpublic String getPropertyAsString(String key)
getPropertyAsString in interface TestElement
public String getPropertyAsString(String key,
String defaultValue)
getPropertyAsString in interface TestElement
protected void addProperty(JMeterProperty property,
boolean clone)
property - JMeterProperty to add to current Test Elementclone - clone propertyprotected void addProperty(JMeterProperty property)
property - JMeterPropertyprotected void clearTemporary(JMeterProperty property)
property - JMeterPropertyprotected void logProperties()
TestElement.setProperty(JMeterProperty)public void setProperty(JMeterProperty property)
TestElement
setProperty in interface TestElement
public void setProperty(String name,
String value)
setProperty in interface TestElement
public void setProperty(String name,
String value,
String dflt)
setProperty in interface TestElementname - property namevalue - current valuedflt - default
public void setProperty(String name,
boolean value)
setProperty in interface TestElement
public void setProperty(String name,
boolean value,
boolean dflt)
setProperty in interface TestElementname - property namevalue - current valuedflt - default
public void setProperty(String name,
int value)
setProperty in interface TestElement
public void setProperty(String name,
int value,
int dflt)
setProperty in interface TestElementname - property namevalue - current valuedflt - defaultpublic PropertyIterator propertyIterator()
TestElement
propertyIterator in interface TestElementprotected void mergeIn(TestElement element)
element - TestElementpublic boolean isRunningVersion()
isRunningVersion in interface TestElementpublic void setRunningVersion(boolean runningVersion)
setRunningVersion in interface TestElementrunningVersion - the runningVersion to setpublic void recoverRunningVersion()
recoverRunningVersion in interface TestElementprotected void emptyTemporary()
public boolean isTemporary(JMeterProperty property)
isTemporary in interface TestElementpublic void setTemporary(JMeterProperty property)
setTemporary in interface TestElementproperty - voidpublic JMeterContext getThreadContext()
getThreadContext in interface TestElementpublic void setThreadContext(JMeterContext inthreadContext)
setThreadContext in interface TestElementinthreadContext - The threadContext to set.public String getThreadName()
getThreadName in interface TestElementpublic void setThreadName(String inthreadName)
setThreadName in interface TestElementinthreadName - The threadName to set.public boolean canRemove()
canRemove in interface TestElementpublic boolean isEnabled()
isEnabled in interface TestElement
public List<String> getSearchableTokens()
throws Exception
getSearchableTokens in interface SearchableException
protected final void addPropertiesValues(List<String> result,
Set<String> propertyNames)
result - ListpropertyNames - Set
|
Apache JMeter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||