public class DCGUIUtilities extends DDGUIUtilities
appmaps, DEBUG_MESSAGE, FAILED_MESSAGE, FAILED_OK_MESSAGE, GENERIC_MESSAGE, log, PASSED_MESSAGE, trdata, WARNING_MESSAGE, WARNING_OK_MESSAGEstaf| Constructor and Description |
|---|
DCGUIUtilities() |
| 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.
|
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.
|
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, getAppMap, getLogUtilities, getTestRecordData, isAppMapRegistered, openAppMap, registerAppMap, registerAppMap, setLogUtilities, setTestRecordDatagetSTAFHelper, setSTAFHelperpublic Tree extractMenuItems(java.lang.Object obj) throws SAFSException
DDGUIUtilitiesextractMenuItems in class DDGUIUtilitiesSAFSExceptionDDGUIUtilities.extractMenuItems(Object)public Tree extractMenuBarItems(java.lang.Object obj) throws SAFSException
DDGUIUtilitiesextractMenuBarItems in class DDGUIUtilitiesSAFSExceptionDDGUIUtilities.extractMenuBarItems(Object)public java.lang.String getListItem(java.lang.Object obj,
int i,
java.lang.String itemProp)
throws SAFSException
DDGUIUtilitiesgetListItem in class DDGUIUtilitiesSAFSExceptionDDGUIUtilities.getListItem(Object, int, String)public java.util.List extractListItems(java.lang.Object obj,
java.lang.String countProp,
java.lang.String itemProp)
throws SAFSException
DDGUIUtilitiesextractListItems in class DDGUIUtilitiesSAFSExceptionDDGUIUtilities.extractListItems(Object, String, String)public 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.
DDGUIUtilities.findPropertyMatchedChild(Object, String, String, boolean)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.DDGUIUtilities.setActiveWindow(String, String, String)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.DDGUIUtilities.waitForObject(String, String, String, long)Copyright © SAS Institute. All Rights Reserved.