android.test
Class InstrumentationTestRunner

java.lang.Object
  extended by android.app.Instrumentation
      extended by android.test.InstrumentationTestRunner
All Implemented Interfaces:
TestSuiteProvider

public class InstrumentationTestRunner
extends android.app.Instrumentation
implements TestSuiteProvider


Nested Class Summary
 
Nested classes/interfaces inherited from class android.app.Instrumentation
android.app.Instrumentation.ActivityMonitor, android.app.Instrumentation.ActivityResult
 
Field Summary
static String REPORT_KEY_NAME_CLASS
           
static String REPORT_KEY_NAME_TEST
           
static String REPORT_KEY_NUM_CURRENT
           
static String REPORT_KEY_NUM_TOTAL
           
static String REPORT_KEY_STACK
           
static String REPORT_VALUE_ID
           
static int REPORT_VALUE_RESULT_ERROR
           
static int REPORT_VALUE_RESULT_FAILURE
           
static int REPORT_VALUE_RESULT_OK
           
static int REPORT_VALUE_RESULT_START
           
 
Fields inherited from class android.app.Instrumentation
REPORT_KEY_IDENTIFIER, REPORT_KEY_STREAMRESULT
 
Constructor Summary
InstrumentationTestRunner()
           
 
Method Summary
 junit.framework.TestSuite getAllTests()
           
protected  AndroidTestRunner getAndroidTestRunner()
           
 ClassLoader getLoader()
           
 junit.framework.TestSuite getTestSuite()
           
 void onCreate(android.os.Bundle arguments)
           
 void onStart()
           
 
Methods inherited from class android.app.Instrumentation
addMonitor, addMonitor, addMonitor, callActivityOnCreate, callActivityOnDestroy, callActivityOnNewIntent, callActivityOnPause, callActivityOnPostCreate, callActivityOnRestart, callActivityOnRestoreInstanceState, callActivityOnResume, callActivityOnSaveInstanceState, callActivityOnStart, callActivityOnStop, callActivityOnUserLeaving, callApplicationOnCreate, checkMonitorHit, endPerformanceSnapshot, finish, getAllocCounts, getBinderCounts, getComponentName, getContext, getTargetContext, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REPORT_VALUE_ID

public static final String REPORT_VALUE_ID
See Also:
Constant Field Values

REPORT_KEY_NUM_TOTAL

public static final String REPORT_KEY_NUM_TOTAL
See Also:
Constant Field Values

REPORT_KEY_NUM_CURRENT

public static final String REPORT_KEY_NUM_CURRENT
See Also:
Constant Field Values

REPORT_KEY_NAME_CLASS

public static final String REPORT_KEY_NAME_CLASS
See Also:
Constant Field Values

REPORT_KEY_NAME_TEST

public static final String REPORT_KEY_NAME_TEST
See Also:
Constant Field Values

REPORT_VALUE_RESULT_START

public static final int REPORT_VALUE_RESULT_START
See Also:
Constant Field Values

REPORT_VALUE_RESULT_OK

public static final int REPORT_VALUE_RESULT_OK
See Also:
Constant Field Values

REPORT_VALUE_RESULT_ERROR

public static final int REPORT_VALUE_RESULT_ERROR
See Also:
Constant Field Values

REPORT_VALUE_RESULT_FAILURE

public static final int REPORT_VALUE_RESULT_FAILURE
See Also:
Constant Field Values

REPORT_KEY_STACK

public static final String REPORT_KEY_STACK
See Also:
Constant Field Values
Constructor Detail

InstrumentationTestRunner

public InstrumentationTestRunner()
Method Detail

onCreate

public void onCreate(android.os.Bundle arguments)
Overrides:
onCreate in class android.app.Instrumentation

getAndroidTestRunner

protected AndroidTestRunner getAndroidTestRunner()

onStart

public void onStart()
Overrides:
onStart in class android.app.Instrumentation

getTestSuite

public junit.framework.TestSuite getTestSuite()
Specified by:
getTestSuite in interface TestSuiteProvider

getAllTests

public junit.framework.TestSuite getAllTests()

getLoader

public ClassLoader getLoader()


Copyright © 2008-2012. All Rights Reserved.