Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Ctors](https://developer.android.com/reference/android/test/InstrumentationTestSuite#pubctors) \| [Methods](https://developer.android.com/reference/android/test/InstrumentationTestSuite#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/test/InstrumentationTestSuite#inhmethods)

# InstrumentationTestSuite

*** ** * ** ***

` public class InstrumentationTestSuite `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.test.InstrumentationTestSuite |

<br />

*** ** * ** ***

<br />

**This class was deprecated in API level 24.**   

Use [InstrumentationRegistry](https://developer.android.com/reference/android/support/test/InstrumentationRegistry) instead. New tests should be written using the [Android Testing Support Library](https://developer.android.com/tools/testing-support-library).

A `https://developer.android.com/reference/junit/framework/TestSuite` that injects `https://developer.android.com/reference/android/app/Instrumentation` into `https://developer.android.com/reference/android/test/InstrumentationTestCase` before running them.

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/test/InstrumentationTestSuite#InstrumentationTestSuite(android.app.Instrumentation)(https://developer.android.com/reference/android/app/Instrumentation instr) ` |
| ` https://developer.android.com/reference/android/test/InstrumentationTestSuite#InstrumentationTestSuite(java.lang.Class,%20android.app.Instrumentation)(https://developer.android.com/reference/java/lang/Class<T> theClass, https://developer.android.com/reference/android/app/Instrumentation instr) ` |
| ` https://developer.android.com/reference/android/test/InstrumentationTestSuite#InstrumentationTestSuite(java.lang.String,%20android.app.Instrumentation)(https://developer.android.com/reference/java/lang/String name, https://developer.android.com/reference/android/app/Instrumentation instr) ` |

| ### Public methods ||
|---|---|
| ` void` | ` https://developer.android.com/reference/android/test/InstrumentationTestSuite#addTestSuite(java.lang.Class)(https://developer.android.com/reference/java/lang/Class<T> testClass) ` |
| ` void` | ` https://developer.android.com/reference/android/test/InstrumentationTestSuite#runTest(Test,%20TestResult)(Test test, TestResult result) ` |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Public constructors

### InstrumentationTestSuite

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public InstrumentationTestSuite (Instrumentation instr)
```

<br />

<br />

| Parameters ||
|---|---|
| `instr` | `Instrumentation`: The instrumentation that will be injected into each test before running it. <br /> |

### InstrumentationTestSuite

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public InstrumentationTestSuite (Class<T> theClass, 
                Instrumentation instr)
```

<br />

<br />

| Parameters ||
|---|---|
| `theClass` | `Class`: Inspected for methods starting with 'test' <br /> |
| `instr` | `Instrumentation`: The instrumentation to inject into each test before running. <br /> |

### InstrumentationTestSuite

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public InstrumentationTestSuite (String name, 
                Instrumentation instr)
```

<br />

<br />

| Parameters ||
|---|---|
| `name` | `String` <br /> |
| `instr` | `Instrumentation` <br /> |

## Public methods

### addTestSuite

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void addTestSuite (Class<T> testClass)
```

<br />

<br />

| Parameters ||
|---|---|
| `testClass` | `Class` <br /> |

### runTest

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void runTest (Test test, 
                TestResult result)
```

<br />

<br />

| Parameters ||
|---|---|
| `test` | `Test` <br /> |
| `result` | `TestResult` <br /> |