public class DUtilities extends DUtilities
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
rootRunDir
SAFSDIR variable export from STAFEnv.sh script
|
androidsdk, anttool, bridge, DEFAULT_DEVICE_SERIAL, DEFAULT_EMULATOR_AVD, DEFAULT_INSTALL_APK_TIMEOUT, DEVICE_STRING, installAUT, installMessenger, installRunner, IS_TEST_TARGET_PACKAGE_SET, MANIFEST_XML_FILENAEM, mon, OFFLINE_STRING, rebuildRunner, rebuildRunnerAntArgs, rebuildRunnerForce, REMOTE_DROID_LAUNCH_TIMEOUT, REMOTE_LAUNCH_TIMEOUT, RESIGN_JAR_ENV, RESIGN_JAR_FULL_NAME, ROOT_ANT_SDK_DIR, ROOT_DROID_PROJECT_DIR, ROOT_DROID_SDK_DIR, ROOT_DROID_SDK_TOOLS, SAFS_SERVICE_APP, SAFS_SERVICE_PACKAGE, TEST_RUNNER_APP, TEST_RUNNER_APP_SOURCE, TEST_RUNNER_INSTRUMENT, TEST_RUNNER_PACKAGE, TEST_TARGET_APP, TEST_TARGET_PACKAGE, timeoutWaitInstallAPK, USE_DEVICE_SERIAL, utils, XML_MODIFIED_FAIL, XML_MODIFIED_NO_CHANGE, XML_MODIFIED_SUCCESS
Constructor and Description |
---|
DUtilities() |
Modifier and Type | Method and Description |
---|---|
static DTestRecordHelper |
captureRemoteResultsProperties(RemoteResults results,
DTestRecordHelper data)
Modifies the TestRecordHelper statuscode and statusinfo from the remote results properties.
|
static int |
convertRemoteControlStatus(int status)
Convert SoloRemoteControl status codes to equivalent SAFS StatusCodes.
|
protected void |
debugI(java.lang.String message) |
static DTestRecordHelper |
getAppMapRecognition(DTestRecordHelper droiddata)
Attempts to fill the DTestHelper winGuiID and compGuiID fields as well as the
Keyword Properties KEY_WINREC and KEY_COMPREC properties
using the Keyword Properties and STAFHelper in the provided DTestRecordHelper.
|
protected static GenericProcessMonitor |
getProcessMonitor()
Returns a blank instance of ProcessMonitor on which to call the necessary
static methods.
|
addDeviceSerialParam, argsToString, buildAPK, copyFile, debug, error, getAndroidDebugBridge, getAndroidTools, getAntTool, getAttachedDevices, getDeviceScreenImage, getIDevice, getResignJarFileName, getTargetPackageValue, initAndroidTools, initAntTool, installEnabledAPKs, installReplaceAPK, isDeviceOffline, killADBServer, launchEmulatorAVD, launchTestInstrumentation, launchTestInstrumentation, modifyAndroidManifestXml, rebuildRunner, rebuildTestRunnerApk, resetADBServer, resignAUTApk, resignAUTApk, setAndroidToolsHome, setAntToolsHome, shutdownEmulatorProcess, shutdownLaunchedEmulators, startADBServer, uninstallAPK, uninstallAPKPackage, unlockDeviceScreen, waitDevice
public static java.lang.String rootRunDir
protected void debugI(java.lang.String message)
debugI
in class DUtilities
protected static GenericProcessMonitor getProcessMonitor()
public static int convertRemoteControlStatus(int status)
Message.STATUS_REMOTE_NOT_EXECUTED
=StatusCodes.SCRIPT_NOT_EXECUTED
Message.STATUS_REMOTERESULT_OK
=StatusCodes.NO_SCRIPT_FAILURE
Message.STATUS_REMOTERESULT_WARN
=StatusCodes.SCRIPT_WARNING
StatusCodes.GENERAL_SCRIPT_FAILURE
public static DTestRecordHelper captureRemoteResultsProperties(RemoteResults results, DTestRecordHelper data)
The routine will also attempt to instantiate and store any message and details sent as ResourceMessageInfos stored in the RemoteResults.
props
- data
- DTestRecordHelper.getMessage()
,
DTestRecordHelper.getDetailMessage()
,
ResourceMessageInfo
public static DTestRecordHelper getAppMapRecognition(DTestRecordHelper droiddata)
The routine expects the STAFHelper, windowName, compName, and appMapName fields have valid values prior to this call.
If the named App Map does NOT contain entries for the window and/or component then the window and/or component names themselves are used as the recognition information. This helps support recognition like "CurrentWindow" and unused window or component values like "Anything", "AtAll".
droiddata
- Copyright © SAS Institute. All Rights Reserved.