public class HtmlProxy extends ProxyTestObject implements IInternalObjectStatus, IHtmlCustomDomainEnablement, IGetInterestingRecogProsForDynFind, IQuickFind, IXPathFind
This class further contains the default implementation of various base class methods that proxy implementations may need to extend or override.
TestObject
| Property | Usage |
|---|---|
| .bounds | A rectangle representing the bounding rectangle of the object in screen coordinates. |
| .class | This is the test object class name, for example "HtmlTable" for a <Table> element. |
| .id | This is the value of the id attribute of an element. |
| .name | This is the value of the name attribute (Form elements and Frames only) |
| .tag | This is the Html tag for the element |
| .text | This is the text inside of the HTML tags for bounding the
element. For example, <A>This is an Anchor<IMG src=map.gif></a>
the text property will return "This is an
Anchor. All white space are combined and reduced to a single a
blank character if consecutive white space characters are found. |
| .title | This is the value of the title attribute of an element. This is frequently the text displayed when hovering over the element with the mouse. |
| Modifier and Type | Class and Description |
|---|---|
class |
HtmlProxy.GetObjectRunnable |
class |
HtmlProxy.HtmlElementEnumeration |
class |
HtmlProxy.IntegerByReference
Calculate, and set the class index for the mappable targetChild of
"this" object (a parent object).
|
class |
HtmlProxy.InvalidNativeHandleException |
class |
HtmlProxy.JSObjectHtmlElementEnumeration |
class |
HtmlProxy.NativeProxyReleasedException |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BODYTAG |
static java.lang.String |
BOUNDSPROPERTY |
protected IChannel |
channel |
protected static java.lang.String |
CLASSINDEX |
static java.lang.String |
CLASSPROPERTY |
static java.lang.String |
CLIENTRECTPROPERTY |
protected static FtDebug |
debug |
static java.lang.String |
DISABLEDPROPERTY |
protected static java.lang.String |
DOCCLASSINDEX |
java.util.HashMap |
dojoProps |
protected HtmlTestDomainImplementation |
domain |
static int |
HTMLPROXYCHANNELRUNNABLE_TIMEOUTVALUE |
static java.lang.String |
IDPROPERTY |
protected static boolean |
isSiebelActive |
IBrowserCommunicator |
jswarapper |
static java.lang.String |
NAMEPROPERTY |
protected java.lang.Boolean |
parentsTextDescendantsMayBeInteresting |
static java.lang.String |
READONLYPROPERTY |
static java.lang.String |
TAGPROPERTY |
protected static java.lang.String |
TESTDATA_TEXT |
static java.lang.String |
TEXTPROPERTY |
static java.lang.String |
TITLEPROPERTY |
static java.lang.String |
UNIQUEIDPROPERTY |
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, vomClippedRectangleCUSTOM_DOMAIN_LIST, DOJO_CUSTOM_DOMAIN_NAME, SAPWEBPORTAL_CUSTOM_DOMAIN_NAMEINCLUDE_ALL, INCLUDE_JUSTOBJECT, INCLUDE_SIBLINGS| Constructor and Description |
|---|
HtmlProxy(HtmlTestDomainImplementation domain,
IChannel channel,
long handle)
This sole constructor for all proxy objects sets the SUT object
as a member variable for the proxy.
|
HtmlProxy(HtmlTestDomainImplementation domain,
IChannel channel,
long handle,
IBrowserCommunicator jswrap)
This sole constructor for all proxy objects sets the SUT object
as a member variable for the proxy.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAdditionalRecognitionProperties(java.util.Hashtable result) |
protected void |
addChildrenHandlesToVector(HtmlProxy.HtmlElementEnumeration children,
java.util.Vector v) |
protected void |
addChildrenToVector(java.util.Enumeration children,
java.util.Vector v) |
protected void |
addChildrenToVector(java.util.Enumeration children,
java.util.Vector v,
ContextObject contextobject) |
protected void |
addDataDrivableCommands(ProxyTestObject proxy,
java.util.Vector commands,
int includeChildren)
Override this method from the ProxyTestObject.
|
void |
addDojoDomain() |
void |
addRecognitionProperty(java.lang.String property,
java.lang.Object value,
int weight)
This method defines an additional recognition property that this proxy
should utilize.
|
void |
adjustCustomDomains(FindPropertySet fps)
Adjust customdomains based on fps
|
protected java.lang.Boolean |
calculateParentsTextDescendantsMayBecomeInteresting() |
boolean |
callJqueryFind() |
void |
clearAllSubdomains() |
java.util.Vector |
clearCustomSubdomains() |
long |
detach()
Detach the native proxy and return its handle.
|
void |
disableAllHtmlCustomDomains()
Disable all custom domains
|
void |
disableHtmlCustomDomain(java.lang.String domainName)
Disable a html custom domain
|
void |
disableHtmlCustomDomains(java.lang.String[] domainNames)
Disable array of custom domains
|
void |
enableAllHtmlCustomDomains()
Enable all html custom domain
|
void |
enableHtmlCustomDomain(java.lang.String domainName)
Enable a html custom subdomain
|
void |
enableHtmlCustomDomains(java.lang.String[] domainNames)
Enable array of custom domains
|
boolean |
equals(java.lang.Object obj)
Overrides the object-level
equals with an equality against the
handles of the underlying test objects. |
java.lang.Object[] |
fetchProperties(java.lang.String[] props) |
FindResult |
find(IMappedTestObject[] pathToFind,
int myLevel) |
ProxyTestObject[] |
findElementsByXpath(java.lang.String xpath) |
ProxyTestObject[] |
findElementsDirectly(boolean mappable) |
ProxyTestObject[] |
findElementsViaQuery(boolean mappable) |
FindResult |
findElementWithDynamicFind(IMappedTestObject[] pathToFind,
int myLevel) |
HtmlProxy |
findElementWithName(java.lang.String name)
Find the element that is a child of this element which has the given name.
|
protected com.rational.test.ft.domain.html.HtmlProxy.AdditionalRecognitionProperty |
getAddedRecognitionProperty(java.lang.String propertyName)
This method returns the AdditionalRecognitionProperty object identified by propertyName
|
protected java.lang.Object |
getAddedRecognitionPropertyValue(java.lang.String propertyName)
This method returns the value associated with an
added recognition property. |
protected int |
getAddedRecognitionPropertyWeight(java.lang.String propertyName) |
java.lang.String |
getBrowserAppVersion() |
CachedData |
getCachedData() |
IChannel |
getChannel()
Return the channel associated with this object.
|
ProxyTestObject[] |
getChildren()
Uses getChildrenEnumeration to implement.
|
ProxyTestObject[] |
getChildren(ContextObject contextProxy)
Uses getChildrenEnumeration to implement.
|
long |
getChildren(long handle) |
java.util.Enumeration |
getChildrenEnumeration()
Enumerate child objects of the Html Element.
|
java.util.Enumeration |
getChildrenEnumeration(long handle) |
HtmlProxy.HtmlElementEnumeration |
getChildrenHandleEnumeration() |
long[] |
getChildrenHandles() |
long |
getChildrenN(long handle) |
ProxyTestObject[] |
getChildrenWithTagType(java.lang.String tagType) |
protected RecognitionIndex |
getClassIndex() |
java.lang.String |
getCustomClassProperty() |
java.lang.String |
getCustomClassPropertyValue() |
java.lang.String |
getCustomDomainName(boolean isForParent,
boolean isForChildren) |
java.lang.String |
getCustomDomainName(ContextObject contextobject) |
java.lang.String |
getCustomDomainName(ProxyTestObject proxy) |
java.lang.String |
getCustomDomainNameForChildren() |
java.lang.String |
getCustomDomainNameForParent() |
java.lang.Object |
getCustomObject() |
MethodSpecification |
getDataDrivableCommand()
This method must be implemented by any proxy that wishes to support
data driving.
|
java.lang.String |
getDescriptiveName()
Returns a name that can be used to describe the associated UI
object in a script.
|
boolean |
getDisabledProperty()
Check if the control is disabled.
|
protected RecognitionIndex |
getDocClassIndex() |
HtmlDocumentProxy |
getDocument()
Return a Proxy to the Html Document that contains this element.
|
HtmlDocumentProxy |
getDocument(long handle) |
long |
getDocumentHandle(long handle) |
Window |
getDocumentWindow() |
HtmlTestDomainImplementation |
getDomain() |
HtmlProxy.HtmlElementEnumeration |
getElementHandlesByTag(java.lang.String tag) |
ProxyTestObject[] |
getElementObjectsByTag(java.lang.String tag) |
ProxyTestObject[] |
getElementsByNameInProxyTestObjects(java.lang.String name) |
long |
getElementsByTag(long handle,
java.lang.String tag) |
java.util.Enumeration |
getElementsByTag(java.lang.String tag) |
java.util.Enumeration |
getElementsByTagEnumeration(long handle,
java.lang.String tag) |
ProxyTestObject[] |
getElementsByTagInProxyTestObjects(java.lang.String tag) |
long |
getElementsByTagN(long handle,
java.lang.String tag) |
java.util.Enumeration |
getElementsByXpath(Property[] props) |
java.util.Enumeration |
getElementsByXpath(java.lang.String xpath) |
java.util.Enumeration |
getElementsByXpathEnumeration(long handle,
java.lang.String xpath) |
ProxyTestObject[] |
getElementsDirectly(com.rational.test.ft.vp.impl.Property property,
boolean mappable) |
long |
getHandle() |
java.lang.String |
getHtmlTag()
Return the HTML tag for this element.
|
static java.lang.String |
getHtmlTagNameFromClassProperty(java.lang.String classProperty) |
java.lang.String[] |
getIgnorableProperties() |
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 |
java.util.Vector |
getInterestingRecogPropsForDynFind(java.util.Vector properties)
Return .customclass or .dojoclass for html customdomins
|
java.lang.Object |
getJsProps(long handle,
java.lang.String propName) |
IBrowserCommunicator |
getJswarapper() |
ProxyTestObject[] |
getMappableChildren()
Uses getChildrenEnumeration to implement.
|
ProxyTestObject[] |
getMappableChildren(ContextObject contextProxy)
Uses getChildrenEnumeration to implement.
|
ProxyTestObject[] |
getMappableElementsByNameInProxyTestObjects(java.lang.String name) |
ProxyTestObject[] |
getMappableElementsByTagInProxyTestObjects(java.lang.String tag) |
ProxyTestObject |
getMappableParent()
Walks the
getParent() relationship until a mappable parent is encountered. |
ProxyTestObject |
getMappableParent(ContextObject contextProxy)
Walks the
getParent() relationship until a mappable parent is encountered. |
MethodInfo[] |
getMethods()
Returns an array of MethodInfos
|
MethodSpecification |
getMethodSpecForPoint(java.awt.Point pt)
Return a MethodSpecification for a method that returns a java.awt.Point
for the specified coordinates.
|
java.util.Hashtable |
getNonValueProperties()
return the properties that are not supported because of the return value
|
java.lang.Object |
getObject() |
java.lang.String |
getObjectClassName()
Returns the class name of the associated object.
|
ProxyTestObject[] |
getOwnedObjects()
Returns an array of proxies for the objects owned
by this object.
|
ProxyTestObject[] |
getOwnedObjects(java.lang.String domainName)
Returns null only for html because the abstraction is not understood
in this way.
|
ProxyTestObject |
getOwner()
Returns null always because object relationships are not
understood at this level of abstaction.
|
ProxyTestObject |
getParent()
Returns null always because object relationships are not
understood at this level of abstaction.
|
ProxyTestObject |
getParent(ContextObject contextProxy)
Returns null always because object relationships are not
understood at this level of abstaction.
|
long |
getParentN(long handle) |
java.util.Hashtable |
getProperties()
Returns a complete set of properties for the associated
test object.
|
java.lang.String[] |
getProperties(long handle) |
java.lang.Object |
getProperty(long handle,
java.lang.String propertyName) |
java.lang.Object |
getProperty(java.lang.String propertyName)
Get the value for a specific property.
|
java.lang.Object |
getPropertyInternal(java.lang.String propertyName) |
java.lang.Object |
getPropertyInternalRunnable(java.lang.String propertyName) |
java.lang.Object |
getPropertyN(long nativeHandle,
java.lang.String propertyName) |
ProxyTestObject[] |
getProxyTestObjectsFromEnumeration(java.util.Enumeration children) |
boolean |
getReadOnlyProperty() |
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()
Returns
TestObjectRole.ROLE_HTML. |
protected java.lang.String |
getSavedDescriptiveName() |
ScriptCommandFlags |
getScriptCommandFlags()
This method returns an active state value that reflects the state of the
test object at the time of the call.
|
java.util.Hashtable |
getStandardProperties()
Returns a complete set of consistent properties for the associated
test object.
|
java.lang.String[] |
getStandardProperties(long handle) |
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.
|
TestDomainImplementation |
getTestDomain()
Return the
TestDomainImplementation
that this proxy object is associated with. |
java.lang.String |
getTestObjectClassName()
The default GUI marshaller is returned.
|
java.lang.String |
getText()
Return the text associated with this element.
|
ProxyTestObject |
getTopMappableParent()
Returns
getTopParent() which is the browser and
is always mappable. |
ProxyTestObject |
getTopParent()
Returns a proxy object for the top parent of this object.
|
long |
getTopParent(long handle) |
protected ProxyTestObject |
getTopParentInternal()
Returns a proxy object for the top most parent of this object, or null if
this object has no parent.
|
long |
getTopParentN(long handle) |
java.lang.String |
getUniqueId()
Returns a string for the associated object.
|
java.lang.String |
getValueProperty() |
ProxyTestObject |
getVisualTopParent()
Return the top mappable parent that is sensible for the Visual Object Maps
In case of HTML document is top visual parent
In case of PDF, page is the top visual parent
|
boolean |
hasAddedRecognitionProperties()
This method returns true if recocnition properties have been added
to this proxy from an external source through the
addRecognitionProperty method. |
boolean |
isClassIndexConsidered(java.util.Vector properties)
To include or ignore classindex property while scoring the underlying object represented by the
ProxyTestObject. |
protected boolean |
isClassIndexPropertyAndValueDefined() |
protected boolean |
isClassIndexSet()
Test if the class index has been set for this object
|
boolean |
isContextObjectSet() |
boolean |
isContextObjectSet(ProxyTestObject proxy) |
protected boolean |
isDocClassIndexSet()
Test if the document class index has been set for this object
|
boolean |
isEqual(HtmlProxy sourceElem,
HtmlProxy targetElem) |
boolean |
isFindOptimized(FindPropertySet fps) |
boolean |
isObjectDead()
Is the object in the SUT dead?
|
boolean |
isPropertyOptimizable(com.rational.test.ft.vp.impl.Property property) |
boolean |
isReleaseRequired() |
boolean |
isSameObject(java.lang.Object obj)
Returns
true if the supplied test object represents the same
underlying object. |
boolean |
isScoreForFindBYIdorName() |
protected boolean |
isValidRecognitionProperty(java.lang.String propertyName)
This method may be override by a derived class to keep a property
from being added as a recognition property by a base class.
|
boolean |
isXpathSupported() |
static boolean |
matches(java.lang.String toBeCompared,
java.lang.String pattern)
Utility method to match strings for java 1.3
|
void |
processMouseEvent(IMouseActionInfo action)
At this level of the Html proxy abstraction this method is null.
|
void |
release() |
void |
release(java.util.ArrayList handles) |
void |
release(java.util.ArrayList handles,
long exceptionHandle) |
void |
release(long handle) |
void |
release(long[] handles) |
void |
release(long[] handles,
long exceptionHandle) |
void |
releaseElementHandle(long handle) |
void |
releaseN(long nativeHandle) |
static java.lang.String |
replaceAll(java.lang.String originalString,
java.lang.String searchString,
java.lang.String toBeReplaced)
utility method for replacing all the patterns in a string equivalent to jdk 1.4 and above
|
boolean |
restoreAllCustomSubDomains() |
boolean |
restoreCustomSubDomains(java.util.Vector customDomains) |
void |
setCachedData(CachedData cachedData) |
void |
setClass(java.lang.String objectClass) |
protected void |
setClassIndex()
Calculate and set the classindex for this object.
|
protected void |
setClassIndex(int index) |
protected void |
setClassIndex(java.lang.Integer index) |
protected void |
setClassIndex(ProxyTestObject proxyTestObject,
RecognitionIndex index) |
protected void |
setClassIndex(RecognitionIndex index) |
protected boolean |
setClassIndexOfChild(HtmlProxy.IntegerByReference startingIndex,
ProxyTestObject targetChild,
int level) |
boolean |
setCustomClassProperty(java.lang.String customClassProperty) |
boolean |
setCustomClassPropertyValue(java.lang.String customClassPropertyValue) |
boolean |
setCustomDomainInContext(java.lang.String custDomainName) |
protected void |
setDocClassIndex() |
protected void |
setDocClassIndex(int index) |
protected void |
setDocClassIndex(java.lang.Integer index) |
protected void |
setDocClassIndex(RecognitionIndex index) |
void |
setDomain(HtmlTestDomainImplementation domain) |
void |
setIndexer(java.lang.String name,
java.lang.Object[] indexes,
java.lang.Object val)
Sets the value of an indexed property
|
void |
setJswarapper(IBrowserCommunicator jswarapper) |
boolean |
setProperty(long handle,
java.lang.String propertyName,
java.lang.Object value) |
void |
setProperty(java.lang.String propertyName,
java.lang.Object value)
Set the value for a specific property.
|
protected void |
setSavedDescriptiveName(java.lang.String descriptiveName) |
boolean |
shouldBeMapped()
Returns false, by default only GUI test objects are mapped.
|
protected boolean |
shouldDocumentBeAdded(java.util.ArrayList docProps,
long handle) |
static java.lang.String[] |
split(java.lang.String value,
java.lang.String delimiter)
Split the given string.
|
ITestData |
updateTestData(java.lang.String testDataType,
ITestData testData)
This method updates the supplied test data object and returns it.
|
baseClassMatch, canTakeVP, findChildrenWithProperties, findChildrenWithPropertiesAndInvoke, getDataDrivableCommands, getElementWithFocus, getField, getObjectCustomClassName, getProxy, getScriptCommandAnchor, getVisualClippableParent, getVisualClippedRectangle, getVisualMappableChildren, getVOMSpecificProperty, hasSpecialFrameState, isValidObject, ping, suppressKeyActionprotected static FtDebug debug
public static final int HTMLPROXYCHANNELRUNNABLE_TIMEOUTVALUE
public IBrowserCommunicator jswarapper
protected IChannel channel
public java.util.HashMap dojoProps
protected java.lang.Boolean parentsTextDescendantsMayBeInteresting
protected static boolean isSiebelActive
public static final java.lang.String TAGPROPERTY
public static final java.lang.String CLASSPROPERTY
public static final java.lang.String IDPROPERTY
public static final java.lang.String UNIQUEIDPROPERTY
public static final java.lang.String NAMEPROPERTY
public static final java.lang.String BOUNDSPROPERTY
public static final java.lang.String TEXTPROPERTY
public static final java.lang.String TITLEPROPERTY
public static final java.lang.String DISABLEDPROPERTY
public static final java.lang.String CLIENTRECTPROPERTY
public static final java.lang.String BODYTAG
protected static final java.lang.String CLASSINDEX
protected static final java.lang.String DOCCLASSINDEX
public static final java.lang.String READONLYPROPERTY
protected HtmlTestDomainImplementation domain
protected static final java.lang.String TESTDATA_TEXT
public HtmlProxy(HtmlTestDomainImplementation domain, IChannel channel, long handle, IBrowserCommunicator jswrap)
domain - - domain implementation that created this proxy.channel - - channel on which that proxy should be accessed.handle - - handle to native object.public HtmlProxy(HtmlTestDomainImplementation domain, IChannel channel, long handle)
domain - - domain implementation that created this proxy.channel - - channel on which that proxy should be accessed.handle - - handle to native object.public java.lang.String getBrowserAppVersion()
public java.lang.String getValueProperty()
public CachedData getCachedData()
public void setCachedData(CachedData cachedData)
public HtmlTestDomainImplementation getDomain()
public void setDomain(HtmlTestDomainImplementation domain)
public java.lang.String getCustomClassProperty()
public IBrowserCommunicator getJswarapper()
public void setJswarapper(IBrowserCommunicator jswarapper)
public boolean setCustomClassProperty(java.lang.String customClassProperty)
public java.lang.String getCustomClassPropertyValue()
public boolean setCustomClassPropertyValue(java.lang.String customClassPropertyValue)
public boolean isObjectDead()
IInternalObjectStatusisObjectDead in interface IInternalObjectStatuspublic IChannel getChannel()
getChannel in class ProxyTestObjectpublic long getHandle()
public boolean equals(java.lang.Object obj)
equals with an equality against the
handles of the underlying test objects.equals in class 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)
ProxyTestObjecttrue if the supplied test object represents the same
underlying object. This method is different from equals in that it represents an "==" of the object in the AUT rather than an
"equals" of these objects.isSameObject in class 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 ==.public java.lang.String getTestObjectClassName()
getTestObjectClassName in interface IProxyBasegetTestObjectClassName in class ProxyTestObjectpublic final TestDomainImplementation getTestDomain()
TestDomainImplementation
that this proxy object is associated with.
This method should not be overriden.getTestDomain in interface IProxyBasegetTestDomain in class ProxyTestObjectTestDomainImplementation.protected void setSavedDescriptiveName(java.lang.String descriptiveName)
protected java.lang.String getSavedDescriptiveName()
public java.lang.String getDescriptiveName()
getDescriptiveName in class ProxyTestObjectpublic java.lang.String getRole()
TestObjectRole.ROLE_HTML.getRole in class ProxyTestObjectpublic void processMouseEvent(IMouseActionInfo action)
HtmlGuiProxy level support.processMouseEvent in class ProxyTestObjectaction - The event cache and other mouse state information
for this mouse action.IMouseActionInfo,
MethodSpecificationpublic java.lang.String getUniqueId()
ProxyTestObjectgetUniqueId in class ProxyTestObjectpublic boolean shouldBeMapped()
shouldBeMapped in class ProxyTestObjectpublic static java.lang.String[] split(java.lang.String value,
java.lang.String delimiter)
value - delimiter - public java.lang.Object getObject()
public java.lang.Object getCustomObject()
public java.lang.String getObjectClassName()
ProxyTestObjectgetObjectClassName in class ProxyTestObjectpublic ProxyTestObject getParent(ContextObject contextProxy)
getParent in class ProxyTestObjectcontextProxy - The contextProxy Test object is to set the
context while finding the childrenpublic ProxyTestObject getParent()
getParent in class ProxyTestObjectpublic long getParentN(long handle)
public ProxyTestObject getMappableParent()
getParent() relationship until a mappable parent is encountered.getMappableParent in class ProxyTestObjectpublic ProxyTestObject getMappableParent(ContextObject contextProxy)
getParent() relationship until a mappable parent is encountered.getMappableParent in class ProxyTestObjectcontextProxy - The contextProxy Test object is to set the
context while finding the childrenpublic boolean isContextObjectSet()
public boolean isContextObjectSet(ProxyTestObject proxy)
public java.lang.String getCustomDomainName(ProxyTestObject proxy)
public java.lang.String getCustomDomainNameForParent()
public java.lang.String getCustomDomainNameForChildren()
public java.lang.String getCustomDomainName(boolean isForParent,
boolean isForChildren)
public java.lang.String getCustomDomainName(ContextObject contextobject)
public boolean setCustomDomainInContext(java.lang.String custDomainName)
public boolean restoreAllCustomSubDomains()
public void addDojoDomain()
public java.util.Vector clearCustomSubdomains()
public void clearAllSubdomains()
public boolean restoreCustomSubDomains(java.util.Vector customDomains)
public ProxyTestObject getTopParent()
getTopParent in class ProxyTestObjectprotected ProxyTestObject getTopParentInternal()
public long getTopParent(long handle)
public long getTopParentN(long handle)
public ProxyTestObject getTopMappableParent()
getTopParent() which is the browser and
is always mappable.getTopMappableParent in class ProxyTestObjectpublic java.util.Enumeration getChildrenEnumeration()
public long getChildren(long handle)
public long getChildrenN(long handle)
public java.util.Enumeration getChildrenEnumeration(long handle)
protected void addChildrenToVector(java.util.Enumeration children,
java.util.Vector v)
protected void addChildrenToVector(java.util.Enumeration children,
java.util.Vector v,
ContextObject contextobject)
public ProxyTestObject[] getChildren(ContextObject contextProxy)
getChildren in class ProxyTestObjectcontextProxy - The contextProxy Test object is to set the
context while finding the childrenpublic ProxyTestObject[] getChildren()
getChildren in class ProxyTestObjectprotected RecognitionIndex getClassIndex()
protected void setClassIndex()
protected void setClassIndex(int index)
protected void setClassIndex(java.lang.Integer index)
protected void setClassIndex(RecognitionIndex index)
protected void setClassIndex(ProxyTestObject proxyTestObject, RecognitionIndex index)
protected boolean isClassIndexSet()
protected boolean isDocClassIndexSet()
protected RecognitionIndex getDocClassIndex()
protected void setDocClassIndex()
protected void setDocClassIndex(int index)
protected void setDocClassIndex(java.lang.Integer index)
protected void setDocClassIndex(RecognitionIndex index)
protected boolean isClassIndexPropertyAndValueDefined()
protected boolean setClassIndexOfChild(HtmlProxy.IntegerByReference startingIndex, ProxyTestObject targetChild, int level)
protected java.lang.Boolean calculateParentsTextDescendantsMayBecomeInteresting()
public ProxyTestObject[] getMappableChildren()
getMappableChildren in class ProxyTestObjectpublic ProxyTestObject[] getMappableChildren(ContextObject contextProxy)
getMappableChildren in class ProxyTestObjectpublic ProxyTestObject getOwner()
getOwner in class ProxyTestObjectpublic ProxyTestObject[] getOwnedObjects()
ProxyTestObjectgetOwnedObjects in class ProxyTestObjectpublic ProxyTestObject[] getOwnedObjects(java.lang.String domainName)
getOwnedObjects in class ProxyTestObjectpublic MethodSpecification getMethodSpecForPoint(java.awt.Point pt)
IGraphical.getScreenPoint will be returned. However, if a proxy can fingetMethodSpecForPoint in class ProxyTestObjectaction - The event cache and other mouse state information
for this mouse action.MethodSpecificationpublic java.util.Hashtable getRecognitionProperties()
getRecognitionProperties in class ProxyTestObjectProxyTestObject.getRecognitionPropertyWeight(String),
ProxyTestObject.getProperty(String),
ProxyTestObject.addRecognitionProperty(String,Object,int)protected boolean isValidRecognitionProperty(java.lang.String propertyName)
protected void addAdditionalRecognitionProperties(java.util.Hashtable result)
public int getRecognitionPropertyWeight(java.lang.String propertyName)
getRecognitionPropertyWeight in class ProxyTestObjectpropertyName - The name of the recognition property to
return a weight value for.ProxyTestObject.getRecognitionProperties()protected int getAddedRecognitionPropertyWeight(java.lang.String propertyName)
public void addRecognitionProperty(java.lang.String property,
java.lang.Object value,
int weight)
getRecognitionProperties method.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 should be returned when the getRecognitionPropertyWeight method is called.getRecognitionProperties(),
getRecognitionPropertyWeight(String),
getProperty(String)public boolean hasAddedRecognitionProperties()
addRecognitionProperty method.hasAddedRecognitionProperties in class ProxyTestObjectaddRecognitionProperty
method.addRecognitionProperty(String,Object,int)protected com.rational.test.ft.domain.html.HtmlProxy.AdditionalRecognitionProperty getAddedRecognitionProperty(java.lang.String propertyName)
protected java.lang.Object getAddedRecognitionPropertyValue(java.lang.String propertyName)
added recognition property.
This method exists for quick lookup of recognition properties that have been
added to this proxies recognition property set.propertyName - The name of the added recognition property to look for.null if the property does not exist.public boolean getDisabledProperty()
false value is returned (the control is assumed to be enabled).true is returned if the control is disabled.public boolean getReadOnlyProperty()
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 ProxyTestObjectProxyTestObject.getProperty(String),
ProxyTestObject.setProperty(String,Object),
ProxyTestObject.getStandardProperties(),
ProxyTestObject.getNonValueProperties()public java.lang.String[] getProperties(long handle)
public java.util.Hashtable getStandardProperties()
ProxyTestObjectProxyTestObject.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 ProxyTestObjectProxyTestObject.getProperty(String),
ProxyTestObject.setProperty(String,Object),
ProxyTestObject.getProperties(),
ProxyTestObject.getNonValueProperties()public java.lang.String[] getStandardProperties(long handle)
public java.util.Hashtable getNonValueProperties()
getNonValueProperties in class ProxyTestObjectProxyTestObject.getProperties(),
ProxyTestObject.getStandardProperties(),
ProxyTestObject.getProperty(String),
ProxyTestObject.setProperty(String,Object)public MethodInfo[] getMethods()
getMethods in class ProxyTestObjectProxyTestObject.getProperties(),
ProxyTestObject.getStandardProperties(),
ProxyTestObject.getNonValueProperties()public java.lang.Object getProperty(java.lang.String propertyName)
getProperty in class ProxyTestObjectpropertyName - The name of the property to fetch.ProxyTestObject.getProperties(),
ProxyTestObject.setProperty(String,Object),
ProxyTestObject.getRecognitionProperties(),
ProxyTestObject.addRecognitionProperty(String,Object,int)public java.lang.Object getPropertyInternal(java.lang.String propertyName)
public java.lang.Object[] fetchProperties(java.lang.String[] props)
public java.lang.Object getPropertyInternalRunnable(java.lang.String propertyName)
public Window getDocumentWindow()
public java.lang.Object getProperty(long handle,
java.lang.String propertyName)
public java.lang.Object getJsProps(long handle,
java.lang.String propName)
public java.lang.Object getPropertyN(long nativeHandle,
java.lang.String propertyName)
public void setProperty(java.lang.String propertyName,
java.lang.Object value)
setProperty in class ProxyTestObjectpropertyName - The name of the property to redefine. This
name is the same as that returned by
getProperties().ProxyTestObject.getProperties(),
ProxyTestObject.getProperty(String)public boolean setProperty(long handle,
java.lang.String propertyName,
java.lang.Object value)
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 void releaseElementHandle(long handle)
throws java.lang.IllegalAccessException
java.lang.IllegalAccessExceptionpublic ScriptCommandFlags getScriptCommandFlags()
ProxyTestObjectgetScriptCommandFlags in class ProxyTestObjectpublic long detach()
public boolean isReleaseRequired()
public void release()
public void release(long handle)
throws java.lang.IllegalAccessException
java.lang.IllegalAccessExceptionpublic void releaseN(long nativeHandle)
throws java.lang.IllegalAccessException
java.lang.IllegalAccessExceptionpublic java.lang.String getHtmlTag()
public java.lang.String getText()
public HtmlProxy findElementWithName(java.lang.String name)
- - name - element should have this name attributepublic HtmlDocumentProxy getDocument()
public HtmlDocumentProxy getDocument(long handle)
public long getDocumentHandle(long handle)
public java.util.Hashtable getTestDataTypes()
getTestDataTypes in class ProxyTestObjectgetTestData(String),
ITestDatapublic ITestData getTestData(java.lang.String testDataType)
getTestDataTypes.getTestData in class ProxyTestObjecttestDataType - A test data type supplied by
getTestDataTypes.getTestDataTypes(),
ITestDatapublic ITestData updateTestData(java.lang.String testDataType,
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 ProxyTestObjecttestDataType - A test data type supplied by
getTestDataTypes.testData - The test data base object that requires
updating.getTestDataTypes(),
ITestDatapublic boolean isClassIndexConsidered(java.util.Vector properties)
ProxyTestObjectProxyTestObject.isClassIndexConsidered in class ProxyTestObjectpublic ProxyTestObject getVisualTopParent()
ProxyTestObjectgetVisualTopParent in class ProxyTestObjectpublic HtmlProxy.HtmlElementEnumeration getElementHandlesByTag(java.lang.String tag)
public java.util.Enumeration getElementsByTagEnumeration(long handle,
java.lang.String tag)
public void release(long[] handles)
public void release(java.util.ArrayList handles)
public void release(java.util.ArrayList handles,
long exceptionHandle)
public void release(long[] handles,
long exceptionHandle)
public java.util.Enumeration getElementsByTag(java.lang.String tag)
public ProxyTestObject[] getElementObjectsByTag(java.lang.String tag)
public long getElementsByTag(long handle,
java.lang.String tag)
public long getElementsByTagN(long handle,
java.lang.String tag)
public MethodSpecification getDataDrivableCommand()
null value is returned.getDataDrivableCommand in interface IDataDrivengetDataDrivableCommand in class ProxyTestObjectProxyTestObject.getDataDrivableCommands(int)protected void addDataDrivableCommands(ProxyTestObject proxy, java.util.Vector commands, int includeChildren)
addDataDrivableCommands in class ProxyTestObjectpublic java.lang.String[] getIgnorableProperties()
getIgnorableProperties in class ProxyTestObjectpublic static java.lang.String getHtmlTagNameFromClassProperty(java.lang.String classProperty)
protected void addChildrenHandlesToVector(HtmlProxy.HtmlElementEnumeration children, java.util.Vector v)
public HtmlProxy.HtmlElementEnumeration getChildrenHandleEnumeration()
public long[] getChildrenHandles()
public ProxyTestObject[] getChildrenWithTagType(java.lang.String tagType)
public void enableHtmlCustomDomain(java.lang.String domainName)
enableHtmlCustomDomain in interface IHtmlCustomDomainEnablementpublic void enableHtmlCustomDomains(java.lang.String[] domainNames)
enableHtmlCustomDomains in interface IHtmlCustomDomainEnablementpublic void enableAllHtmlCustomDomains()
enableAllHtmlCustomDomains in interface IHtmlCustomDomainEnablementpublic void disableHtmlCustomDomain(java.lang.String domainName)
disableHtmlCustomDomain in interface IHtmlCustomDomainEnablementpublic void disableAllHtmlCustomDomains()
disableAllHtmlCustomDomains in interface IHtmlCustomDomainEnablementpublic void disableHtmlCustomDomains(java.lang.String[] domainNames)
disableHtmlCustomDomains in interface IHtmlCustomDomainEnablementpublic java.util.Vector getInterestingRecogPropsForDynFind(java.util.Vector properties)
getInterestingRecogPropsForDynFind in interface IGetInterestingRecogProsForDynFindpublic void adjustCustomDomains(FindPropertySet fps)
adjustCustomDomains in interface IHtmlCustomDomainEnablementpublic static boolean matches(java.lang.String toBeCompared,
java.lang.String pattern)
pattern - toBeCompared - public static java.lang.String replaceAll(java.lang.String originalString,
java.lang.String searchString,
java.lang.String toBeReplaced)
originalString - searchString - toBeReplaced - public boolean isFindOptimized(FindPropertySet fps)
isFindOptimized in interface IQuickFindpublic boolean callJqueryFind()
callJqueryFind in interface IQuickFindpublic ProxyTestObject[] findElementsDirectly(boolean mappable)
findElementsDirectly in interface IQuickFindprotected boolean shouldDocumentBeAdded(java.util.ArrayList docProps,
long handle)
public ProxyTestObject[] findElementsViaQuery(boolean mappable)
findElementsViaQuery in interface IQuickFindpublic ProxyTestObject[] getProxyTestObjectsFromEnumeration(java.util.Enumeration children)
public java.util.Enumeration getElementsByXpath(Property[] props)
public java.util.Enumeration getElementsByXpath(java.lang.String xpath)
public java.util.Enumeration getElementsByXpathEnumeration(long handle,
java.lang.String xpath)
public FindResult find(IMappedTestObject[] pathToFind,
int myLevel)
find in interface IQuickFindpublic FindResult findElementWithDynamicFind(IMappedTestObject[] pathToFind,
int myLevel)
findElementWithDynamicFind in interface IQuickFindpublic ProxyTestObject[] getElementsByNameInProxyTestObjects(java.lang.String name)
getElementsByNameInProxyTestObjects in interface IQuickFindpublic ProxyTestObject[] getElementsByTagInProxyTestObjects(java.lang.String tag)
getElementsByTagInProxyTestObjects in interface IQuickFindpublic ProxyTestObject[] getElementsDirectly(com.rational.test.ft.vp.impl.Property property, boolean mappable)
getElementsDirectly in interface IQuickFindpublic ProxyTestObject[] getMappableElementsByNameInProxyTestObjects(java.lang.String name)
getMappableElementsByNameInProxyTestObjects in interface IQuickFindpublic ProxyTestObject[] getMappableElementsByTagInProxyTestObjects(java.lang.String tag)
getMappableElementsByTagInProxyTestObjects in interface IQuickFindpublic boolean isPropertyOptimizable(com.rational.test.ft.vp.impl.Property property)
isPropertyOptimizable in interface IQuickFindpublic boolean isScoreForFindBYIdorName()
isScoreForFindBYIdorName in interface IQuickFindpublic ProxyTestObject[] findElementsByXpath(java.lang.String xpath)
findElementsByXpath in interface IXPathFindpublic boolean isXpathSupported()
isXpathSupported in interface IXPathFindpublic void setClass(java.lang.String objectClass)