com.atlassian.bamboo.resultsummary.tests
Interface TestCase

All Superinterfaces:
BambooIdProvider, BambooObject, java.lang.Comparable<TestCase>
All Known Implementing Classes:
TestCaseImpl

public interface TestCase
extends java.lang.Comparable<TestCase>, BambooObject

Represents a test in a plan. A TestCase belongs to a TestClass. And when this test is run it will produce a TestCaseResult


Method Summary
 TestCase copyTestCase()
          Creates a copy of the TestCase.
 long getAverageDuration()
           
 long getAverageDurationInSeconds()
           
 int getFirstRanBuildNumber()
           
 int getLastRanBuildNumber()
           
 java.lang.String getLinkedJiraIssue()
          Tests can be linked to a specific jira issue.
 java.lang.String getMethodName()
          Returns a sentence describing the test, derived from the method name of the test.
 java.lang.String getName()
           
 int getNumberOfFailedRuns()
           
 int getNumberOfSuccessRuns()
           
 QuarantineStatistics getQuarantineStatistics()
           
 double getSuccessPercentage()
           
 TestClass getTestClass()
           
 int getTotalTestRuns()
           
 boolean isQuarantined()
           
 void setAverageDuration(long averageDuration)
           
 void setFirstRanBuildNumber(int firstRanBuildNumber)
           
 void setLastRanBuildNumber(int lastRanBuildNumber)
           
 void setLinkedJiraIssue(java.lang.String issueKey)
           
 void setNumberOfFailedRuns(int numberOfFailedRuns)
           
 void setNumberOfSuccessRuns(int numberOfSuccessRuns)
           
 void setQuarantineStatistics(QuarantineStatistics quarantineStatistics)
           
 void setQuarantineStatistics(java.lang.String quarantineUser, java.util.Date quarantineDate)
           
 void setTestClass(TestClass testClass)
          Set the testClass this test case belongs to
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
 
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
 

Method Detail

getName

java.lang.String getName()
Returns:
The true name of the test case

getTestClass

TestClass getTestClass()
Returns:
the TestClass the testcase belongs to

setTestClass

void setTestClass(TestClass testClass)
Set the testClass this test case belongs to

Parameters:
testClass - the test case belongs to

getMethodName

java.lang.String getMethodName()
Returns a sentence describing the test, derived from the method name of the test.

Returns:
The sentence

getSuccessPercentage

double getSuccessPercentage()
Returns:
how successful this test case has been. (success runs / total runs)

getTotalTestRuns

int getTotalTestRuns()
Returns:
the total number of times this test has run.

getNumberOfSuccessRuns

int getNumberOfSuccessRuns()
Returns:
the number of times this test has run successfully

setNumberOfSuccessRuns

void setNumberOfSuccessRuns(int numberOfSuccessRuns)

getNumberOfFailedRuns

int getNumberOfFailedRuns()
Returns:
the number of times this test has run and failed

setNumberOfFailedRuns

void setNumberOfFailedRuns(int numberOfFailedRuns)

getAverageDuration

long getAverageDuration()
Returns:
the average duration in milliseconds of this test case for all test runs.

getAverageDurationInSeconds

long getAverageDurationInSeconds()
Returns:
the average duration in seconds of this test case for all test runs.

setAverageDuration

void setAverageDuration(long averageDuration)

getFirstRanBuildNumber

int getFirstRanBuildNumber()
Returns:
the build number that this test was first run in.

setFirstRanBuildNumber

void setFirstRanBuildNumber(int firstRanBuildNumber)

getLastRanBuildNumber

int getLastRanBuildNumber()
Returns:
the most recent build that this test was part of

setLastRanBuildNumber

void setLastRanBuildNumber(int lastRanBuildNumber)

copyTestCase

@NotNull
TestCase copyTestCase()
Creates a copy of the TestCase. Note that it does not include TestClass

Returns:
copyOfTestCase

setQuarantineStatistics

void setQuarantineStatistics(@NotNull
                             java.lang.String quarantineUser,
                             @NotNull
                             java.util.Date quarantineDate)

getQuarantineStatistics

@Nullable
QuarantineStatistics getQuarantineStatistics()

isQuarantined

boolean isQuarantined()

setQuarantineStatistics

void setQuarantineStatistics(@Nullable
                             QuarantineStatistics quarantineStatistics)

getLinkedJiraIssue

@Nullable
java.lang.String getLinkedJiraIssue()
Tests can be linked to a specific jira issue. This is the issue key of that issue.

Returns:

setLinkedJiraIssue

void setLinkedJiraIssue(@Nullable
                        java.lang.String issueKey)


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.