|
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.Object com.rational.test.ft.sys.RegisteredObject com.rational.test.ft.domain.ProxyTestObject com.rational.test.ft.domain.DomainProxy com.rational.test.ft.domain.java.JavaDomainProxy
public class JavaDomainProxy
The class for the Java Domain Proxy.
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 | |
---|---|
JavaDomainProxy(java.lang.Object theObjectInTheSUT)
Sets the SUT object as a member variable for the proxy. |
Method Summary | |
---|---|
java.util.Hashtable |
getProperties()
Returns a complete set of properties for the associated test object. |
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.util.Hashtable |
getStandardProperties()
Returns a complete set of consistent properties for the associated test object. |
java.util.Hashtable |
getTestDataTypes()
Returns a hashtable of data type descriptions of the verification point data available with the associated object in the SUT. |
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 |
setProperty(java.lang.String propertyName, java.lang.Object value)
Sets the value for a specific property. |
boolean |
shouldBeMapped()
Determines whether the object is interesting from a persistent testability sense and should therefore be added to the object map. |
Methods inherited from class com.rational.test.ft.domain.DomainProxy |
---|
addRecognitionProperty, getChildren, getDescriptiveName, getImplementationName, getIndexer, getIndexers, getMappableChildren, getMappableParent, getMethods, getMethodSpecForPoint, getName, getNonValueProperties, getOwnedObjects, getOwner, getParent, getTestDomain, getTestObjectClassName, getTopMappableParent, getTopObjects, getTopParent, getUniqueId, hasAddedRecognitionProperties, prepareDomainsForRecording, prepareToStop, processMouseEvent, readyToStop, setIndexer |
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 JavaDomainProxy(java.lang.Object theObjectInTheSUT)
Method Detail |
---|
public java.util.Hashtable getTestDataTypes()
getTestDataTypes
in class ProxyTestObject
ProxyTestObject.getTestData(String)
,
ITestData
public java.util.Hashtable getRecognitionProperties()
getRecognitionProperties
in class ProxyTestObject
ProxyTestObject.getRecognitionPropertyWeight(String)
,
ProxyTestObject.getProperty(String)
,
ProxyTestObject.addRecognitionProperty(String,Object,int)
public int getRecognitionPropertyWeight(java.lang.String propertyName)
getRecognitionPropertyWeight
in class ProxyTestObject
propertyName
- The name of the recognition property to
return a weight value for.ProxyTestObject.getRecognitionProperties()
public java.util.Hashtable getProperties()
ProxyTestObject
This method does not return properties whose values are references to objects. The method ProxyTestObject.getNonValueProperties()
returns information about such properties.
getProperties
in class ProxyTestObject
ProxyTestObject.getProperty(String)
,
ProxyTestObject.setProperty(String,Object)
,
ProxyTestObject.getStandardProperties()
,
ProxyTestObject.getNonValueProperties()
public java.util.Hashtable getStandardProperties()
ProxyTestObject
ProxyTestObject.getProperties()
.
The HTML domain supports standard properties and returns properties that are consistent across browser versions.
The Java domain does not support this notion of standard properties.
In this domain, getStandardProperties,
and getProperties
do the same thing.
For HTML, standard properties are a subset of the properties returned by getProperties()
.
The meaning of a property is specific to the test domain and the test object. Typically, this is a set of name/value pairs that describe the test object and its active state. Properties such as font, colors, and coordinate information are typically associated with a GUI test object. Associated data and state information can also
be returned, depending on the test object.
getStandardProperties
in class ProxyTestObject
ProxyTestObject.getProperty(String)
,
ProxyTestObject.setProperty(String,Object)
,
ProxyTestObject.getProperties()
,
ProxyTestObject.getNonValueProperties()
public java.lang.Object getProperty(java.lang.String propertyName)
getProperty
in class ProxyTestObject
propertyName
- The name of the property to fetch.
ProxyTestObject.getProperties()
,
ProxyTestObject.setProperty(String,Object)
,
ProxyTestObject.getRecognitionProperties()
,
ProxyTestObject.addRecognitionProperty(String,Object,int)
public void setProperty(java.lang.String propertyName, java.lang.Object value)
setProperty
in class ProxyTestObject
propertyName
- The name of the property to redefine. This name is the same as that returned by
getProperties()
.ProxyTestObject.getProperties()
,
ProxyTestObject.getProperty(String)
public boolean shouldBeMapped()
false
.
shouldBeMapped
in class ProxyTestObject
true
if the represented control is interesting other than for nested objects.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.
invokeStaticMethod
in class DomainProxy
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.
invokeConstructor
in class DomainProxy
TestObject#unregister()
,
RationalTestScript.unregister(Object[])
,
RationalTestScript.unregisterAll()
,
RationalTestScript.getRegisteredTestObjects()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |