Join us for ⁠#Android11: The Beta Launch Show on June 3!
Added in API level R
Deprecated in API level R

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 R
Deprecated in API level R
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 R
Deprecated in API level R
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.