|
Apache JMeter 2.0.1.20050615 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.testbeans.TestBean
This is an experimental class. An attempt to address the complexity of writing new JMeter components.
TestBean currently extends AbstractTestElement to support backward-compatibility, but the property-value-map may later on be separated from the test beans themselves. To ensure this will be doable with minimum damage, all inherited methods are deprecated.
| Field Summary |
| Fields inherited from interface org.apache.jmeter.testelement.TestElement |
ENABLED, GUI_CLASS, NAME, TEST_CLASS |
| Constructor Summary | |
protected |
TestBean()
Parameter-less constructor. |
| Method Summary | |
protected void |
addProperty(JMeterProperty property)
Deprecated. |
void |
addTestElement(TestElement el)
Deprecated. |
void |
clear()
Clear the TestElement of all data. |
protected void |
clearTemporary(JMeterProperty property)
Deprecated. |
Object |
clone()
Deprecated. |
protected void |
emptyTemporary()
Deprecated. |
boolean |
equals(Object o)
Deprecated. |
String |
getName()
This one is NOT deprecated. |
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)
Deprecated. |
double |
getPropertyAsDouble(String key)
Deprecated. |
float |
getPropertyAsFloat(String key)
Deprecated. |
int |
getPropertyAsInt(String key)
Deprecated. |
long |
getPropertyAsLong(String key)
Deprecated. |
String |
getPropertyAsString(String key)
Deprecated. |
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)
Deprecated. |
protected Sampler |
nextIsNull()
Deprecated. |
void |
prepare()
Deprecated. to limit it's usage in expectation of moving it elsewhere. |
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 makeRunningVersion() was called. |
void |
removeProperty(String key)
Deprecated. |
void |
setName(String name)
Deprecated. |
void |
setProperty(JMeterProperty property)
Sets and overwrites a property in the TestElement. |
void |
setProperty(String name,
String value)
Deprecated. |
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 |
traverse(TestElementTraverser traverser)
Convenient way to traverse a test element. |
protected void |
traverseCollection(CollectionProperty col,
TestElementTraverser traverser)
Deprecated. |
protected void |
traverseMap(MapProperty map,
TestElementTraverser traverser)
Deprecated. |
protected void |
traverseProperty(TestElementTraverser traverser,
JMeterProperty value)
Deprecated. |
| Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement |
canRemove, getThreadContext, getThreadName, setThreadContext, setThreadName, threadFinished, threadStarted |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected TestBean()
This implementation will take care of obtaining bean-management information if this was not already done.
| Method Detail |
public void prepare()
protected void addProperty(JMeterProperty property)
addProperty in class AbstractTestElementAbstractTestElement.addProperty(org.apache.jmeter.testelement.property.JMeterProperty)public void addTestElement(TestElement el)
addTestElement in interface TestElementaddTestElement in class AbstractTestElementTestElement.addTestElement(org.apache.jmeter.testelement.TestElement)public void clear()
TestElement
clear in interface TestElementclear in class AbstractTestElementTestElement.clear()protected void clearTemporary(JMeterProperty property)
clearTemporary in class AbstractTestElementAbstractTestElement.clearTemporary(org.apache.jmeter.testelement.property.JMeterProperty)public Object clone()
clone in interface TestElementclone in class AbstractTestElementObject.clone()protected void emptyTemporary()
emptyTemporary in class AbstractTestElementAbstractTestElement.emptyTemporary()public boolean equals(Object o)
equals in class AbstractTestElementObject.equals(java.lang.Object)public String getName()
getName in class AbstractTestElementAbstractTestElement.getName()public JMeterProperty getProperty(String key)
AbstractTestElement
getProperty in interface TestElementgetProperty in class AbstractTestElementTestElement.getProperty(java.lang.String)
public boolean getPropertyAsBoolean(String key,
boolean defaultVal)
getPropertyAsBoolean in class AbstractTestElementAbstractTestElement.getPropertyAsBoolean(java.lang.String, boolean)public boolean getPropertyAsBoolean(String key)
TestElement
getPropertyAsBoolean in interface TestElementgetPropertyAsBoolean in class AbstractTestElementTestElement.getPropertyAsBoolean(java.lang.String)public double getPropertyAsDouble(String key)
getPropertyAsDouble in class AbstractTestElementAbstractTestElement.getPropertyAsDouble(java.lang.String)public float getPropertyAsFloat(String key)
getPropertyAsFloat in interface TestElementgetPropertyAsFloat in class AbstractTestElementTestElement.getPropertyAsFloat(java.lang.String)public int getPropertyAsInt(String key)
getPropertyAsInt in interface TestElementgetPropertyAsInt in class AbstractTestElementTestElement.getPropertyAsInt(java.lang.String)public long getPropertyAsLong(String key)
getPropertyAsLong in interface TestElementgetPropertyAsLong in class AbstractTestElementTestElement.getPropertyAsLong(java.lang.String)public String getPropertyAsString(String key)
getPropertyAsString in interface TestElementgetPropertyAsString in class AbstractTestElementTestElement.getPropertyAsString(java.lang.String)public boolean isRunningVersion()
AbstractTestElement
isRunningVersion in interface TestElementisRunningVersion in class AbstractTestElementTestElement.isRunningVersion()public boolean isTemporary(JMeterProperty property)
TestElement
isTemporary in interface TestElementisTemporary in class AbstractTestElementTestElement.isTemporary(org.apache.jmeter.testelement.property.JMeterProperty)protected void logProperties()
AbstractTestElement
logProperties in class AbstractTestElementAbstractTestElement.logProperties()protected void mergeIn(TestElement element)
mergeIn in class AbstractTestElementAbstractTestElement.mergeIn(org.apache.jmeter.testelement.TestElement)
protected Sampler nextIsNull()
throws NextIsNullException
nextIsNull in class AbstractTestElementNextIsNullExceptionAbstractTestElement.nextIsNull()public PropertyIterator propertyIterator()
TestElement
propertyIterator in interface TestElementpropertyIterator in class AbstractTestElementTestElement.propertyIterator()public void recoverRunningVersion()
TestElement
recoverRunningVersion in interface TestElementrecoverRunningVersion in class AbstractTestElementTestElement.recoverRunningVersion()public void removeProperty(String key)
removeProperty in interface TestElementremoveProperty in class AbstractTestElementTestElement.removeProperty(java.lang.String)public void setName(String name)
setName in class AbstractTestElementAbstractTestElement.setName(java.lang.String)public void setProperty(JMeterProperty property)
TestElement
setProperty in interface TestElementsetProperty in class AbstractTestElementTestElement.setProperty(org.apache.jmeter.testelement.property.JMeterProperty)
public void setProperty(String name,
String value)
setProperty in interface TestElementsetProperty in class AbstractTestElementTestElement.setProperty(java.lang.String, java.lang.String)public void setRunningVersion(boolean runningVersion)
AbstractTestElement
setRunningVersion in interface TestElementsetRunningVersion in class AbstractTestElementrunningVersion - the runningVersion to setTestElement.setRunningVersion(boolean)public void setTemporary(JMeterProperty property)
TestElement
setTemporary in interface TestElementsetTemporary in class AbstractTestElementTestElement.setTemporary(org.apache.jmeter.testelement.property.JMeterProperty)public void traverse(TestElementTraverser traverser)
TestElement
traverse in interface TestElementtraverse in class AbstractTestElementTestElement.traverse(org.apache.jmeter.testelement.TestElementTraverser)
protected void traverseCollection(CollectionProperty col,
TestElementTraverser traverser)
traverseCollection in class AbstractTestElementAbstractTestElement.traverseCollection(org.apache.jmeter.testelement.property.CollectionProperty, org.apache.jmeter.testelement.TestElementTraverser)
protected void traverseMap(MapProperty map,
TestElementTraverser traverser)
traverseMap in class AbstractTestElementAbstractTestElement.traverseMap(org.apache.jmeter.testelement.property.MapProperty, org.apache.jmeter.testelement.TestElementTraverser)
protected void traverseProperty(TestElementTraverser traverser,
JMeterProperty value)
traverseProperty in class AbstractTestElementAbstractTestElement.traverseProperty(org.apache.jmeter.testelement.TestElementTraverser, org.apache.jmeter.testelement.property.JMeterProperty)
|
Apache JMeter 2.0.1.20050615 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||