Added in API level 1
Deprecated in API level 24

AndroidTestRunner


open class AndroidTestRunner
kotlin.Any
   ↳ android.test.AndroidTestRunner

Summary

Public constructors

Public methods
open Unit
addTestListener(testListener: TestListener!)

open Unit

open MutableList<TestCase!>!

open String!

open TestResult!

open Unit

open Unit
runTest(testResult: TestResult!)

open Unit
setContext(context: Context!)

open Unit

open Unit

open Unit
setTest(test: Test!)

open Unit
setTestClassName(testClassName: String!, testMethodName: String!)

open Unit
testEnded(testName: String!)

open Unit
testFailed(status: Int, test: Test!, t: Throwable!)

open Unit
testStarted(testName: String!)

Protected methods
open TestResult!

open Class<Any!>!
loadSuiteClass(suiteClassName: String!)

open Unit
runFailed(message: String!)

Public constructors

AndroidTestRunner

AndroidTestRunner()

Public methods

addTestListener

Added in API level 1
open fun addTestListener(testListener: TestListener!): Unit

Deprecated: Deprecated in Java.

clearTestListeners

Added in API level 1
open fun clearTestListeners(): Unit

Deprecated: Deprecated in Java.

getTestCases

Added in API level 1
open fun getTestCases(): MutableList<TestCase!>!

Deprecated: Deprecated in Java.

getTestClassName

Added in API level 1
open fun getTestClassName(): String!

Deprecated: Deprecated in Java.

getTestResult

Added in API level 1
open fun getTestResult(): TestResult!

Deprecated: Deprecated in Java.

runTest

Added in API level 1
open fun runTest(): Unit

Deprecated: Deprecated in Java.

runTest

Added in API level 1
open fun runTest(testResult: TestResult!): Unit

Deprecated: Deprecated in Java.

setContext

Added in API level 1
open fun setContext(context: Context!): Unit

Deprecated: Deprecated in Java.

setInstrumentaiton

Added in API level 1
Deprecated in API level 15
open fun setInstrumentaiton(instrumentation: Instrumentation!): Unit

Deprecated: Incorrect spelling, use setInstrumentation(android.app.Instrumentation) instead.

setInstrumentation

Added in API level 5
Deprecated in API level 24
open fun setInstrumentation(instrumentation: Instrumentation!): Unit

Deprecated: Deprecated in Java.

setTest

Added in API level 1
open fun setTest(test: Test!): Unit

Deprecated: Deprecated in Java.

setTestClassName

Added in API level 1
open fun setTestClassName(
    testClassName: String!,
    testMethodName: String!
): Unit

Deprecated: Deprecated in Java.

testEnded

Added in API level 1
open fun testEnded(testName: String!): Unit

Deprecated: Deprecated in Java.

testFailed

Added in API level 1
open fun testFailed(
    status: Int,
    test: Test!,
    t: Throwable!
): Unit

Deprecated: Deprecated in Java.

testStarted

Added in API level 1
open fun testStarted(testName: String!): Unit

Deprecated: Deprecated in Java.

Protected methods

createTestResult

Added in API level 1
protected open fun createTestResult(): TestResult!

Deprecated: Deprecated in Java.

loadSuiteClass

Added in API level 1
protected open fun loadSuiteClass(suiteClassName: String!): Class<Any!>!

Deprecated: Deprecated in Java.

runFailed

Added in API level 1
protected open fun runFailed(message: String!): Unit

Deprecated: Deprecated in Java.