public class DCGUIUtilities extends DDGUIUtilities
appmaps, DEBUG_MESSAGE, FAILED_MESSAGE, FAILED_OK_MESSAGE, GENERIC_MESSAGE, log, PASSED_MESSAGE, trdata, WARNING_MESSAGE, WARNING_OK_MESSAGE
staf
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, setTestRecordData
getSTAFHelper, setSTAFHelper
public Tree extractMenuItems(java.lang.Object obj) throws SAFSException
DDGUIUtilities
extractMenuItems
in class DDGUIUtilities
SAFSException
DDGUIUtilities.extractMenuItems(Object)
public Tree extractMenuBarItems(java.lang.Object obj) throws SAFSException
DDGUIUtilities
extractMenuBarItems
in class DDGUIUtilities
SAFSException
DDGUIUtilities.extractMenuBarItems(Object)
public java.lang.String getListItem(java.lang.Object obj, int i, java.lang.String itemProp) throws SAFSException
DDGUIUtilities
getListItem
in class DDGUIUtilities
SAFSException
DDGUIUtilities.getListItem(Object, int, String)
public java.util.List extractListItems(java.lang.Object obj, java.lang.String countProp, java.lang.String itemProp) throws SAFSException
DDGUIUtilities
extractListItems
in class DDGUIUtilities
SAFSException
DDGUIUtilities.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
DDGUIUtilities
findPropertyMatchedChild
in class DDGUIUtilities
obj
- -- 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
DDGUIUtilities
setActiveWindow
in class DDGUIUtilities
appMapName
- 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
DDGUIUtilities
waitForObject
in class DDGUIUtilities
appMapName
- 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.