FileDocCategorySizeDatePackage
FlakyTest.javaAPI DocAndroid 1.5 API1474Wed May 06 22:41:56 BST 2009android.test

FlakyTest

public class FlakyTest
This annotation can be used on an {@link android.test.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.

Fields Summary
Constructors Summary
Methods Summary
inttolerance()
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.

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