TestRunErrorEvent


public class TestRunErrorEvent extends TestPlatformEvent


This event is sent when an error is encountered in a test run but cannot be attributed to any specific test case. Multiple TestRunErrorEvents may be reported. This event does not mean the test run has finished.

See also
TestCaseErrorEvent

for an event regarding errors for a specific test.

TestRunFinishedEvent

to mark the test run as finished.

Summary

Public constructors

TestRunErrorEvent(
    @NonNull TestRunInfo testRun,
    @NonNull ErrorInfo error,
    @NonNull TimeStamp timeStamp
)

Constructor to create TestRunErrorEvent.

Public methods

void
writeToParcel(Parcel parcel, int i)

Public fields

error

public final @NonNull ErrorInfo error

testRun

public final @NonNull TestRunInfo testRun

timeStamp

public final @NonNull TimeStamp timeStamp

Public constructors

TestRunErrorEvent

public TestRunErrorEvent(
    @NonNull TestRunInfo testRun,
    @NonNull ErrorInfo error,
    @NonNull TimeStamp timeStamp
)

Constructor to create TestRunErrorEvent.

Parameters
@NonNull TestRunInfo testRun

the test run this error should be attributed to.

@NonNull ErrorInfo error

the error that occurred.

@NonNull TimeStamp timeStamp

the time when this error occurred.

Public methods

writeToParcel

public void writeToParcel(Parcel parcel, int i)