# Print output for @column tags ?> FlakyTest - Android SDK | Android Developers

Most visited


Recently visited


FlakyTest

public abstract @interface FlakyTest
implements Annotation

android.test.FlakyTest


This @interface is deprecated.
Use FlakyTest instead. New tests should be written using the Android Testing Support Library.

This annotation can be used on an InstrumentationTestCase's test methods. When the annotation is present, the test method is re-executed if the test fails. The total number of executions is specified by the tolerance and defaults to 1.

Summary


Public methods

int tolerance()

Indicates how many times a test can run and fail before being reported as a failed test.

Inherited methods

Public methods


tolerance

public int tolerance ()

Indicates how many times a test can run and fail before being reported as a failed test. If the tolerance factor is less than 1, the test runs only once.

Returns
int The total number of allowed run, the default is 1.

Browse this site in English?

You requested a page in English, but your language preference for this site is English.

Would you like to change your language preference and browse this site in English? If you want to change your language preference later, use the language menu at the bottom of each page.