public class JREXGUIUtilities extends DDGUIUtilities
appmaps, DEBUG_MESSAGE, FAILED_MESSAGE, FAILED_OK_MESSAGE, GENERIC_MESSAGE, log, PASSED_MESSAGE, trdata, WARNING_MESSAGE, WARNING_OK_MESSAGEstaf| Constructor and Description |
|---|
JREXGUIUtilities() |
JREXGUIUtilities(STAFHelper helper,
JREXTestRecordData data,
LogUtilities log)
Constructor providing the STAFHelper needed by the
instance for proper operation.
|
JREXGUIUtilities(STAFHelper helper,
LogUtilities log)
Constructor providing the STAFHelper needed by the instance for
proper operation.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List |
extractListItems(java.lang.Object obj,
java.lang.String countProp,
java.lang.String itemProp)
Extract items from a List or Array type of object property.
|
Tree |
extractMenuBarItems(java.lang.Object obj)
Extract a menu hierarchy from a MenuBar pseudo-object reference.
|
Tree |
extractMenuItems(java.lang.Object obj)
Extract a menu hierarchy from a object.
|
java.lang.Object |
findPropertyMatchedChild(java.lang.Object obj,
java.lang.String property,
java.lang.String bench,
boolean exactMatch)
Attempt to locate a child object based on a matching property value.
|
ApplicationMap |
getAppMap(java.lang.String mapname)
required implementation for superclass
|
java.lang.String |
getListItem(java.lang.Object obj,
int i,
java.lang.String itemProp)
Get a single list item from a List or Array type of object property.
|
boolean |
registerAppMap(java.lang.String mapname,
java.lang.String mapfile)
Store a named AppMap that has been successfully opened or found already
opened.
|
int |
setActiveWindow(java.lang.String appMapName,
java.lang.String windowName,
java.lang.String compName)
"Activate" the specified component's topmost parent.
|
int |
waitForObject(java.lang.String appMapName,
java.lang.String windowName,
java.lang.String compName,
long secTimeout)
Wait up to a maximum timeout value for the specified component to "exist".
|
clearAllAppMapCaches, clearAppMapCache, createAppMapInstance, getLogUtilities, getTestRecordData, isAppMapRegistered, openAppMap, registerAppMap, setLogUtilities, setTestRecordDatagetSTAFHelper, setSTAFHelperpublic JREXGUIUtilities()
public JREXGUIUtilities(STAFHelper helper, LogUtilities log)
helper - The STAFHelper for performing STAF requests.public JREXGUIUtilities(STAFHelper helper, JREXTestRecordData data, LogUtilities log)
helper - The STAFHelper for performing STAF requests.public boolean registerAppMap(java.lang.String mapname,
java.lang.String mapfile)
DDGUIUtilitiesregisterAppMap in class DDGUIUtilitiesmapname - -- the name by which the ApplicationMap will be known.
mapfile - -- the ApplicationMap to store with the given mapname.public ApplicationMap getAppMap(java.lang.String mapname)
getAppMap in class DDGUIUtilitiesmapname - -- the name by which the ApplicationMap will be known.
public int waitForObject(java.lang.String appMapName,
java.lang.String windowName,
java.lang.String compName,
long secTimeout)
throws SAFSObjectNotFoundException
DDGUIUtilitieswaitForObject in class DDGUIUtilitiesappMapName - name of AppMap used to lookup component.windowName - name of Window in AppMap.compName - name of Window Component in AppMap.
If the Window IS the desired Component, then both windowName
and compName will be the same.secTimeout - maximum wait in secondsSAFSObjectNotFoundException - if the component or its parent cannot be found.public int setActiveWindow(java.lang.String appMapName,
java.lang.String windowName,
java.lang.String compName)
throws SAFSObjectNotFoundException
DDGUIUtilitiessetActiveWindow in class DDGUIUtilitiesappMapName - name of AppMap used to lookup component.windowName - name of Window in AppMap.compName - name of Window Component in AppMap.
If the Window IS the desired Component, then both windowName
and compName will be the same.SAFSObjectNotFoundException - if the component or its parent cannot be found.public java.util.List extractListItems(java.lang.Object obj,
java.lang.String countProp,
java.lang.String itemProp)
throws SAFSException
DDGUIUtilitiesextractListItems in class DDGUIUtilitiesSAFSExceptionpublic java.lang.String getListItem(java.lang.Object obj,
int i,
java.lang.String itemProp)
throws SAFSException
DDGUIUtilitiesgetListItem in class DDGUIUtilitiesSAFSExceptionpublic Tree extractMenuBarItems(java.lang.Object obj) throws SAFSException
DDGUIUtilitiesextractMenuBarItems in class DDGUIUtilitiesSAFSExceptionpublic Tree extractMenuItems(java.lang.Object obj) throws SAFSException
DDGUIUtilitiesextractMenuItems in class DDGUIUtilitiesSAFSExceptionpublic java.lang.Object findPropertyMatchedChild(java.lang.Object obj,
java.lang.String property,
java.lang.String bench,
boolean exactMatch)
throws SAFSObjectNotFoundException
DDGUIUtilitiesfindPropertyMatchedChild in class DDGUIUtilitiesobj - -- the pseudo-object reference whose children will be evaluated.
property - -- the property of each child that will be evaluated. The property is
expected to be one that can successfully return a value
cast as type String.
bench - -- the benchmark value for the property to be used in comparisons.
exactMatch - -- if true, an exact case-sensitive match of the bench value
provided is required to signal a match.SAFSObjectNotFoundException - if no matching child object is found.
StringUtils.isCaseContainsMatch(String,String,boolean)