jetbrains.buildServer.serverSide
Interface STestRun


public interface STestRun

Represents a single test run (execution) in a particular build.

Since:
6.5
Author:
Sergey Anchipolevsky, Maxim Podkolzine (maxim.podkolzine@jetbrains.com)

Field Summary
static java.util.Comparator<STestRun> NEW_FIRST_NAME_COMPARATOR
           
 
Method Summary
 SBuild getBuild()
          Returns corresponding build instance.
 int getDuration()
          Returns test duration.
 TestFailureInfo getFailureInfo()
          Returns corresponding test failure info (if exists)
 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
 MuteInfo getMuteInfo()
          Returns the brief mute information for this test run.
 int getOrderId()
          Returns ordinal number of this test in the build
 Status getStatus()
          Returns test status
 STest getTest()
          Returns corresponding test instance.
 int getTestRunId()
          Returns the system-wide unique test run id
 boolean isFixed()
          Returns true iff this test was fixed after this failure.
 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
 

Field Detail

NEW_FIRST_NAME_COMPARATOR

static final java.util.Comparator<STestRun> NEW_FIRST_NAME_COMPARATOR
Method Detail

getTest

@NotNull
STest getTest()
Returns corresponding test instance.

Note: the instance might or might not be shared between different test runs of one test.

Returns:
corresponding test instance

getBuild

@NotNull
SBuild getBuild()
Returns corresponding build instance.

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.

Returns:
corresponding build instance

getOrderId

int getOrderId()
Returns ordinal number of this test in the build

Returns:
ordinal number of this test in the build

getTestRunId

int getTestRunId()
Returns the system-wide unique test run id

Returns:
test run id

getDuration

int getDuration()
Returns test duration.

Returns:
test duration in milliseconds

getStatus

@NotNull
Status getStatus()
Returns test status

Returns:
test status

getFailureInfo

@Nullable
TestFailureInfo getFailureInfo()
Returns corresponding test failure info (if exists)

Returns:
corresponding test failure info (if exists)

getFirstFailed

@Nullable
SBuild getFirstFailed()
Returns the first build in a failing sequence containing this test run

Returns:
first failed in build

getFixedIn

@Nullable
SBuild getFixedIn()
Returns the first build in which test is fixed after a failing sequence containing this test run

Returns:
fixed in build

isFixed

boolean isFixed()
Returns true iff this test was fixed after this failure. Returns false for a successful test.

Returns:
true if this test was fixed

isNewFailure

boolean isNewFailure()
Returns whether this test is failed and it was not failed in previous builds

Returns:
true if this test is failed and it was not failed in previous builds

isMuted

boolean isMuted()
Returns whether this test run is marked as muted (this is applicable for failed tests only).

Returns:
whether this test run is marked as muted.
See Also:
getMuteInfo()

getMuteInfo

@Nullable
MuteInfo getMuteInfo()
Returns the brief mute information for this test run.

Returns:
mute information if exists.
See Also:
isMuted()

getFullText

@Nullable
java.lang.String getFullText()
Returns complete test output, including stdout, stderr and exceptions

Returns:
complete test output, including stdout, stderr and exceptions

getIgnoreComment

@Nullable
java.lang.String getIgnoreComment()
Returns ignore comment, if available

Returns:
ignore comment, if available