public class ListViewProcessor extends TestStepProcessor
| Modifier and Type | Field and Description |
|---|---|
protected android.widget.ListView |
listview |
(package private) static java.lang.String |
tempError |
(package private) static boolean |
tempSuccess |
debugPrefixcommand_timeout, compname, compobj, comprec, dgcd, dgov, inst, KEY_COMPOBJ, params, resourceDetailMsg, resourceMsg, robot, secsWaitForComponent, secsWaitForWindow, solo, TAG, testObjectCache, testrunner, winname, winobj, winrecINITIAL_CACHE_SIZE, remoteCommand, testRunner| Constructor and Description |
|---|
ListViewProcessor(DSAFSTestRunner testrunner) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
_captureItems(java.util.Properties props) |
protected void |
_selectIndexCommands(java.util.Properties props,
boolean verified,
boolean activate) |
protected void |
_selectTextCommands(java.util.Properties props,
boolean isVerified,
boolean useCase,
boolean isPartial,
boolean activate) |
(package private) int |
getListViewItemIndex(android.widget.ListView view,
java.util.List<java.lang.String> items,
java.lang.String text,
boolean useCase,
boolean isPartial,
int nth)
Call this routine if you already have the List of items.
|
(package private) int |
getListViewItemIndex(android.widget.ListView view,
java.lang.String text,
boolean useCase,
boolean isPartial,
int nth)
Call this routine if you do NOT already have the List of items.
|
(package private) java.util.List<java.lang.String> |
getListViewItems(android.widget.ListView view)
Uses DGuiObjectRecognition.getObjectText to extract text of each Adapter item.
|
(package private) int |
getListViewSelectedIndex(android.widget.ListView view) |
(package private) java.lang.String |
getListViewTextAtIndex(android.widget.ListView view,
int index) |
void |
processComponentFunction(java.util.Properties props)
Called internally by processProperties after the DGOV, WIN, and COMP components
have been found and are ready for action.
|
(package private) boolean |
selectIndex(android.widget.ListView view,
int index,
boolean doClick) |
checkParameterSize, checkSolo, commandNotExecuted, convertCoords, processProperties, retrieveParameters, setGeneralError3, setGeneralErrorUnsupportedObjectType, setGeneralErrorWithDetailBundle, setGeneralSuccessWithBundle, setGenericErrorclearTestObjectCache, extractComponentProperties, getDgcd, getInstrumentation, getParams, getSecsWaitForComponent, getSecsWaitForWindow, getSolo, getTestObject, setDgcd, setGeneralErrorWithBundleMessage, setGeneralSuccessWithBundleMessage, setParams, setSecsWaitForComponent, setSecsWaitForWindow, setSolo, setTestObjectconvertToKey, convertToKeys, convertToKeys, debug, getCachedItem, getStackTrace, makeUniqueCacheKey, processMessage, putCachedItem, removeCachedItem, resetExternalModeCache, setGeneralError, setGeneralError, setGeneralErrorWithSpecialInfo, setGeneralErrorWithSpecialInfo, setGeneralSuccess, setGeneralSuccess, setGeneralSuccessWithSpecialInfo, setGeneralWarningWithSpecialInfo, setRemoteCommand, stringIsMatchedprotected android.widget.ListView listview
static boolean tempSuccess
static java.lang.String tempError
public ListViewProcessor(DSAFSTestRunner testrunner)
public void processComponentFunction(java.util.Properties props)
TestStepProcessorprocessComponentFunction in class TestStepProcessorprotected void _selectTextCommands(java.util.Properties props,
boolean isVerified,
boolean useCase,
boolean isPartial,
boolean activate)
props - isVerified, - true if this is a 'verified' command -- not 'Unverified'.useCase, - true if text comparisons ARE case-sensitive.isPartial, - true if text comparisons only need a substring match.activate, - true if we need to click the item after its selection.protected void _selectIndexCommands(java.util.Properties props,
boolean verified,
boolean activate)
props - verified, - true if we need to verify the selected index is selected.activate, - true if we need to click the item after its selection.void _captureItems(java.util.Properties props)
index, - the index to select, 0-based.boolean selectIndex(android.widget.ListView view,
int index,
boolean doClick)
view - index, - 0-based index of item to select.doClick, - true to click the item after its selection.int getListViewSelectedIndex(android.widget.ListView view)
view - java.lang.String getListViewTextAtIndex(android.widget.ListView view,
int index)
view - index - int getListViewItemIndex(android.widget.ListView view,
java.util.List<java.lang.String> items,
java.lang.String text,
boolean useCase,
boolean isPartial,
int nth)
view - useCase - -- true if matching is case-sensitiveisPartial - -- true if we only need a substring matchnth - -- return the nth matching index: 1 for the first matching index, 2 for the second, etc..int getListViewItemIndex(android.widget.ListView view,
java.lang.String text,
boolean useCase,
boolean isPartial,
int nth)
view - useCase - -- true if matching is case-sensitiveisPartial - -- true if we only need a substring matchnth - -- return the nth matching index: 1 for the first matching index, 2 for the second, etc..java.util.List<java.lang.String> getListViewItems(android.widget.ListView view)
spinner - Copyright © SAS Institute. All Rights Reserved.