public abstract class DomainProxy extends ProxyTestObject
BROWSERTABTESTOBJECT_CLASSNAME, BROWSERTESTOBJECT_CLASSNAME, COLORDIALOGTESTOBJECT_CLASSNAME, CROSSDOMAINCONTAINER_CLASSNAME, debug, 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, vomClippedRectangleINCLUDE_ALL, INCLUDE_JUSTOBJECT, INCLUDE_SIBLINGS| Constructor and Description |
|---|
DomainProxy(java.lang.Object theTestObject)
Sets the object as a member variable for the proxy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRecognitionProperty(java.lang.String property,
java.lang.Object value,
int weight)
Additional properties are not required for the domain proxy because it
is never added to the object map.
|
ProxyTestObject[] |
getChildren()
Returns an array of proxies for the children
of this object.
|
java.lang.String |
getDescriptiveName()
Returns a name for the associated UI
object in a script.
|
java.lang.String |
getImplementationName()
Returns the name of the domain implementation.
|
java.lang.Object |
getIndexer(java.lang.String name,
java.lang.Object[] indexes)
Gets the value of an indexed property
|
IndexerInfo[] |
getIndexers()
Gets information about a
TestObject's indexed properties |
ProxyTestObject[] |
getMappableChildren()
Returns an array of proxies for the children
of this object.
|
ProxyTestObject |
getMappableParent()
Returns a proxy object for the parent of this object.
|
MethodInfo[] |
getMethods()
Always returns
null for the domain proxy. |
MethodSpecification |
getMethodSpecForPoint(java.awt.Point pt)
Domains are not graphical.
|
java.lang.String |
getName()
Returns the name of the domain.
|
java.util.Hashtable |
getNonValueProperties()
Always returns
null for the domain proxy. |
ProxyTestObject[] |
getOwnedObjects()
Always returns
null because object relationships are not
understood at this level of abstaction. |
ProxyTestObject |
getOwner()
Always returns
null because object relationships are not
understood at this level of abstaction. |
ProxyTestObject |
getParent()
Returns a proxy object for the parent of this object.
|
TestDomainImplementation |
getTestDomain()
Returns the
TestDomain that this proxy object is associated
with. |
java.lang.String |
getTestObjectClassName()
|
ProxyTestObject |
getTopMappableParent()
Returns a proxy object for the parent of this object.
|
ProxyTestObject[] |
getTopObjects()
Returns an array of references to the top objects in the domain.
|
ProxyTestObject |
getTopParent()
Returns a proxy object for the parent of this object.
|
java.lang.String |
getUniqueId()
Returns a unique string for the associated object.
|
boolean |
hasAddedRecognitionProperties()
Always returns
false for the domain proxy. |
boolean |
hasImageVPSupport()
Determines whether the domain has support for Image Verification Point.
|
java.lang.Object |
invokeConstructor(java.lang.String className,
java.lang.String signature,
java.lang.Object[] args)
Invokes a constructor for a class in the context of the domain.
|
java.lang.Object |
invokeStaticMethod(java.lang.String className,
java.lang.String method,
java.lang.String signature,
java.lang.Object[] args)
Invokes a static method on a class in the context of the domain.
|
void |
prepareDomainsForRecording()
Initializes the domains for recording.
|
void |
prepareToStop()
Prepare the domain to stop while stopping the recorder.
|
void |
processMouseEvent(IMouseActionInfo action)
Domains are not graphical.
|
void |
readyToStop()
Prepare the domain to stop while stopping the recorder.
|
void |
setIndexer(java.lang.String name,
java.lang.Object[] indexes,
java.lang.Object val)
Sets the value of an indexed property
|
addDataDrivableCommands, baseClassMatch, canTakeVP, equals, findChildrenWithProperties, findChildrenWithPropertiesAndInvoke, getChannel, getChildren, getDataDrivableCommand, getDataDrivableCommands, getElementWithFocus, getField, getIgnorableProperties, getMappableChildren, getMappableParent, getObjectClassName, getObjectCustomClassName, getOwnedObjects, getParent, getProperties, getProperty, getProxy, getRecognitionProperties, getRecognitionPropertyWeight, getRole, getScriptCommandAnchor, getScriptCommandFlags, getStandardProperties, getTestData, getTestDataTypes, getVisualClippableParent, getVisualClippedRectangle, getVisualMappableChildren, getVisualTopParent, getVOMSpecificProperty, hasSpecialFrameState, isClassIndexConsidered, isSameObject, isValidObject, ping, setProperty, shouldBeMapped, suppressKeyAction, updateTestDatapublic DomainProxy(java.lang.Object theTestObject)
public java.lang.String getTestObjectClassName()
null if shouldBeMapped()
returns true.
The test script (running in a separate process) interacts with a
class that supports a shared interface with a specific proxy. This
class is called a TestObject class. The testObject
performs a cross-process (and cross-JVM) reflected call to the
same method against an associated proxy. This proxy.getTestObjectClassName in interface IProxyBasegetTestObjectClassName in class ProxyTestObjecttestObject class full name.public TestDomainImplementation getTestDomain()
TestDomain that this proxy object is associated
with.getTestDomain in interface IProxyBasegetTestDomain in class ProxyTestObjectTestDomain.public ProxyTestObject getParent()
null for a domain.getParent in class ProxyTestObjectnullpublic ProxyTestObject getTopParent()
null for a domain.getTopParent in class ProxyTestObjectnullpublic ProxyTestObject[] getChildren()
null for a domain.getChildren in class ProxyTestObjectnullpublic ProxyTestObject getMappableParent()
null for a domain.getMappableParent in class ProxyTestObjectnullpublic ProxyTestObject getTopMappableParent()
null for a domain.getTopMappableParent in class ProxyTestObjectnullpublic ProxyTestObject[] getMappableChildren()
null for a domain.getMappableChildren in class ProxyTestObjectnullpublic void processMouseEvent(IMouseActionInfo action)
processMouseEvent in class ProxyTestObjectaction - The event cache and other mouse state information
for this mouse action.IMouseActionInfo,
com.rational.test.ft.sys.MethodSpecificationpublic MethodSpecification getMethodSpecForPoint(java.awt.Point pt)
getMethodSpecForPoint in class ProxyTestObjectcom.rational.test.ft.sys.MethodSpecificationpublic java.lang.String getDescriptiveName()
java.awt.Button
with the text "OK" on it.getDescriptiveName in class ProxyTestObjectpublic java.lang.String getName()
public java.lang.String getImplementationName()
public java.lang.String getUniqueId()
getUniqueId in class ProxyTestObjectpublic ProxyTestObject[] getTopObjects()
TestObject
and can support more methods. The references to the objects should be
released by calling one of the unregister methods.public ProxyTestObject getOwner()
null because object relationships are not
understood at this level of abstaction.getOwner in class ProxyTestObjectnullpublic ProxyTestObject[] getOwnedObjects()
null because object relationships are not
understood at this level of abstaction.getOwnedObjects in class ProxyTestObjectnull, no known parent.public void addRecognitionProperty(java.lang.String property,
java.lang.Object value,
int weight)
addRecognitionProperty in class 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 is returned when getRecognitionPropertyWeight() is called.ProxyTestObject.getRecognitionProperties(),
ProxyTestObject.getRecognitionPropertyWeight(String),
ProxyTestObject.getProperty(String)public boolean hasAddedRecognitionProperties()
false for the domain proxy.hasAddedRecognitionProperties in class ProxyTestObjecttrue if recognition properties have been added
to this proxy from an external source through addRecognitionProperty(String,Object,int).ProxyTestObject.addRecognitionProperty(String,Object,int)public java.util.Hashtable getNonValueProperties()
null for the domain proxy.getNonValueProperties in class ProxyTestObjectProxyTestObject.getProperties(),
ProxyTestObject.getStandardProperties(),
ProxyTestObject.getProperty(String),
ProxyTestObject.setProperty(String,Object)public java.lang.Object getIndexer(java.lang.String name,
java.lang.Object[] indexes)
getIndexer in class ProxyTestObjectname - the name of the indexerindexes - the indexes to get the value ofpublic IndexerInfo[] getIndexers()
TestObject's indexed propertiesgetIndexers in class ProxyTestObjectcom.rational.test.ft.value.IndexerInfopublic void setIndexer(java.lang.String name,
java.lang.Object[] indexes,
java.lang.Object val)
setIndexer in class ProxyTestObjectname - the name of the indexerindexes - the indexes to set the value ofpublic MethodInfo[] getMethods()
null for the domain proxy.getMethods in class ProxyTestObjectProxyTestObject.getProperties(),
ProxyTestObject.getStandardProperties(),
ProxyTestObject.getNonValueProperties()public java.lang.Object invokeStaticMethod(java.lang.String className,
java.lang.String method,
java.lang.String signature,
java.lang.Object[] args)
invokeStaticMethod
returns a reference to the object in the Software Under Test.
As always, reference objects should be
released by calling one of the unregister methods.TestObject#unregister(),
com.rational.test.ft.script.RationalTestScript#unregister(Object[]),
com.rational.test.ft.script.RationalTestScript#unregisterAll(),
com.rational.test.ft.script.RationalTestScript#getRegisteredTestObjects()public java.lang.Object invokeConstructor(java.lang.String className,
java.lang.String signature,
java.lang.Object[] args)
invokeConstructor
returns a reference to the object in the Software Under Test.
As always, reference objects should be
released by calling one of the unregister methods.
Note that using invokeConstructor to construct a value
class object in the SUT is inefficient because
value class objects can be created locally.TestObject#unregister(),
com.rational.test.ft.script.RationalTestScript#unregister(Object[]),
com.rational.test.ft.script.RationalTestScript#unregisterAll(),
com.rational.test.ft.script.RationalTestScript#getRegisteredTestObjects()public void prepareDomainsForRecording()
public void prepareToStop()
public void readyToStop()
public boolean hasImageVPSupport()
true if the Image VP is supported; false otherwise.