Package jetbrains.buildServer.serverSide
Class BaseTestRun
- java.lang.Object
-
- jetbrains.buildServer.serverSide.BaseTestRun
-
- Direct Known Subclasses:
DummyTestRunImpl
,MultiTestRun
,TestRunWithContext
public abstract class BaseTestRun extends Object implements TestRunEx
- Since:
- 2019.2
-
-
Field Summary
-
Fields inherited from interface jetbrains.buildServer.serverSide.STestRun
NEW_FIRST_NAME_COMPARATOR
-
-
Constructor Summary
Constructors Constructor Description BaseTestRun()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
getFailedInvocationCount()
Return number of times test with this name was failed within the build (<=STestRun.getInvocationCount()
For STestRuns obtained from ShortStatistics, returns the same value asSTestRun.getInvocationCount()
int
getFirstFailedTestRunId()
int
getInvocationCount()
Return number of times test with this name was run within the build.TestRunMetadata
getMetadata()
String
getStatusText()
Return human-readable test status, not an objectboolean
isIgnored()
Checks whether the test was ignored during the build runboolean
isMuted()
Returns whether this test run is marked as muted (this is applicable for failed tests only).abstract void
setFixedInId(long fixedInId)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.STestRun
getBuild, getBuildId, getDuration, getFailureInfo, getFirstFailed, getFixedIn, getFullText, getIgnoreComment, getMuteInfo, getOrderId, getStatus, getTest, getTestRunId, isFixed, isNewFailure, setFirstFailedIn, setFixedIn
-
Methods inherited from interface jetbrains.buildServer.serverSide.TestRunEx
getBuildOrNull, isNewFailureComputed, setBuild, setMuteInfo, setNewFailure
-
-
-
-
Method Detail
-
isMuted
public boolean isMuted()
Description copied from interface:STestRun
Returns whether this test run is marked as muted (this is applicable for failed tests only).- Specified by:
isMuted
in interfaceSTestRun
- Returns:
- whether this test run is marked as muted.
- See Also:
STestRun.getMuteInfo()
-
getFirstFailedTestRunId
public int getFirstFailedTestRunId()
-
getStatusText
@NotNull public String getStatusText()
Description copied from interface:STestRun
Return human-readable test status, not an object- Specified by:
getStatusText
in interfaceSTestRun
- Returns:
- human-readable test status
-
getInvocationCount
public int getInvocationCount()
Description copied from interface:STestRun
Return number of times test with this name was run within the build. If this STestRun was obtained as a part of ShortStatistics, only failed test runs are included.- Specified by:
getInvocationCount
in interfaceSTestRun
- Returns:
- see above
-
getFailedInvocationCount
public int getFailedInvocationCount()
Description copied from interface:STestRun
Return number of times test with this name was failed within the build (<=STestRun.getInvocationCount()
For STestRuns obtained from ShortStatistics, returns the same value asSTestRun.getInvocationCount()
- Specified by:
getFailedInvocationCount
in interfaceSTestRun
- Returns:
- see above
- See Also:
STestRun.getInvocationCount()
-
isIgnored
public boolean isIgnored()
Description copied from interface:STestRun
Checks whether the test was ignored during the build run
-
getMetadata
@NotNull public TestRunMetadata getMetadata()
- Specified by:
getMetadata
in interfaceTestRunEx
-
setFixedInId
public abstract void setFixedInId(long fixedInId)
-
-