public class ActiveXProxy
extends com.rational.test.ft.domain.ProxyTestObject
TestObject
| Modifier and Type | Class and Description |
|---|---|
class |
ActiveXProxy.InvalidNativeHandleException |
class |
ActiveXProxy.NativeProxyReleasedException |
class |
ActiveXProxy.ReleaseElementHandleRunnable |
| Modifier and Type | Field and Description |
|---|---|
protected com.rational.test.ft.domain.IChannel |
channel |
protected static com.rational.test.ft.util.FtDebug |
debug |
protected com.rational.test.ft.domain.ProxyTestObject |
tempParent |
protected static java.lang.String |
TESTDATA_TEXT |
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 |
|---|
ActiveXProxy(long handle) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRecognitionProperty(java.lang.String property,
java.lang.Object value,
int weight)
Not implemented
|
long |
detach()
Detach the native proxy and return its handle.
|
boolean |
equals(java.lang.Object obj)
Overrides the object-level
equals with an equality against the
handles of the underlying test objects. |
HtmlProxy |
findElementWithName(java.lang.String name)
Element does not have children.
|
protected java.lang.Object |
getAddedRecognitionPropertyValue(java.lang.String propertyName) |
com.rational.test.ft.domain.IChannel |
getChannel()
Return the channel associated with this object.
|
com.rational.test.ft.domain.ProxyTestObject[] |
getChildren()
Objects have no children
|
java.util.Enumeration |
getChildrenEnumeration()
Objects have no children
|
java.lang.String |
getDescriptiveName() |
protected long |
getHandle() |
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()
Objects have no children
|
com.rational.test.ft.domain.ProxyTestObject |
getMappableParent()
Returns null always because object relationships are not
applicable.
|
protected com.rational.test.ft.domain.ProxyTestObject |
getMappableParentInternal()
Returns null always because object relationships are not
applicable.
|
com.rational.test.ft.value.MethodInfo[] |
getMethods()
Returns an array of MethodInfos
|
com.rational.test.ft.sys.MethodSpecification |
getMethodSpecForPoint(java.awt.Point pt) |
java.util.Hashtable |
getNonValueProperties()
return the properties that are not supported because of the return value
|
java.lang.Object |
getObject() |
java.lang.String |
getObjectClassName() |
com.rational.test.ft.domain.ProxyTestObject[] |
getOwnedObjects()
Returns null always
|
com.rational.test.ft.domain.ProxyTestObject |
getOwner()
Returns null always
|
com.rational.test.ft.domain.ProxyTestObject |
getParent()
Returns null always because object relationships are not
applicable.
|
java.util.Hashtable |
getProperties() |
java.lang.Object |
getProperty(java.lang.String propertyName)
Get the value for a specific property.
|
java.lang.Object |
getPropertyInternal(java.lang.String propertyName)
Get the value for a specific property.
|
java.util.Hashtable |
getRecognitionProperties()
Not a GUI object so does not have any recogntion properties
|
int |
getRecognitionPropertyWeight(java.lang.String propertyName) |
int |
getRefCount() |
int |
getRefCount(long handle) |
java.lang.String |
getRole()
Returns
TestObjectRole.ROLE_OBJECT. |
com.rational.test.ft.script.ScriptCommandFlags |
getScriptCommandFlags() |
java.util.Hashtable |
getStandardProperties() |
com.rational.test.ft.vp.ITestData |
getTestData(java.lang.String testDataType)
This method constructs the specified verification data 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.
|
com.rational.test.ft.domain.TestDomainImplementation |
getTestDomain()
Return the
TestDomainImplementation
that this proxy object is associated with. |
java.lang.String |
getTestObjectClassName() |
java.lang.String |
getText()
Element does not have associated text.
|
com.rational.test.ft.domain.ProxyTestObject |
getTopMappableParent()
Returns
getTopParent() which is the browser and
is always mappable. |
com.rational.test.ft.domain.ProxyTestObject |
getTopParent()
Returns null always because object relationships are not
applicable.
|
java.lang.String |
getUniqueId()
Return a unique string for the associated object.
|
boolean |
hasAddedRecognitionProperties() |
void |
initialize(HtmlTestDomainImplementation domain,
com.rational.test.ft.domain.IChannel channel) |
boolean |
isReleaseRequired() |
boolean |
isSameObject(java.lang.Object obj) |
long |
marshalInterface() |
long |
marshalInterface(long handle) |
void |
processMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action) |
void |
release() |
protected void |
release(long nativeHandle) |
void |
releaseElementHandle(long handle) |
void |
releaseMeow(long meowHandle) |
void |
releaseMeow(long handle,
long meowHandle) |
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)
Set the value for a specific property.
|
boolean |
shouldBeMapped()
Returns false, by default only GUI test objects are mapped.
|
com.rational.test.ft.vp.ITestData |
updateTestData(java.lang.String testDataType,
com.rational.test.ft.vp.ITestData testData)
This method updates the supplied test data object and returns it.
|
addDataDrivableCommands, baseClassMatch, canTakeVP, findChildrenWithProperties, findChildrenWithPropertiesAndInvoke, getChildren, getDataDrivableCommand, getDataDrivableCommands, getElementWithFocus, getField, getIgnorableProperties, getMappableChildren, getMappableParent, getObjectCustomClassName, getOwnedObjects, getParent, getProxy, getScriptCommandAnchor, getVisualClippableParent, getVisualClippedRectangle, getVisualMappableChildren, getVisualTopParent, getVOMSpecificProperty, hasSpecialFrameState, isClassIndexConsidered, isValidObject, ping, suppressKeyActionprotected static com.rational.test.ft.util.FtDebug debug
protected com.rational.test.ft.domain.IChannel channel
protected com.rational.test.ft.domain.ProxyTestObject tempParent
protected static final java.lang.String TESTDATA_TEXT
public void initialize(HtmlTestDomainImplementation domain, com.rational.test.ft.domain.IChannel channel)
public com.rational.test.ft.domain.IChannel getChannel()
getChannel in interface com.rational.test.ft.domain.IChannelObjectgetChannel in class com.rational.test.ft.domain.ProxyTestObjectprotected long getHandle()
public boolean equals(java.lang.Object obj)
equals with an equality against the
handles of the underlying test objects.equals in class com.rational.test.ft.domain.ProxyTestObjectobj - The object to compare against. If obj is a
ProxyTestObject, the comparison is made with
the underlying object.true if the underlying test objects are equal.public boolean isSameObject(java.lang.Object obj)
isSameObject in class com.rational.test.ft.domain.ProxyTestObjectpublic 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 getRole()
TestObjectRole.ROLE_OBJECT.getRole in class com.rational.test.ft.domain.ProxyTestObjectpublic void processMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
processMouseEvent in class com.rational.test.ft.domain.ProxyTestObjectpublic java.lang.String getUniqueId()
getUniqueId in class com.rational.test.ft.domain.ProxyTestObjectpublic boolean shouldBeMapped()
shouldBeMapped in class com.rational.test.ft.domain.ProxyTestObjectpublic java.lang.Object getObject()
getObject in class com.rational.test.ft.sys.RegisteredObjectpublic java.lang.String getObjectClassName()
getObjectClassName in class com.rational.test.ft.domain.ProxyTestObjectpublic com.rational.test.ft.domain.ProxyTestObject getParent()
getParent in class com.rational.test.ft.domain.ProxyTestObjectpublic com.rational.test.ft.domain.ProxyTestObject getMappableParent()
getMappableParent in class com.rational.test.ft.domain.ProxyTestObjectprotected com.rational.test.ft.domain.ProxyTestObject getMappableParentInternal()
public com.rational.test.ft.domain.ProxyTestObject getTopParent()
getTopParent in class com.rational.test.ft.domain.ProxyTestObjectpublic com.rational.test.ft.domain.ProxyTestObject getTopMappableParent()
getTopParent() which is the browser and
is always mappable.getTopMappableParent in class com.rational.test.ft.domain.ProxyTestObjectpublic java.util.Enumeration getChildrenEnumeration()
public com.rational.test.ft.domain.ProxyTestObject[] getChildren()
getChildren in class com.rational.test.ft.domain.ProxyTestObjectpublic com.rational.test.ft.domain.ProxyTestObject[] getMappableChildren()
getMappableChildren in class com.rational.test.ft.domain.ProxyTestObjectpublic 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 com.rational.test.ft.sys.MethodSpecification getMethodSpecForPoint(java.awt.Point pt)
getMethodSpecForPoint in class com.rational.test.ft.domain.ProxyTestObjectpublic java.util.Hashtable getRecognitionProperties()
getRecognitionProperties in class com.rational.test.ft.domain.ProxyTestObjectpublic 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)
addRecognitionProperty in class com.rational.test.ft.domain.ProxyTestObjectpublic boolean hasAddedRecognitionProperties()
hasAddedRecognitionProperties in class com.rational.test.ft.domain.ProxyTestObjectprotected java.lang.Object getAddedRecognitionPropertyValue(java.lang.String propertyName)
public java.util.Hashtable getProperties()
getProperties in class com.rational.test.ft.domain.ProxyTestObjectpublic java.util.Hashtable getStandardProperties()
getStandardProperties in class com.rational.test.ft.domain.ProxyTestObjectpublic java.util.Hashtable getNonValueProperties()
getNonValueProperties 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 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 java.lang.Object getPropertyInternal(java.lang.String propertyName)
public void setProperty(java.lang.String propertyName,
java.lang.Object value)
setProperty in class com.rational.test.ft.domain.ProxyTestObjectpublic com.rational.test.ft.script.ScriptCommandFlags getScriptCommandFlags()
getScriptCommandFlags in class com.rational.test.ft.domain.ProxyTestObjectpublic long detach()
public boolean isReleaseRequired()
isReleaseRequired in class com.rational.test.ft.sys.RegisteredObjectpublic void release()
release in class com.rational.test.ft.sys.RegisteredObjectpublic void releaseElementHandle(long handle)
protected void release(long nativeHandle)
public java.lang.String getText()
public HtmlProxy findElementWithName(java.lang.String name)
public java.util.Hashtable getTestDataTypes()
getTestDataTypes in class com.rational.test.ft.domain.ProxyTestObjectgetTestData(String),
ITestDatapublic com.rational.test.ft.vp.ITestData getTestData(java.lang.String testDataType)
getTestDataTypes.getTestData in class com.rational.test.ft.domain.ProxyTestObjecttestDataType - A test data type supplied by
getTestDataTypes.getTestDataTypes(),
ITestDatapublic com.rational.test.ft.vp.ITestData updateTestData(java.lang.String testDataType,
com.rational.test.ft.vp.ITestData testData)
getTestDataTypes.
The testData is a previously supplied ITestData
object that needs to be updated to reflect the current state
of the associated test object.updateTestData in class com.rational.test.ft.domain.ProxyTestObjecttestDataType - A test data type supplied by
getTestDataTypes.testData - The test data base object that requires
updating.getTestDataTypes(),
ITestDatapublic long marshalInterface()
public void releaseMeow(long meowHandle)
public int getRefCount()
public long marshalInterface(long handle)
public void releaseMeow(long handle,
long meowHandle)
public int getRefCount(long handle)