次の方法で共有


IFlakyTest.Tolerance Method

Definition

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

[Android.Runtime.Register("tolerance", "()I", "GetToleranceHandler:Android.Test.IFlakyTestInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int Tolerance ();
[<Android.Runtime.Register("tolerance", "()I", "GetToleranceHandler:Android.Test.IFlakyTestInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Tolerance : unit -> int

Returns

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

Attributes

Remarks

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.

Java documentation for android.test.FlakyTest.tolerance().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to