public class TestCaseImpl extends BambooEntityObject implements TestCase
Constructor and Description |
---|
TestCaseImpl() |
TestCaseImpl(String name) |
TestCaseImpl(String name,
TestClass testClass) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TestCase testCase) |
TestCase |
copyTestCase()
Creates a copy of the
TestCase . |
boolean |
equals(Object o) |
long |
getAverageDuration() |
long |
getAverageDurationInSeconds() |
int |
getFirstRanBuildNumber() |
int |
getLastRanBuildNumber() |
String |
getLinkedJiraIssueKey()
Tests can be linked to a specific jira issue.
|
String |
getMethodName()
Returns a sentence describing the test, derived from the method name of the test.
|
String |
getName() |
int |
getNumberOfFailedRuns() |
int |
getNumberOfSkippedRuns() |
int |
getNumberOfSuccessRuns() |
QuarantineStatistics |
getQuarantineStatistics() |
double |
getSuccessPercentage() |
TestClass |
getTestClass() |
int |
getTotalTestRuns() |
int |
hashCode() |
boolean |
isQuarantined() |
void |
setAverageDuration(long averageDuration) |
void |
setFirstRanBuildNumber(int firstRanBuildNumber) |
void |
setLastRanBuildNumber(int lastRanBuildNumber) |
void |
setLinkedJiraIssueKey(String issueKey) |
protected void |
setName(String name) |
protected void |
setNameAndTruncate(String name) |
void |
setNumberOfFailedRuns(int numberOfFailedRuns) |
void |
setNumberOfSkippedRuns(int numberOfSkippedRuns)
Set the number of runs this test has een skipped.
|
void |
setNumberOfSuccessRuns(int numberOfSuccessRuns) |
void |
setQuarantineStatistics(QuarantineStatistics quarantineStatistics) |
void |
setQuarantineStatistics(String quarantineUser,
Date quarantineDate)
Deprecated.
since 5.9
|
void |
setQuarantineStatistics(String quarantineUser,
Date quarantineDate,
Date quarantineExpiryDate) |
void |
setTestClass(TestClass testClass)
Set the testClass this test case belongs to
|
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
setId
getId
public TestCaseImpl()
public TestCaseImpl(String name)
public String getMethodName()
TestCase
getMethodName
in interface TestCase
public double getSuccessPercentage()
getSuccessPercentage
in interface TestCase
public int getTotalTestRuns()
getTotalTestRuns
in interface TestCase
public String getName()
protected void setNameAndTruncate(String name)
protected void setName(String name)
public TestClass getTestClass()
getTestClass
in interface TestCase
public void setTestClass(TestClass testClass)
TestCase
setTestClass
in interface TestCase
testClass
- the test case belongs topublic int getNumberOfSuccessRuns()
getNumberOfSuccessRuns
in interface TestCase
public void setNumberOfSuccessRuns(int numberOfSuccessRuns)
setNumberOfSuccessRuns
in interface TestCase
public int getNumberOfFailedRuns()
getNumberOfFailedRuns
in interface TestCase
public void setNumberOfFailedRuns(int numberOfFailedRuns)
setNumberOfFailedRuns
in interface TestCase
public int getNumberOfSkippedRuns()
getNumberOfSkippedRuns
in interface TestCase
public void setNumberOfSkippedRuns(int numberOfSkippedRuns)
TestCase
setNumberOfSkippedRuns
in interface TestCase
numberOfSkippedRuns
- the new number of skipped runs.public long getAverageDuration()
getAverageDuration
in interface TestCase
public long getAverageDurationInSeconds()
getAverageDurationInSeconds
in interface TestCase
public void setAverageDuration(long averageDuration)
setAverageDuration
in interface TestCase
public int getFirstRanBuildNumber()
getFirstRanBuildNumber
in interface TestCase
public void setFirstRanBuildNumber(int firstRanBuildNumber)
setFirstRanBuildNumber
in interface TestCase
public int getLastRanBuildNumber()
getLastRanBuildNumber
in interface TestCase
public void setLastRanBuildNumber(int lastRanBuildNumber)
setLastRanBuildNumber
in interface TestCase
public boolean isQuarantined()
isQuarantined
in interface TestCase
@Deprecated public void setQuarantineStatistics(@NotNull String quarantineUser, @NotNull Date quarantineDate)
setQuarantineStatistics
in interface TestCase
public void setQuarantineStatistics(@NotNull String quarantineUser, @NotNull Date quarantineDate, @Nullable Date quarantineExpiryDate)
setQuarantineStatistics
in interface TestCase
public void setQuarantineStatistics(@Nullable QuarantineStatistics quarantineStatistics)
setQuarantineStatistics
in interface TestCase
@Nullable public QuarantineStatistics getQuarantineStatistics()
getQuarantineStatistics
in interface TestCase
public String getLinkedJiraIssueKey()
TestCase
getLinkedJiraIssueKey
in interface TestCase
public void setLinkedJiraIssueKey(@Nullable String issueKey)
setLinkedJiraIssueKey
in interface TestCase
@NotNull public TestCase copyTestCase()
TestCase
copyTestCase
in interface TestCase
public int hashCode()
hashCode
in class com.atlassian.core.bean.EntityObject
public boolean equals(Object o)
equals
in class com.atlassian.core.bean.EntityObject
public int compareTo(TestCase testCase)
compareTo
in interface Comparable<TestCase>
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.