|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.safs.STAFRequester
org.safs.ApplicationMap
org.safs.rational.RApplicationMap
public class RApplicationMap
Extends org.safs.ApplicationMap to use Rational specific mechanisms for locating objects in the tested Application.
Creates a SingletonSTAFHelper to satisfy the STAFHelper requirements of the ApplicationMap superclass if it has not already been created.
| Field Summary |
|---|
| Fields inherited from class org.safs.ApplicationMap |
|---|
mapname |
| Fields inherited from class org.safs.STAFRequester |
|---|
staf |
| Constructor Summary | |
|---|---|
RApplicationMap(java.lang.String mapname,
Script script)
Creates a RApplicationMap handler with the necessary name and RobotJ object. |
|
| Method Summary | |
|---|---|
TestObject |
findChild(TestObject parent,
java.lang.String childPath)
Find children from parent object. |
TestObject |
findMappedChild(java.lang.String windowName,
java.lang.String childName,
boolean ignoreCache,
java.util.List gather)
Attempts to provide the RobotJ TestObject matching the named references. |
TestObject |
findMappedChild(java.lang.String windowName,
java.lang.String wildcardChildName,
java.lang.String nameString)
Attempts to provide the RobotJ TestObject matching the named references. |
TestObject |
findMappedParent(java.lang.String windowName,
boolean ignoreCache)
Attempts to provide the RobotJ TestObject matching the named references. |
TestObject |
findParent(java.lang.String windowName)
Find parent from the root object. |
TestObject |
getChildTestObject(java.lang.String windowName,
java.lang.String childName,
boolean ignoreCache)
Retrieves the object stored for the given window's child. |
TestObject |
getParentTestObject(java.lang.String windowName,
boolean ignoreCache)
Retrieves the actual Object for the given windowName. |
static boolean |
isGUIIDDynamic(java.lang.String recognition)
Override superclass static method. |
| Methods inherited from class org.safs.ApplicationMap |
|---|
clearMap, extractTaggedGUIID, getChildGUIID, getChildGUIID, getChildObject, getMapName, getParentGUIID, getParentGUIID, getParentObject, setChildObject, setParentObject |
| Methods inherited from class org.safs.STAFRequester |
|---|
getSTAFHelper, setSTAFHelper |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RApplicationMap(java.lang.String mapname,
Script script)
mapname - the name of the map. This should be identical to
the name of an AppMap handled by the SAFSMAPS service.
script - the RobotJ script object needed for RobotJ API calls.| Method Detail |
|---|
public TestObject getParentTestObject(java.lang.String windowName,
boolean ignoreCache)
windowName - the name of the parent object stored in the AppMap.
ignoreCache - will ignore the cached TestObject, and refind it if true.
public TestObject getChildTestObject(java.lang.String windowName,
java.lang.String childName,
boolean ignoreCache)
windowName - the name of the parent as stored in the AppMap.
childName - the name of the parent's child.
ignoreCache - will ignore the cached TestObject, and refind it if true.
public static boolean isGUIIDDynamic(java.lang.String recognition)
recognition -
public TestObject findMappedParent(java.lang.String windowName,
boolean ignoreCache)
WIN domains are handled last so that the other domains have a chance to locate their objects before the more generic WIN domain processes them.
windowName - the name of the parent window to retrieve.
ignoreCache - will ignore the cached TestObject, and refind it if true.
public TestObject findMappedChild(java.lang.String windowName,
java.lang.String childName,
boolean ignoreCache,
java.util.List gather)
windowName - the name of the parent window to search.
childName - the name of the parent's child to find. This value should
be identical to windowName if it is the window itself that
we are seeking.
ignoreCache - will ignore the cached TestObject, and refind it if true.gather, - List containing names matched, if null, then match first name
public TestObject findMappedChild(java.lang.String windowName,
java.lang.String wildcardChildName,
java.lang.String nameString)
windowName - the name of the parent window to search.
wildcardChildName - the name of the wildcard parent's child to find.
It should have an appmap entry which ends with Name=*
The 'nameString' value will be replaced for the *
nameString, - name of the actual component, (childName should end in Name=*)
public TestObject findParent(java.lang.String windowName)
windowProp - window path
public TestObject findChild(TestObject parent,
java.lang.String childPath)
parent - - parent objectchildPath - - child path (child window recognition string)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||