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 intgetFailedInvocationCount()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()intgetFirstFailedTestRunId()intgetInvocationCount()Return number of times test with this name was run within the build.TestRunMetadatagetMetadata()StringgetStatusText()Return human-readable test status, not an objectbooleanisIgnored()Checks whether the test was ignored during the build runbooleanisMuted()Returns whether this test run is marked as muted (this is applicable for failed tests only).abstract voidsetFixedInId(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:STestRunReturns whether this test run is marked as muted (this is applicable for failed tests only).- Specified by:
isMutedin 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:STestRunReturn human-readable test status, not an object- Specified by:
getStatusTextin interfaceSTestRun- Returns:
- human-readable test status
-
getInvocationCount
public int getInvocationCount()
Description copied from interface:STestRunReturn 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:
getInvocationCountin interfaceSTestRun- Returns:
- see above
-
getFailedInvocationCount
public int getFailedInvocationCount()
Description copied from interface:STestRunReturn 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:
getFailedInvocationCountin interfaceSTestRun- Returns:
- see above
- See Also:
STestRun.getInvocationCount()
-
isIgnored
public boolean isIgnored()
Description copied from interface:STestRunChecks whether the test was ignored during the build run
-
getMetadata
@NotNull public TestRunMetadata getMetadata()
- Specified by:
getMetadatain interfaceTestRunEx
-
setFixedInId
public abstract void setFixedInId(long fixedInId)
-
-