|
IBM Rational Functional Tester Version 8.1.1000 IBM Rational Functional Tester Proxy SDK Reference Project Version 2.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rational.test.ft.sys.RegisteredObject
com.rational.test.ft.domain.ProxyTestObject
com.rational.test.ft.domain.DomainProxy
public abstract class DomainProxy
The base class for all domain proxies.
| Field Summary |
|---|
| Fields inherited from class com.rational.test.ft.sys.RegisteredObject |
|---|
theTestObject |
| Fields inherited from interface com.rational.test.ft.domain.IDataDriven |
|---|
INCLUDE_ALL, INCLUDE_JUSTOBJECT, INCLUDE_SIBLINGS |
| Constructor Summary | |
|---|---|
DomainProxy(java.lang.Object theTestObject)
Sets the object as a member variable for the proxy. |
|
| Method Summary | |
|---|---|
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 |
com.rational.test.ft.value.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. |
com.rational.test.ft.value.MethodInfo[] |
getMethods()
Always returns null for the domain proxy. |
com.rational.test.ft.sys.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()
Returns a valid class name specification, or returns null if shouldBeMapped()
returns true. |
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. |
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 |
| Methods inherited from class com.rational.test.ft.sys.RegisteredObject |
|---|
addProxyReference, dereference, getObject, getRegisteredId, getTransactionId, isReferenced, isReleaseRequired, register, registerTransiently, release, toString, unregister |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DomainProxy(java.lang.Object theTestObject)
| Method Detail |
|---|
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,
MethodSpecificationpublic com.rational.test.ft.sys.MethodSpecification getMethodSpecForPoint(java.awt.Point pt)
getMethodSpecForPoint in class ProxyTestObjectMethodSpecificationpublic 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 com.rational.test.ft.value.IndexerInfo[] getIndexers()
TestObject's indexed properties
getIndexers in class ProxyTestObjectIndexerInfopublic 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 com.rational.test.ft.value.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(),
RationalTestScript.unregister(Object[]),
RationalTestScript.unregisterAll(),
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(),
RationalTestScript.unregister(Object[]),
RationalTestScript.unregisterAll(),
RationalTestScript.getRegisteredTestObjects()public void prepareDomainsForRecording()
public void prepareToStop()
public void readyToStop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||