public class JavaProxy extends com.rational.test.ft.domain.ProxyTestObject implements IPropertyFilter
This class further contains the default implementation of various base class methods that proxy implementations may need to extend or override.
TestObject
| Property | Usage |
|---|---|
| .class | The Java full class name of the test object. |
| .classIndex | The zero-based index of the class relative to the immediate parent in the object map. |
| Modifier and Type | Field and Description |
|---|---|
protected static com.rational.test.ft.util.FtDebug |
debug |
protected java.lang.String |
uniqueId |
BROWSERTABTESTOBJECT_CLASSNAME, BROWSERTESTOBJECT_CLASSNAME, COLORDIALOGTESTOBJECT_CLASSNAME, CROSSDOMAINCONTAINER_CLASSNAME, DOCUMENTTESTOBJECT_CLASSNAME, DOMAINTESTOBJECT_CLASSNAME, ECLIPSETOPLEVELTESTOBJECT_CLASSNAME, EMBEDDEDBROWSERTESTOBJECT_CLASSNAME, FILEDIALOGTESTOBJECT_CLASSNAME, FRAMESUBITEMTESTOBJECT_CLASSNAME, FRAMETESTOBJECT_CLASSNAME, GEFEDITPARTTESTOBJECT_CLASSNAME, GUISUBITEMTESTOBJECT_CLASSNAME, GUITESTOBJECT_CLASSNAME, INTERNALFRAMETESTOBJECT_CLASSNAME, MESSAGEBOXTESTOBJECT_CLASSNAME, PALETTEGUISUBITEMTESTOBJECT_CLASSNAME, PROCESSTESTOBJECT_CLASSNAME, SCROLLSUBITEMTESTOBJECT_CLASSNAME, SCROLLTESTOBJECT_CLASSNAME, SELECTGUISUBITEMTESTOBJECT_CLASSNAME, SELECTSCROLLGUISUBITEMTESTOBJECT_CLASSNAME, SHELLTESTOBJECT_CLASSNAME, STATELESSGUISUBITEMTESTOBJECT_CLASSNAME, SUBITEMTESTOBJECT_CLASSNAME, TABITEMTESTOBJECT_CLASSNAME, TESTOBJECT_CLASSNAME, TEXTGUISUBITEMTESTOBJECT_CLASSNAME, TEXTGUITESTOBJECT_CLASSNAME, TEXTSCROLLTESTOBJECT_CLASSNAME, TEXTSELECTGUISUBITEMTESTOBJECT_CLASSNAME, TIMEOUTTESTOBJECT_CLASSNAME, TOGGLEGUITESTOBJECT_CLASSNAME, TOGGLETESTOBJECT_CLASSNAME, TOPLEVELSUBITEMTESTOBJECT_CLASSNAME, TOPLEVELTESTOBJECT_CLASSNAME, TRACKBARTESTOBJECT_CLASSNAME, vomClippedRectangle| Constructor and Description |
|---|
JavaProxy(java.lang.Object theObjectInTheSUT)
Sets the SUT object
as a member variable for the proxy.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addMappableChildrenToVector(java.util.Enumeration children,
java.util.Vector v) |
void |
addRecognitionProperty(java.lang.String property,
java.lang.Object value,
int weight)
Defines an additional recognition property that this proxy
should utilize.
|
boolean |
allowProperty(java.lang.String property)
Returns
true if the property is allowed. |
void |
childConstructed(com.rational.test.ft.domain.ProxyTestObject child)
Inform the parent when child proxies are constructed so additional recognition
properties can be added when needed.
|
protected java.lang.Object |
getAddedRecognitionPropertyValue(java.lang.String propertyName)
Returns the value associated with an
added recognition property. |
com.rational.test.ft.domain.ProxyTestObject[] |
getChildren()
Uses
getChildren to implement. |
java.util.Enumeration |
getChildrenEnumeration()
Always returns null because object relationships are not
understood at this level of abstaction.
|
java.lang.String |
getDescriptiveName()
Returns a name that can be used to describe the associated UI
object in a script.
|
java.util.Enumeration |
getImmediateChildren()
Returns an enumeration of proxies for the immediate children
of this object.
|
java.lang.Object |
getIndexer(java.lang.String name,
java.lang.Object[] indexes)
Gets the value of an indexed property
|
com.rational.test.ft.value.IndexerInfo[] |
getIndexers()
Gets information about a
TestObject's indexed properties |
com.rational.test.ft.domain.ProxyTestObject[] |
getMappableChildren()
Uses
getChildren to implement. |
com.rational.test.ft.domain.ProxyTestObject |
getMappableParent()
Returns null always because object relationships are not
understood at this level of abstaction.
|
com.rational.test.ft.value.MethodInfo[] |
getMethods()
Returns an array of MethodInfos
|
com.rational.test.ft.sys.MethodSpecification |
getMethodSpecForPoint(java.awt.Point pt)
Returns a MethodSpecification for a method that returns a java.awt.Point
for the specified coordinates.
|
java.util.Hashtable |
getNonValueProperties() |
com.rational.test.ft.domain.ProxyTestObject[] |
getOwnedObjects()
Always returns null because object relationships are not
understood at this level of abstaction.
|
com.rational.test.ft.domain.ProxyTestObject |
getOwner()
Always returns null because object relationships are not
understood at this level of abstaction.
|
com.rational.test.ft.domain.ProxyTestObject |
getParent()
Returns null always because object relationships are not
understood at this level of abstaction.
|
java.lang.Object |
getParentObject()
Returns null always because object relationships are not
understood at this level of abstaction.
|
java.util.Hashtable |
getProperties() |
java.lang.Object |
getProperty(java.lang.String propertyName)
Gets the value for a specific property.
|
java.util.Hashtable |
getRecognitionProperties()
Returns an enumeration of properties used to uniquely identify the
associated test object in the SUT.
|
int |
getRecognitionPropertyWeight(java.lang.String propertyName)
Returns an indication of how useful this property is for recognition.
|
java.lang.String |
getRole() |
java.util.Hashtable |
getStandardProperties()
For Java, the definition for standard properties is the same
as
getProperties(). |
java.util.Hashtable |
getTestDataTypes()
Returns a hashtable of data type descriptions of the verification
point data available with the associated object in the SUT.
|
com.rational.test.ft.domain.TestDomainImplementation |
getTestDomain()
Return the
TestDomainImplementation that this proxy object is associated
with. |
java.lang.String |
getTestObjectClassName()
The default GUI test object classname is returned.
|
com.rational.test.ft.domain.ProxyTestObject |
getTopMappableParent()
Returns a proxy object for the top parent of this object.
|
com.rational.test.ft.domain.ProxyTestObject |
getTopParent()
Returns a proxy object for the top parent of this object.
|
java.lang.String |
getUniqueId()
Returns a unique string for the associated object.
|
protected com.rational.test.ft.domain.ProxyTestObject |
getVisualClippableParent()
Return the clippable parent for the control
|
boolean |
hasAddedRecognitionProperties()
Returns true if recocnition properties have been added
to this proxy from an external source through the
addRecognitionProperty method. |
boolean |
isRecognitionProperty(java.lang.String propName)
This function is overloaded at componentProxy level
|
void |
processMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
At this level of the Java proxy abstraction, this method is null.
|
void |
setIndexer(java.lang.String name,
java.lang.Object[] indexes,
java.lang.Object val)
Sets the value of an indexed property
|
void |
setProperty(java.lang.String propertyName,
java.lang.Object value)
Sets the value for a specific property.
|
boolean |
shouldBeMapped()
Returns false; by default only GUI test objects are mapped.
|
addDataDrivableCommands, baseClassMatch, canTakeVP, equals, findChildrenWithProperties, findChildrenWithPropertiesAndInvoke, getChannel, getChildren, getDataDrivableCommand, getDataDrivableCommands, getElementWithFocus, getField, getIgnorableProperties, getMappableChildren, getMappableParent, getObjectClassName, getObjectCustomClassName, getOwnedObjects, getParent, getProxy, getScriptCommandAnchor, getScriptCommandFlags, getTestData, getVisualClippedRectangle, getVisualMappableChildren, getVisualTopParent, getVOMSpecificProperty, hasSpecialFrameState, isClassIndexConsidered, isSameObject, isValidObject, ping, suppressKeyAction, updateTestDataprotected static com.rational.test.ft.util.FtDebug debug
protected transient java.lang.String uniqueId
public JavaProxy(java.lang.Object theObjectInTheSUT)
public java.lang.String getTestObjectClassName()
getTestObjectClassName in interface com.rational.test.ft.domain.IProxyBasegetTestObjectClassName in class com.rational.test.ft.domain.ProxyTestObjectpublic final com.rational.test.ft.domain.TestDomainImplementation getTestDomain()
TestDomainImplementation that this proxy object is associated
with. This method should not be overriden.getTestDomain in interface com.rational.test.ft.domain.IProxyBasegetTestDomain in class com.rational.test.ft.domain.ProxyTestObjectTestDomainImplementation.public java.lang.String getDescriptiveName()
getDescriptiveName in class com.rational.test.ft.domain.ProxyTestObjectpublic java.lang.String getUniqueId()
getUniqueId in class com.rational.test.ft.domain.ProxyTestObjectpublic java.lang.String getRole()
getRole in class com.rational.test.ft.domain.ProxyTestObjectpublic boolean shouldBeMapped()
shouldBeMapped in class com.rational.test.ft.domain.ProxyTestObjectpublic com.rational.test.ft.domain.ProxyTestObject getParent()
getParent in class com.rational.test.ft.domain.ProxyTestObjectpublic java.lang.Object getParentObject()
public void childConstructed(com.rational.test.ft.domain.ProxyTestObject child)
child - The child proxy that was just constructed.public com.rational.test.ft.domain.ProxyTestObject getMappableParent()
getMappableParent in class com.rational.test.ft.domain.ProxyTestObjectpublic com.rational.test.ft.domain.ProxyTestObject getTopParent()
getTopParent in class com.rational.test.ft.domain.ProxyTestObjectpublic com.rational.test.ft.domain.ProxyTestObject getTopMappableParent()
getTopMappableParent in class com.rational.test.ft.domain.ProxyTestObjectpublic java.util.Enumeration getChildrenEnumeration()
public java.util.Enumeration getImmediateChildren()
public com.rational.test.ft.domain.ProxyTestObject[] getChildren()
getChildren to implement.getChildren in class com.rational.test.ft.domain.ProxyTestObjectpublic com.rational.test.ft.domain.ProxyTestObject[] getMappableChildren()
getChildren to implement.getMappableChildren in class com.rational.test.ft.domain.ProxyTestObjectprotected void addMappableChildrenToVector(java.util.Enumeration children,
java.util.Vector v)
public com.rational.test.ft.domain.ProxyTestObject getOwner()
getOwner in class com.rational.test.ft.domain.ProxyTestObjectpublic com.rational.test.ft.domain.ProxyTestObject[] getOwnedObjects()
getOwnedObjects in class com.rational.test.ft.domain.ProxyTestObjectpublic void processMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
JavaGuiProxy level support.processMouseEvent in class com.rational.test.ft.domain.ProxyTestObjectaction - The event cache and other mouse state information
for this mouse action.IMouseActionInfo,
MethodSpecificationpublic com.rational.test.ft.sys.MethodSpecification getMethodSpecForPoint(java.awt.Point pt)
IGraphical.getScreenPoint is returned. However, if a proxy can fingetMethodSpecForPoint in class com.rational.test.ft.domain.ProxyTestObjectaction - The event cache and other mouse state information
for this mouse action.MethodSpecificationpublic java.util.Hashtable getRecognitionProperties()
getRecognitionProperties in class com.rational.test.ft.domain.ProxyTestObjectpublic boolean isRecognitionProperty(java.lang.String propName)
propName - public int getRecognitionPropertyWeight(java.lang.String propertyName)
getRecognitionPropertyWeight in class com.rational.test.ft.domain.ProxyTestObjectpublic void addRecognitionProperty(java.lang.String property,
java.lang.Object value,
int weight)
getRecognitionProperties method.addRecognitionProperty in class com.rational.test.ft.domain.ProxyTestObjectproperty - The recognition property name. Care should be taken to
avoid conflicts with existing property names.value - The value of the added recognition property.weight - The weight associated with this recognition property.
This value should be returned when the getRecognitionPropertyWeight method is called.getRecognitionProperties(),
getRecognitionPropertyWeight(String),
getProperty(String)protected java.lang.Object getAddedRecognitionPropertyValue(java.lang.String propertyName)
added recognition property.
This method exists for quick lookup of recognition properties
added to this proxy's recognition property set.propertyName - The name of the added recognition property to look for.null if the property does not exist.public boolean hasAddedRecognitionProperties()
addRecognitionProperty method.hasAddedRecognitionProperties in class com.rational.test.ft.domain.ProxyTestObjectaddRecognitionProperty
method.addRecognitionProperty(String,Object,int)public java.util.Hashtable getProperties()
getProperties in class com.rational.test.ft.domain.ProxyTestObjectpublic java.util.Hashtable getStandardProperties()
getProperties().getStandardProperties in class com.rational.test.ft.domain.ProxyTestObjectgetProperties()public java.util.Hashtable getNonValueProperties()
getNonValueProperties in class com.rational.test.ft.domain.ProxyTestObjectpublic boolean allowProperty(java.lang.String property)
IPropertyFiltertrue if the property is allowed.allowProperty in interface IPropertyFiltertrue if the property is allowed.public com.rational.test.ft.value.MethodInfo[] getMethods()
getMethods in class com.rational.test.ft.domain.ProxyTestObjectpublic java.lang.Object getProperty(java.lang.String propertyName)
getProperty in class com.rational.test.ft.domain.ProxyTestObjectpublic void setProperty(java.lang.String propertyName,
java.lang.Object value)
setProperty in class com.rational.test.ft.domain.ProxyTestObjectpublic java.lang.Object getIndexer(java.lang.String name,
java.lang.Object[] indexes)
getIndexer in class com.rational.test.ft.domain.ProxyTestObjectpublic com.rational.test.ft.value.IndexerInfo[] getIndexers()
TestObject's indexed propertiesgetIndexers in class com.rational.test.ft.domain.ProxyTestObjectpublic void setIndexer(java.lang.String name,
java.lang.Object[] indexes,
java.lang.Object val)
setIndexer in class com.rational.test.ft.domain.ProxyTestObjectpublic java.util.Hashtable getTestDataTypes()
getTestDataTypes in class com.rational.test.ft.domain.ProxyTestObjectProxyTestObject.getTestData(String),
ITestDataprotected com.rational.test.ft.domain.ProxyTestObject getVisualClippableParent()
getVisualClippableParent in class com.rational.test.ft.domain.ProxyTestObject