public class DriverProcessor extends SAFSProcessor implements CacheReferenceInterface
| Modifier and Type | Field and Description |
|---|---|
boolean |
chainedSolo
set to true by internal processes when SoloProcessor has been chained.
|
(package private) java.lang.String |
debugPrefix |
command_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 |
|---|
DriverProcessor(DSAFSTestRunner testrunner) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
_hideSoftKeyboard(java.util.Properties props)
Hide the soft keyboard.
|
(package private) void |
_showSoftKeyboard(java.util.Properties props)
Show the soft keyboard.
|
(package private) void |
_takeScreenShot(java.util.Properties props)
The screenshot of the device will be got through AndroidDebugBridge at the remote-control computer
Here, this method will only return the rotation of the device. As the image got by AndroidDebugBridge is always that you put your device with default direction. If you rotate you device, that returned image will be upside down, left-turned or right-turned. So we need this device rotation to rotate the image back |
void |
addCacheReferenceInterface(CacheReferenceInterface cache)
CacheReferenceInterface implementation.
|
void |
clearCache(boolean useChain)
CacheReferenceInterface implementation.
|
java.lang.Object |
getCachedObject(java.lang.String key,
boolean useChain)
CacheReferenceInterface implementation.
|
(package private) boolean |
isGuiDriverCommand() |
MessageResult |
processMessage(java.lang.String message) |
void |
processProperties(java.util.Properties props)
Routes commands appropriately.
|
void |
removeCacheReferenceInterface(CacheReferenceInterface cache)
CacheReferenceInterface implementation.
|
clearTestObjectCache, extractComponentProperties, getDgcd, getInstrumentation, getParams, getSecsWaitForComponent, getSecsWaitForWindow, getSolo, getTestObject, setDgcd, setGeneralErrorWithBundleMessage, setGeneralSuccessWithBundleMessage, setParams, setSecsWaitForComponent, setSecsWaitForWindow, setSolo, setTestObjectconvertToKey, convertToKeys, convertToKeys, debug, getCachedItem, getStackTrace, makeUniqueCacheKey, putCachedItem, removeCachedItem, resetExternalModeCache, setGeneralError, setGeneralError, setGeneralErrorWithSpecialInfo, setGeneralErrorWithSpecialInfo, setGeneralSuccess, setGeneralSuccess, setGeneralSuccessWithSpecialInfo, setGeneralWarningWithSpecialInfo, setRemoteCommand, stringIsMatchedjava.lang.String debugPrefix
public boolean chainedSolo
public DriverProcessor(DSAFSTestRunner testrunner)
boolean isGuiDriverCommand()
public void processProperties(java.util.Properties props)
processProperties in interface ProcessorInterfaceprocessProperties in class AbstractProcessorProcessorInterface.processProperties(Properties)void _takeScreenShot(java.util.Properties props)
void _hideSoftKeyboard(java.util.Properties props)
void _showSoftKeyboard(java.util.Properties props)
public MessageResult processMessage(java.lang.String message)
processMessage in interface ProcessorInterfaceprocessMessage in class AbstractProcessorProcessorInterface.processMessage(String)public java.lang.Object getCachedObject(java.lang.String key,
boolean useChain)
getCachedObject in interface CacheReferenceInterfacekey - -- String key for identifying the object stored in cache.useChain - -- true if the instance should search in all chained caches,
false if only the individual local cache should be searched.public void addCacheReferenceInterface(CacheReferenceInterface cache)
addCacheReferenceInterface in interface CacheReferenceInterfaceCacheReferenceInterface.addCacheReferenceInterface(CacheReferenceInterface)public void removeCacheReferenceInterface(CacheReferenceInterface cache)
removeCacheReferenceInterface in interface CacheReferenceInterfaceCacheReferenceInterface.removeCacheReferenceInterface(CacheReferenceInterface)public void clearCache(boolean useChain)
clearCache in interface CacheReferenceInterfaceuseChain - -- true if the instance should clear all chained caches,
false if only the individual local cache should be cleared.CacheReferenceInterface.clearCache(boolean)Copyright © SAS Institute. All Rights Reserved.