Google is committed to advancing racial equity for Black communities. See how.
Added in API level REL
Deprecated in API level REL

RepetitiveTest

@Target([AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER]) class RepetitiveTest
android.test.RepetitiveTest

This annotation can be used on an android.test.InstrumentationTestCase's test methods. When the annotation is present, the test method is executed the number of times specified by numIterations and defaults to 1.

Summary

Public constructors

<init>(numIterations: Int)

This annotation can be used on an android.test.InstrumentationTestCase's test methods.

Properties

Int

Indicates the number of times a test case should be run.

Public constructors

<init>

Added in API level REL
Deprecated in API level REL
RepetitiveTest(numIterations: Int)

Deprecated: New tests should be written using the Android Testing Support Library.

This annotation can be used on an android.test.InstrumentationTestCase's test methods. When the annotation is present, the test method is executed the number of times specified by numIterations and defaults to 1.

Properties

numIterations

Added in API level REL
Deprecated in API level REL
val numIterations: Int

Deprecated.

Indicates the number of times a test case should be run.

Return
Int The total number of iterations, the default is 1.