TestCaseFinishedEvent


public class TestCaseFinishedEvent extends TestPlatformEvent


Marks the end of an individual test case and the overall status of that test.

There should always be a TestCaseFinishedEvent emitted for all test cases in a test run, though there are a couple of exceptions.

  • TestStatus.Status.IGNORED: The test was never started and will not be run.
  • TestStatus.Status.CANCELLED: The test was supposed to run, but this client encountered a state that required it to exit before the test could run.
See also
TestCaseStartedEvent

to signal that a test case has started.

TestCaseErrorEvent

for reporting errors that occurred while this test case was running.

TestStatus.Status

for more information on our test statuses.

Summary

Public constructors

TestCaseFinishedEvent(
    @NonNull TestCaseInfo testCase,
    @NonNull TestStatus testStatus,
    @NonNull TimeStamp timeStamp
)

Constructor to create TestCaseFinishedEvent.

Public methods

void
writeToParcel(Parcel parcel, int i)

Public fields

testCase

public final @NonNull TestCaseInfo testCase

testStatus

public final @NonNull TestStatus testStatus

timeStamp

public final @NonNull TimeStamp timeStamp

Public constructors

TestCaseFinishedEvent

public TestCaseFinishedEvent(
    @NonNull TestCaseInfo testCase,
    @NonNull TestStatus testStatus,
    @NonNull TimeStamp timeStamp
)

Constructor to create TestCaseFinishedEvent.

Parameters
@NonNull TestCaseInfo testCase

the test case that finished.

@NonNull TestStatus testStatus

the final status of this test case.

@NonNull TimeStamp timeStamp

the time this test was finished.

Public methods

writeToParcel

public void writeToParcel(Parcel parcel, int i)