# MediumTest

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

# MediumTest

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/test/suitebuilder/annotation/MediumTest "View this page in Java")  

```
@Target([AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.CLASS, AnnotationTarget.FILE]) class MediumTest
```

|----------------------------------------------------------------------------------------------------------------------------------------------------|
| [android.test.suitebuilder.annotation.MediumTest](https://developer.android.com/reference/kotlin/android/test/suitebuilder/annotation/MediumTest#) |

*** ** * ** ***

| **This annotation was deprecated in API level 24.**
|
| Use[MediumTest](https://developer.android.com/reference/android/support/test/filters/MediumTest.html)instead. New tests should be written using the[Android Testing Support Library](https://developer.android.com/tools/testing-support-library/index.html).

Marks a test that should run as part of the medium tests.

## Summary

|                                                                                    Public constructors                                                                                     ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [MediumTest](https://developer.android.com/reference/kotlin/android/test/suitebuilder/annotation/MediumTest#MediumTest())`()` Marks a test that should run as part of the medium tests. |

## Public constructors

### MediumTest

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

```
MediumTest()
```

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

Marks a test that should run as part of the medium tests.