TestStatus.Status


public enum TestStatus.Status


Valid test statuses for individual test cases and test runs. Check the documentation on individual statuses for more information.

Summary

Enum Values

ABORTED

This operation was started and was terminated before completion.

CANCELLED

This operation was supposed to run but was abandoned before it was able to execute.

FAILED

This operation finished execution, but did not succeed.

IGNORED

This operation did not run or trigger any other operations.

PASSED

This operation executed normally and succeeded.

SKIPPED

This operation did not run, but other operations may have been run to prepare for this action.

Public methods

static TestStatus.Status

Returns the enum constant of this type with the specified name.

static TestStatus.Status[]

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

ABORTED

TestStatus.Status TestStatus.Status.ABORTED

This operation was started and was terminated before completion. This status should be set by receiver if a test start was emitted by a client but the client does not emit an event marking the tests completion. It is safer to assume the client terminated unexpectedly.

CANCELLED

TestStatus.Status TestStatus.Status.CANCELLED

This operation was supposed to run but was abandoned before it was able to execute. This should be the default test status for receivers. If no updates were sent for tests cases that were expected to run, it is safer to assume that the client terminated unexpectedly.

FAILED

TestStatus.Status TestStatus.Status.FAILED

This operation finished execution, but did not succeed.

IGNORED

TestStatus.Status TestStatus.Status.IGNORED

This operation did not run or trigger any other operations. If this or SKIPPED is not emitted for tests that were not run, the receiver should mark them as CANCELLED since the underlying test runner may have unexpectedly crashed in the middle of running these tests.

See also
SKIPPED

for ignored tests that trigger other operations.

PASSED

TestStatus.Status TestStatus.Status.PASSED

This operation executed normally and succeeded.

SKIPPED

TestStatus.Status TestStatus.Status.SKIPPED

This operation did not run, but other operations may have been run to prepare for this action. An example of this would be if a test threw an - indicating that it should not be run. This does prevent other pre &post test operations from running.

See also
IGNORED

for tests that do not trigger setup/teardown operations.

Public methods

valueOf

public static TestStatus.Status valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Returns
TestStatus.Status

the enum constant with the specified name

Throws
java.lang.IllegalArgumentException

if this enum type has no constant with the specified name

values

public static TestStatus.Status[] values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

Returns
TestStatus.Status[]

an array containing the constants of this enum type, in the order they're declared