public interface STestRun
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<STestRun> |
NEW_FIRST_NAME_COMPARATOR |
Modifier and Type | Method and Description |
---|---|
SBuild |
getBuild()
Returns corresponding build instance.
|
long |
getBuildId() |
int |
getDuration()
Returns test duration.
|
int |
getFailedInvocationCount()
Return number of times test with this name was failed within the build (<=
getInvocationCount()
For STestRuns obtained from ShortStatistics, returns the same value as getInvocationCount() |
default TestFailureInfo |
getFailureInfo()
Deprecated.
in 9.0, use
getFullText() instead |
SBuild |
getFirstFailed()
Returns the first build in a failing sequence containing this test run
|
SBuild |
getFixedIn()
Returns the first build in which test is fixed after a failing sequence containing this test run
|
java.lang.String |
getFullText()
Returns complete test output, including stdout, stderr and exceptions
|
java.lang.String |
getIgnoreComment()
Returns ignore comment, if available
|
int |
getInvocationCount()
Return number of times test with this name was run within the build.
|
MuteInfo |
getMuteInfo()
Returns the brief mute information for this test run.
|
int |
getOrderId()
Returns ordinal number of this test in the build statistics collection.
|
Status |
getStatus()
Returns test status.
|
java.lang.String |
getStatusText()
Return human-readable test status, not an object
|
STest |
getTest()
Returns corresponding test instance.
|
int |
getTestRunId()
Returns the unique test run id within the build
|
boolean |
isFixed()
Returns true if this test was fixed after this failure.
|
boolean |
isIgnored()
Checks whether the test was ignored during the build run
|
boolean |
isMuted()
Returns whether this test run is marked as muted (this is applicable for failed tests only).
|
boolean |
isNewFailure()
Returns whether this test is failed and it was not failed in previous builds
|
void |
setFirstFailedIn(SBuild firstFailedIn)
Sets the build where this TestRun is considered first failed in
|
void |
setFixedIn(SBuild fixedIn)
Deprecated.
since 2019.2, should not be used by the client code
|
static final java.util.Comparator<STestRun> NEW_FIRST_NAME_COMPARATOR
@NotNull STest getTest()
Note: the instance might or might not be shared between different test runs of one test.
@NotNull SBuild getBuild()
Note: each test run has an associated build, but depending on how this test run instance was
created build might not be populated. In this case a UnsupportedOperationException
is thrown.
long getBuildId()
int getOrderId()
int getTestRunId()
int getInvocationCount()
int getFailedInvocationCount()
getInvocationCount()
For STestRuns obtained from ShortStatistics, returns the same value as getInvocationCount()
getInvocationCount()
int getDuration()
@NotNull Status getStatus()
@NotNull java.lang.String getStatusText()
@Deprecated @Nullable default TestFailureInfo getFailureInfo()
getFullText()
instead@Nullable SBuild getFirstFailed()
void setFirstFailedIn(@Nullable SBuild firstFailedIn)
firstFailedIn
- the first failed in buildgetFirstFailed()
@Nullable SBuild getFixedIn()
@Deprecated void setFixedIn(@Nullable SBuild fixedIn)
fixedIn
- the fixed in buildgetFixedIn()
boolean isFixed()
java.lang.UnsupportedOperationException
- if the statistics object was created without option BuildStatisticsOptions.FIXED_IN_BUILD
boolean isNewFailure()
boolean isMuted()
getMuteInfo()
boolean isIgnored()
@Nullable MuteInfo getMuteInfo()
isMuted()
@Nullable java.lang.String getFullText()
@Nullable java.lang.String getIgnoreComment()