public class DSAFSTestRunner extends RobotiumTestRunner
FEB 07, 2013 (Lei Wang) Override method beforeStart()
to initialize DGuiClassData.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG |
messageRunner, resource_bind_service, resource_service_attached, resource_service_disconnect, resource_service_release
Constructor and Description |
---|
DSAFSTestRunner() |
Modifier and Type | Method and Description |
---|---|
boolean |
beforeStart()
In this method, we will initialize the static field DGuiClassData in
SAFSProcessor, and load the class-type/type-library mapping file.
|
void |
debug(java.lang.String message)
Send a debug message to our remote TCP client (if enabled).
|
java.io.InputStream |
readRawFile(java.lang.String filenameWithoutSuffix)
Prerequisite: The Instrument's context must be initialized.
|
afterStart, closeApplication, getActivityrunner, getListenerName, getSolo, handleDispatchFile, handleMessage, handleRemoteShutdown, handleServerConnected, handleServerDisconnected, handleServerShutdown, initializeSoloProcessor, launchApplication
addProcessor, doBindService, doUnbindService, finishInstrumentation, getProcessors, handleDispatchProps, handleEngineShutdown, isDebugEnabled, messengerRunnerStopped, onCreate, onReceiveDebug, onStart, removeProcessor, removeProcessors, removeProcessors, sendServiceResult, setDebugEnabled
getAllTests, getAndroidTestRunner, getArguments, getLoader, getTestSuite
addMonitor, addMonitor, addMonitor, callActivityOnCreate, callActivityOnCreate, callActivityOnDestroy, callActivityOnNewIntent, callActivityOnPause, callActivityOnPostCreate, callActivityOnPostCreate, callActivityOnRestart, callActivityOnRestoreInstanceState, callActivityOnRestoreInstanceState, callActivityOnResume, callActivityOnSaveInstanceState, callActivityOnSaveInstanceState, callActivityOnStart, callActivityOnStop, callActivityOnUserLeaving, callApplicationOnCreate, checkMonitorHit, endPerformanceSnapshot, finish, getAllocCounts, getBinderCounts, getComponentName, getContext, getTargetContext, getUiAutomation, getUiAutomation, invokeContextMenuAction, invokeMenuActionSync, isProfiling, newActivity, newActivity, newApplication, newApplication, onDestroy, onException, removeMonitor, runOnMainSync, sendCharacterSync, sendKeyDownUpSync, sendKeySync, sendPointerSync, sendStatus, sendStringSync, sendTrackballEventSync, setAutomaticPerformanceSnapshots, setInTouchMode, start, startActivitySync, startAllocCounting, startPerformanceSnapshot, startProfiling, stopAllocCounting, stopProfiling, waitForIdle, waitForIdleSync, waitForMonitor, waitForMonitorWithTimeout
public boolean beforeStart()
In this method, we will initialize the static field DGuiClassData in SAFSProcessor, and load the class-type/type-library mapping file.
As we need the Context object of Instrument to load resource, so
Instrumentation.getContext()
should return a valid object. In this method,
we are sure that the context object has been created properly.
beforeStart
in class RobotiumTestRunner
DGuiClassData.loadMappingFile()
public java.io.InputStream readRawFile(java.lang.String filenameWithoutSuffix)
Prerequisite: The Instrument's context must be initialized.
Instrumentation.getContext()
must return a non-null value.
When program comes to AbstractTestRunner.onCreate(android.os.Bundle)
, Instrumentation.getContext()
will
return a valid object. While beforeStart()
is called in AbstractTestRunner.onCreate(android.os.Bundle)
,
so in method beforeStart()
or after it, we can safely call this method.
filenameWithoutSuffix,
- String, the name of file stored in project folder res/rawbeforeStart()
public void debug(java.lang.String message)
debug
in class AbstractTestRunner
Copyright © SAS Institute. All Rights Reserved.