com.atlassian.bamboo.build
Interface TestCase

All Known Implementing Classes:
TestCaseLuceneImpl

public interface TestCase

Basic POJO to hold information about a TestCase across builds.


Method Summary
 java.lang.String getActualMethodName()
           
 java.util.List getAllTestBuildNumbers()
           
 double getAverageDurationInSeconds()
           
 double getAverageTimeToFix()
           
 Build getBuild()
          The build for which this test case exists in
 java.lang.String getClassName()
           
 int getCreatedInBuild()
           
 java.util.List getFailedTestBuildNumbers()
           
 java.util.List getFailurePeriods()
           
 java.lang.String getMethodName()
           
 java.util.List getSuccessfulTestBuildNumbers()
           
 double getSuccessPercentage()
           
 java.util.SortedMap getTestResults()
          Get a map of test case result objects.
 int getTotalFailures()
           
 int getTotalNumberOfResults()
           
 int getTotalSuccesses()
           
 

Method Detail

getBuild

Build getBuild()
The build for which this test case exists in

Returns:
Build

getTotalNumberOfResults

int getTotalNumberOfResults()
Returns:
number of times test case ran - i.e. number of builds existed in.

getTotalFailures

int getTotalFailures()
Returns:
how many times it failed

getTotalSuccesses

int getTotalSuccesses()
Returns:
how many times it succeeded.

getCreatedInBuild

int getCreatedInBuild()
Returns:
which build number when this test case first appeared.

getSuccessPercentage

double getSuccessPercentage()
Returns:
percentage of successes to total tests

getActualMethodName

java.lang.String getActualMethodName()
Returns:
the method name

getMethodName

java.lang.String getMethodName()
Returns:
String representing nice test description derived from the testCase method name

getClassName

java.lang.String getClassName()
Returns:
String of the full class path for which this test case exists in.

getAllTestBuildNumbers

java.util.List getAllTestBuildNumbers()
Returns:
List of Integer build numbers in which this test case occurred.

getSuccessfulTestBuildNumbers

java.util.List getSuccessfulTestBuildNumbers()
Returns:
List of Integer representing all sucessful builds numbers for this test case.

getFailedTestBuildNumbers

java.util.List getFailedTestBuildNumbers()
Returns:
List of Integer represnting all failed build numbers for this test case.

getFailurePeriods

java.util.List getFailurePeriods()
Returns:
List of TestCaseFailurePeriod objects.

getTestResults

java.util.SortedMap getTestResults()
Get a map of test case result objects.

Returns:
SortedMap containing the actual test case result objects. key - Integer of build number for the test case result value - TestCaseResult representing one run of the test case.

getAverageDurationInSeconds

double getAverageDurationInSeconds()

getAverageTimeToFix

double getAverageTimeToFix()


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.