@Deprecated public class TestRunner extends Object implements PerformanceTestCase.Intermediates
android.test
package description
to learn more about testing Android applications.
Not needed for 1.0 SDK.Modifier and Type | Class and Description |
---|---|
static class |
TestRunner.IntermediateTime
Deprecated.
Listener.performance() 'intermediates' argument is a list of these.
|
class |
TestRunner.JunitTestSuite
Deprecated.
|
static interface |
TestRunner.Listener
Deprecated.
Support class that receives status on test progress.
|
Modifier and Type | Field and Description |
---|---|
static int |
CLEARSCREEN
Deprecated.
|
static int |
PERFORMANCE
Deprecated.
|
static int |
PROFILING
Deprecated.
|
static int |
REGRESSION
Deprecated.
|
Constructor and Description |
---|
TestRunner(Context context)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addIntermediate(String name)
Deprecated.
|
void |
addIntermediate(String name,
long timeInNS)
Deprecated.
|
void |
addListener(TestRunner.Listener listener)
Deprecated.
|
static int |
countJunitTests(Class clazz)
Deprecated.
|
static int |
countTests(Context c,
String className)
Deprecated.
Returns the number of tests that will be run if you try to do this.
|
void |
failed(String className,
Throwable exception)
Deprecated.
|
int |
failedCount()
Deprecated.
|
void |
finishProfiling()
Deprecated.
|
void |
finishTiming(boolean realTime)
Deprecated.
|
static Method[] |
getAllTestMethods(Class clazz)
Deprecated.
|
static String[] |
getChildren(Context c,
String className)
Deprecated.
|
static String[] |
getChildren(Method m)
Deprecated.
|
static Method |
getChildrenMethod(Class clazz)
Deprecated.
|
static Method |
getChildrenMethod(Context c,
String className)
Deprecated.
|
static String[] |
getTestChildren(Class clazz)
Deprecated.
|
static String[] |
getTestChildren(Context c,
String className)
Deprecated.
|
static String |
getTitle(String className)
Deprecated.
Returns a title to display given the className of a test.
|
boolean |
isJunitTest(String className)
Deprecated.
|
static boolean |
isTestSuite(Context c,
String className)
Deprecated.
|
void |
passed(String className)
Deprecated.
|
int |
passedCount()
Deprecated.
|
void |
run(String className)
Deprecated.
|
void |
run(String[] classes)
Deprecated.
|
void |
runInPerformanceMode(Object testCase,
String className,
boolean junitTest,
String testNameInDb)
Deprecated.
|
void |
runSingleJunitTest(String className)
Deprecated.
|
void |
setInternalIterations(int count)
Deprecated.
|
void |
setPerformanceMode(int mode)
Deprecated.
|
void |
startProfiling()
Deprecated.
|
void |
startTiming(boolean realTime)
Deprecated.
|
public static final int REGRESSION
public static final int PERFORMANCE
public static final int PROFILING
public static final int CLEARSCREEN
public TestRunner(Context context)
public void addListener(TestRunner.Listener listener)
public void startProfiling()
public void finishProfiling()
public void passed(String className)
public int passedCount()
public int failedCount()
public void run(String[] classes)
public void setInternalIterations(int count)
setInternalIterations
in interface PerformanceTestCase.Intermediates
public void startTiming(boolean realTime)
startTiming
in interface PerformanceTestCase.Intermediates
public void addIntermediate(String name)
addIntermediate
in interface PerformanceTestCase.Intermediates
public void addIntermediate(String name, long timeInNS)
addIntermediate
in interface PerformanceTestCase.Intermediates
public void finishTiming(boolean realTime)
finishTiming
in interface PerformanceTestCase.Intermediates
public void setPerformanceMode(int mode)
public void run(String className)
public void runInPerformanceMode(Object testCase, String className, boolean junitTest, String testNameInDb) throws Exception
Exception
public void runSingleJunitTest(String className)
public static int countJunitTests(Class clazz)
public boolean isJunitTest(String className)
public static int countTests(Context c, String className)