public class DGuiObjectVector
extends java.lang.Object
FEB 07, 2013 (LeiWang) Add a static field DGuiClassData to help get type for an object.
JUN 14, 2013 (LeiWang) Modify to capture also id's index and name's index.
Modifier and Type | Field and Description |
---|---|
(package private) java.util.ArrayList |
compdefs |
(package private) java.lang.Object |
compobj |
(package private) java.util.ArrayList |
comppath |
(package private) java.lang.String |
comprec |
(package private) DebugListener |
debuglogger |
static java.lang.String |
DEFAULT_ASSIGN_SEPARATOR
"="
|
static java.lang.String |
DEFAULT_CHILD_SEPARATOR
";\;"
|
static java.lang.String |
DEFAULT_PROPERTY_QUALIFIER_SEPARATOR
":"
|
static java.lang.String |
DEFAULT_QUALIFIER_SEPARATOR
";"
|
protected static DGuiClassData |
dgcd |
(package private) boolean |
fpsmmode |
(package private) DGuiObjectIndices |
indices |
int |
secsWaitForComponent |
int |
secsWaitForWindow |
boolean |
SINGLE_LOOP_SEARCH
Set to true to have the window/component search only look once.
|
static java.lang.String |
TAG |
(package private) static DSAFSTestRunner |
testrunner |
(package private) java.util.ArrayList |
windefs |
(package private) java.lang.Object |
winobj |
(package private) java.util.ArrayList |
winpath |
(package private) java.lang.String |
winrec |
Constructor and Description |
---|
DGuiObjectVector(java.lang.Object windowobj,
java.lang.String childrec,
java.lang.String pathString) |
DGuiObjectVector(java.lang.String windowrec,
java.lang.String childrec,
java.lang.String pathString) |
Modifier and Type | Method and Description |
---|---|
DClassTypeInfo |
captureTestObjectIndex(java.lang.Object testobj,
int objectindex)
captureTestObjectIndex (testobj, objectindex)
This method will calculate the class-index, type-index, id-index, name-index
for a test object that we meet during the traversal of the whole AUT-tree.
|
(package private) void |
debug(java.lang.String message) |
java.util.ArrayList |
getCompDefs()
The ArrayList of DGuiObjectDefinitions describing the recognition path to the
Component object.
|
static java.util.ArrayList |
getDefinitionHierarchy(java.util.ArrayList recArray)
create an ArrayList of DGuiObjectDefinition objects
created from An ArrayList of parent\child object recognition strings returned
from splitRec.
|
static DGuiClassData |
getGuiClassData() |
java.lang.Object |
getMatchingChild(int secsTimeout) |
java.lang.Object |
getMatchingParentObject(int secsTimeout) |
java.util.ArrayList |
getWinDefs()
The ArrayList of DGuiObjectDefinitions describing the recognition path to the
Window object.
|
java.lang.Object |
searchChildren(java.lang.Object aparent,
DGuiObjectDefinition testdef) |
static void |
setGuiClassData(DGuiClassData dgcd) |
static void |
setSAFSTestRunner(DSAFSTestRunner _testrunner)
Must be set prior to calling debug or any of the static "get" functions.
|
static java.util.ArrayList |
splitRec(java.lang.String arec)
split hierarchy recognition into ArrayList
of separate object recognition strings
[ parent, child, grandchild, etc..
|
public static final java.lang.String TAG
static DSAFSTestRunner testrunner
public static final java.lang.String DEFAULT_QUALIFIER_SEPARATOR
public static final java.lang.String DEFAULT_CHILD_SEPARATOR
public static final java.lang.String DEFAULT_ASSIGN_SEPARATOR
public static final java.lang.String DEFAULT_PROPERTY_QUALIFIER_SEPARATOR
public boolean SINGLE_LOOP_SEARCH
java.lang.String winrec
java.util.ArrayList winpath
java.util.ArrayList windefs
java.lang.Object winobj
boolean fpsmmode
java.lang.String comprec
java.util.ArrayList comppath
java.util.ArrayList compdefs
java.lang.Object compobj
DebugListener debuglogger
public int secsWaitForWindow
public int secsWaitForComponent
protected static DGuiClassData dgcd
DGuiObjectIndices indices
public DGuiObjectVector(java.lang.String windowrec, java.lang.String childrec, java.lang.String pathString)
public DGuiObjectVector(java.lang.Object windowobj, java.lang.String childrec, java.lang.String pathString)
public static void setGuiClassData(DGuiClassData dgcd)
public static DGuiClassData getGuiClassData()
public static void setSAFSTestRunner(DSAFSTestRunner _testrunner)
_testrunner
- void debug(java.lang.String message)
public java.lang.Object getMatchingParentObject(int secsTimeout) throws RemoteException
RemoteException
public java.util.ArrayList getWinDefs()
public java.util.ArrayList getCompDefs()
public java.lang.Object getMatchingChild(int secsTimeout) throws RemoteException
RemoteException
public java.lang.Object searchChildren(java.lang.Object aparent, DGuiObjectDefinition testdef) throws RemoteException
RemoteException
public DClassTypeInfo captureTestObjectIndex(java.lang.Object testobj, int objectindex)
public static java.util.ArrayList getDefinitionHierarchy(java.util.ArrayList recArray)
public static java.util.ArrayList splitRec(java.lang.String arec)
Copyright © SAS Institute. All Rights Reserved.