TestStatus

public final enum TestStatus
extends Enum<TestStatus>

java.lang.Object
   ↳ java.lang.Enum<com.android.tradefed.result.TestStatus>
     ↳ com.android.tradefed.result.TestStatus


Representation in Tradefed of possible statuses for test methods.

Summary

Enum values

TestStatus  ASSUMPTION_FAILURE

Test assumption failure 

TestStatus  FAILURE

Test failed. 

TestStatus  IGNORED

Test ignored 

TestStatus  INCOMPLETE

Test started but not ended 

TestStatus  PASSED

Test passed 

TestStatus  SKIPPED

Test skipped, did not run for a reason 

Public methods

static TestStatus convertFromCompatibilityString(String status)

Convert Tradefed status from a format compatible with Android Partner backend.

static TestStatus convertFromDdmlibType(TestResult.TestStatus ddmlibStatus)
static String convertToCompatibilityString(TestStatus status)

Convert Tradefed status to a format compatible with Android Partner backend.

static TestResult.TestStatus convertToDdmlibType(TestStatus status)

Convert Tradefed status to ddmlib one during the transition of classes.

static TestStatus valueOf(String name)
static final TestStatus[] values()

Enum values

ASSUMPTION_FAILURE

public static final TestStatus ASSUMPTION_FAILURE

Test assumption failure

FAILURE

public static final TestStatus FAILURE

Test failed.

IGNORED

public static final TestStatus IGNORED

Test ignored

INCOMPLETE

public static final TestStatus INCOMPLETE

Test started but not ended

PASSED

public static final TestStatus PASSED

Test passed

SKIPPED

public static final TestStatus SKIPPED

Test skipped, did not run for a reason

Public methods

convertFromCompatibilityString

public static TestStatus convertFromCompatibilityString (String status)

Convert Tradefed status from a format compatible with Android Partner backend.

Parameters
status String

Returns
TestStatus

convertFromDdmlibType

public static TestStatus convertFromDdmlibType (TestResult.TestStatus ddmlibStatus)

Parameters
ddmlibStatus TestResult.TestStatus

Returns
TestStatus

convertToCompatibilityString

public static String convertToCompatibilityString (TestStatus status)

Convert Tradefed status to a format compatible with Android Partner backend.

Parameters
status TestStatus

Returns
String

convertToDdmlibType

public static TestResult.TestStatus convertToDdmlibType (TestStatus status)

Convert Tradefed status to ddmlib one during the transition of classes.

Parameters
status TestStatus

Returns
TestResult.TestStatus

valueOf

public static TestStatus valueOf (String name)

Parameters
name String

Returns
TestStatus

values

public static final TestStatus[] values ()

Returns
TestStatus[]