|
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 AbstractTestElement
AbstractTestElement.addProperty(org.apache.jmeter.testelement.property.JMeterProperty)
public void addTestElement(TestElement el)
addTestElement
in interface TestElement
addTestElement
in class AbstractTestElement
TestElement.addTestElement(org.apache.jmeter.testelement.TestElement)
public void clear()
TestElement
clear
in interface TestElement
clear
in class AbstractTestElement
TestElement.clear()
protected void clearTemporary(JMeterProperty property)
clearTemporary
in class AbstractTestElement
AbstractTestElement.clearTemporary(org.apache.jmeter.testelement.property.JMeterProperty)
public Object clone()
clone
in interface TestElement
clone
in class AbstractTestElement
Object.clone()
protected void emptyTemporary()
emptyTemporary
in class AbstractTestElement
AbstractTestElement.emptyTemporary()
public boolean equals(Object o)
equals
in class AbstractTestElement
Object.equals(java.lang.Object)
public String getName()
getName
in class AbstractTestElement
AbstractTestElement.getName()
public JMeterProperty getProperty(String key)
AbstractTestElement
getProperty
in interface TestElement
getProperty
in class AbstractTestElement
TestElement.getProperty(java.lang.String)
public boolean getPropertyAsBoolean(String key, boolean defaultVal)
getPropertyAsBoolean
in class AbstractTestElement
AbstractTestElement.getPropertyAsBoolean(java.lang.String, boolean)
public boolean getPropertyAsBoolean(String key)
TestElement
getPropertyAsBoolean
in interface TestElement
getPropertyAsBoolean
in class AbstractTestElement
TestElement.getPropertyAsBoolean(java.lang.String)
public double getPropertyAsDouble(String key)
getPropertyAsDouble
in class AbstractTestElement
AbstractTestElement.getPropertyAsDouble(java.lang.String)
public float getPropertyAsFloat(String key)
getPropertyAsFloat
in interface TestElement
getPropertyAsFloat
in class AbstractTestElement
TestElement.getPropertyAsFloat(java.lang.String)
public int getPropertyAsInt(String key)
getPropertyAsInt
in interface TestElement
getPropertyAsInt
in class AbstractTestElement
TestElement.getPropertyAsInt(java.lang.String)
public long getPropertyAsLong(String key)
getPropertyAsLong
in interface TestElement
getPropertyAsLong
in class AbstractTestElement
TestElement.getPropertyAsLong(java.lang.String)
public String getPropertyAsString(String key)
getPropertyAsString
in interface TestElement
getPropertyAsString
in class AbstractTestElement
TestElement.getPropertyAsString(java.lang.String)
public boolean isRunningVersion()
AbstractTestElement
isRunningVersion
in interface TestElement
isRunningVersion
in class AbstractTestElement
TestElement.isRunningVersion()
public boolean isTemporary(JMeterProperty property)
TestElement
isTemporary
in interface TestElement
isTemporary
in class AbstractTestElement
TestElement.isTemporary(org.apache.jmeter.testelement.property.JMeterProperty)
protected void logProperties()
AbstractTestElement
logProperties
in class AbstractTestElement
AbstractTestElement.logProperties()
protected void mergeIn(TestElement element)
mergeIn
in class AbstractTestElement
AbstractTestElement.mergeIn(org.apache.jmeter.testelement.TestElement)
protected Sampler nextIsNull() throws NextIsNullException
nextIsNull
in class AbstractTestElement
NextIsNullException
AbstractTestElement.nextIsNull()
public PropertyIterator propertyIterator()
TestElement
propertyIterator
in interface TestElement
propertyIterator
in class AbstractTestElement
TestElement.propertyIterator()
public void recoverRunningVersion()
TestElement
recoverRunningVersion
in interface TestElement
recoverRunningVersion
in class AbstractTestElement
TestElement.recoverRunningVersion()
public void removeProperty(String key)
removeProperty
in interface TestElement
removeProperty
in class AbstractTestElement
TestElement.removeProperty(java.lang.String)
public void setName(String name)
setName
in class AbstractTestElement
AbstractTestElement.setName(java.lang.String)
public void setProperty(JMeterProperty property)
TestElement
setProperty
in interface TestElement
setProperty
in class AbstractTestElement
TestElement.setProperty(org.apache.jmeter.testelement.property.JMeterProperty)
public void setProperty(String name, String value)
setProperty
in interface TestElement
setProperty
in class AbstractTestElement
TestElement.setProperty(java.lang.String, java.lang.String)
public void setRunningVersion(boolean runningVersion)
AbstractTestElement
setRunningVersion
in interface TestElement
setRunningVersion
in class AbstractTestElement
runningVersion
- the runningVersion to setTestElement.setRunningVersion(boolean)
public void setTemporary(JMeterProperty property)
TestElement
setTemporary
in interface TestElement
setTemporary
in class AbstractTestElement
TestElement.setTemporary(org.apache.jmeter.testelement.property.JMeterProperty)
public void traverse(TestElementTraverser traverser)
TestElement
traverse
in interface TestElement
traverse
in class AbstractTestElement
TestElement.traverse(org.apache.jmeter.testelement.TestElementTraverser)
protected void traverseCollection(CollectionProperty col, TestElementTraverser traverser)
traverseCollection
in class AbstractTestElement
AbstractTestElement.traverseCollection(org.apache.jmeter.testelement.property.CollectionProperty, org.apache.jmeter.testelement.TestElementTraverser)
protected void traverseMap(MapProperty map, TestElementTraverser traverser)
traverseMap
in class AbstractTestElement
AbstractTestElement.traverseMap(org.apache.jmeter.testelement.property.MapProperty, org.apache.jmeter.testelement.TestElementTraverser)
protected void traverseProperty(TestElementTraverser traverser, JMeterProperty value)
traverseProperty
in class AbstractTestElement
AbstractTestElement.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 |