|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.safs.GuiObjectRecognition
org.safs.rational.RGuiObjectRecognition
public class RGuiObjectRecognition
External users would normally not use this class directly.
Consequently, the API and associated data is subject to change without notice.
Rational specific implementation for storing and comparing GuiTestObjects a\ against generic recognition strings.
To effectively support "CurrentWindow" recognition strings we now have the need for JNA: Java Native Access
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.safs.GuiObjectRecognition |
|---|
GuiObjectRecognition.GORInfo |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
RGuiObjectRecognition(java.lang.String objectInfo,
Script script,
int govLevel)
Standard Constructor |
|
RGuiObjectRecognition(java.lang.String objectInfo,
java.lang.String aQualifierSeparator,
int govLevel,
Script script)
Constructor with Alternate Qualifier Separator |
|
| Method Summary | |
|---|---|
static java.lang.String |
getCaption(TestObject obj)
|
protected java.util.List |
getDotNetSuperClassNames(TestObject theObject)
|
static java.lang.String |
getID(TestObject obj)
|
protected java.util.List |
getJavaSuperClassNames(TestObject theObject)
|
java.lang.Object |
getMatchingPathObject(java.lang.Object theObject,
java.lang.String thePath)
Used internally by GuiObjectRecognition superclass. Rational RobotJ mechanism to provide the requested information. |
static java.lang.String |
getName(TestObject obj)
08.29.2006 - bolawl - With the addition of getObjectAccessibleName(), it's no longer necessary to check for accessibleName here. |
java.lang.String |
getObjectAccessibleName(java.lang.Object obj)
Allow individual engines (ie. |
java.lang.String |
getObjectCaption(java.lang.Object theObject)
Used internally by GuiObjectRecognition superclass. Rational RobotJ mechanism to provide the requested information. |
java.lang.String |
getObjectClassName(java.lang.Object theObject)
Used internally by GuiObjectRecognition superclass. Rational RobotJ mechanism to provide the requested information. |
java.lang.String |
getObjectDomain(java.lang.Object theObject)
Used internally or by subclasses only. |
java.lang.String |
getObjectID(java.lang.Object theObject)
Used internally by GuiObjectRecognition superclass. Rational RobotJ mechanism to provide the requested information. |
int |
getObjectLevel(java.lang.Object theObject)
not yet implemented Used internally by GuiObjectRecognition superclass. Rational RobotJ mechanism to provide the requested information. |
java.lang.String |
getObjectName(java.lang.Object theObject)
Used internally by GuiObjectRecognition superclass. Rational RobotJ mechanism to provide the requested information. |
java.lang.String |
getObjectProperty(java.lang.Object theObject,
java.lang.String theProperty)
Used internally by GuiObjectRecognition superclass. Rational RobotJ mechanism to provide the requested information. |
java.lang.String[] |
getObjectPropertyNames(java.lang.Object theObject)
Used internally, or by direct subclasses only. Subclasses implement tool-dependent mechanism to provide the requested information. |
java.lang.String[] |
getObjectSuperClassNames(java.lang.Object anObject)
Used internally, or by direct subclasses. Subclasses using proxies must override with a tool-dependent mechanism to provide the requested information. |
java.lang.String |
getObjectText(java.lang.Object theObject)
Used internally by GuiObjectRecognition superclass. Rational RobotJ mechanism to provide the requested information. |
static java.lang.String |
getText(TestObject obj)
|
static java.lang.String |
getUIClassID(TestObject obj)
|
boolean |
isMatchingPath(java.lang.Object theObject,
java.lang.String thePath)
Used internally by GuiObjectRecognition superclass. Rational RobotJ mechanism to determine the requested information. |
boolean |
isMatchingSubClass(java.lang.Object theObject,
java.lang.String theClass,
java.lang.String parentClass)
Used internally by GuiObjectRecognition superclass. Rational RobotJ mechanism to simply forward this request on to the RGuiClassData.isMatched function after casting the object to the appropriate class. |
boolean |
isMatchingType(java.lang.Object theObject,
java.lang.String theClass)
Determine if the provided GuiTestObject matches our segment of the recognition string. |
boolean |
isObjectShowing(java.lang.Object theObject)
Used internally by GuiObjectRecognition superclass. Rational RobotJ mechanism to provide the requested information. |
static boolean |
isObjectVisible(TestObject obj)
|
static boolean |
isTopLevelWindow(TestObject obj)
|
static boolean |
isVisiblePropertyTrue(TestObject testobj,
java.lang.String visibleProp)
|
protected void |
listAllProperties(TestObject obj,
java.lang.String str)
|
protected void |
listMethods(TestObject obj)
|
protected void |
listNonValueProperties(TestObject obj)
|
protected void |
listProperties(TestObject obj)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RGuiObjectRecognition(java.lang.String objectInfo,
Script script,
int govLevel)
public RGuiObjectRecognition(java.lang.String objectInfo,
java.lang.String aQualifierSeparator,
int govLevel,
Script script)
| Method Detail |
|---|
public java.lang.String getObjectClassName(java.lang.Object theObject)
getObjectClassName in class GuiObjectRecognitiontheObject--GuiTestObject - proxy for the object to be evaluated.
public java.lang.String[] getObjectSuperClassNames(java.lang.Object anObject)
GuiObjectRecognition
getObjectSuperClassNames in class GuiObjectRecognitiontheObject--sometimes - a tool-dependent proxy for the object to be evaluated.
protected java.util.List getDotNetSuperClassNames(TestObject theObject)
theObject - A proxy object that represents the object to be tested
protected java.util.List getJavaSuperClassNames(TestObject theObject)
theObject - A proxy object that represents the object to be tested
public boolean isMatchingType(java.lang.Object theObject,
java.lang.String theClass)
isMatchingType in class GuiObjectRecognitiontheObject--GuiTestObject - proxy of the actual object to be compared against our
recognition string.theClass - information provided and forwarded to RGuiClassData.isMappedClassType.
public boolean isMatchingSubClass(java.lang.Object theObject,
java.lang.String theClass,
java.lang.String parentClass)
isMatchingSubClass in class GuiObjectRecognitiontheObject--GuiTestObject - proxy for the object to be evaluated.theClass - information from GuiObjectRecognition and forwarded
to RGuiClassData.isMatched.parentClass - information provided and forwarded to
RGuiClassData.isMatched.
public boolean isObjectShowing(java.lang.Object theObject)
isObjectShowing in class GuiObjectRecognitiontheObject--GuiTestObject - proxy for the object to be evaluated.
public java.lang.String getObjectCaption(java.lang.Object theObject)
getObjectCaption in class GuiObjectRecognitiontheObject--GuiTestObject - proxy for the object to be evaluated.
public java.lang.String getObjectDomain(java.lang.Object theObject)
getObjectDomain in class GuiObjectRecognitiontheObject - -- usually a tool-dependent proxy for the object to be evaluated.
public java.lang.String getObjectName(java.lang.Object theObject)
getObjectName in class GuiObjectRecognitiontheObject--GuiTestObject - proxy for the object to be evaluated.
public java.lang.String getObjectAccessibleName(java.lang.Object obj)
GuiObjectRecognition
getObjectAccessibleName in class GuiObjectRecognitionpublic int getObjectLevel(java.lang.Object theObject)
Level is considered to be the Z-Order--often of top level window objects-- of components on the desktop or in a container. The highest Level is Level=1, and this usually indicates the item is visible and forefront. The next Level is Level=2, and so on.
The information is used to determine if a particular object is a match for our stored recognition information.
getObjectLevel in class GuiObjectRecognitiontheObject--TestObject - proxy for the object to be evaluated.
public java.lang.String getObjectText(java.lang.Object theObject)
getObjectText in class GuiObjectRecognitiontheObject--TestObject - proxy for the object to be evaluated.
public java.lang.String getObjectID(java.lang.Object theObject)
getObjectID in class GuiObjectRecognitiontheObject--TestObject - proxy for the object to be evaluated.
public java.lang.String[] getObjectPropertyNames(java.lang.Object theObject)
getObjectPropertyNames in class GuiObjectRecognitiontheObject--usually - a tool-dependent proxy for the object to be evaluated.
public java.lang.String getObjectProperty(java.lang.Object theObject,
java.lang.String theProperty)
getObjectProperty in class GuiObjectRecognitiontheObject--TestObject - proxy for the object to be evaluated.theProperty - name of the property value to be evaluated in the object.
public java.lang.Object getMatchingPathObject(java.lang.Object theObject,
java.lang.String thePath)
getMatchingPathObject in class GuiObjectRecognitiontheObject--StatelessGuiSubitemTestObject - proxy for the object to be evaluated.thePath - information to locate another object or subitem relative to theObject.
this is usually something like a menuitem or tree node where supported.
public boolean isMatchingPath(java.lang.Object theObject,
java.lang.String thePath)
isMatchingPath in class GuiObjectRecognitiontheObject--StatelessGuiSubitemTestObject - proxy for the object to be evaluated.thePath - information to locate another object or subitem relative to theObject.
this is usually something like a menuitem or tree node where supported.
protected void listAllProperties(TestObject obj,
java.lang.String str)
protected void listProperties(TestObject obj)
protected void listNonValueProperties(TestObject obj)
protected void listMethods(TestObject obj)
public static boolean isObjectVisible(TestObject obj)
public static boolean isVisiblePropertyTrue(TestObject testobj,
java.lang.String visibleProp)
throws PropertyNotFoundException
PropertyNotFoundExceptionpublic static java.lang.String getUIClassID(TestObject obj)
public static boolean isTopLevelWindow(TestObject obj)
public static java.lang.String getCaption(TestObject obj)
public static java.lang.String getText(TestObject obj)
public static java.lang.String getName(TestObject obj)
public static java.lang.String getID(TestObject obj)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||