com.atlassian.bamboo.resultsummary.tests
Interface TestQuarantineManager

All Known Implementing Classes:
TestQuarantineManagerImpl

public interface TestQuarantineManager

Manager for manipulating all things test quarantine related


Field Summary
static java.lang.String QUARANTINE_TEST_KEY
           
 
Method Summary
 java.util.List<TestCase> getCurrentlyQuarantinedTests(ImmutableChain chain)
          Get a list of TestCase of all the tests currently quarantined for a given plan
 java.util.List<TestCase> getCurrentlyQuarantinedTests(ImmutableJob job)
          Get a list of TestClass and TestCase names of all the tests currently quarantined for a given job In string form for use in the BuildContext custom config
 java.util.List<TestCaseResult> getQuarantinedTestsListForBuildResult(BuildResultsSummary buildResultsSummary)
          Returns List of TestCaseResult that are quarantined for a given build result.
 java.util.List<TestCaseResult> getQuarantinedTestsListForChainResult(ChainResultsSummary chainResultsSummary)
          Get a list of TestCase of all the tests quarantined for a given chain result
 void quarantineTest(long testId, com.atlassian.user.User user, java.util.Date date)
          Quarantines a given test
 void unleashTest(long testId)
          Unleash a given test
 

Field Detail

QUARANTINE_TEST_KEY

static final java.lang.String QUARANTINE_TEST_KEY
See Also:
Constant Field Values
Method Detail

quarantineTest

void quarantineTest(long testId,
                    @NotNull
                    com.atlassian.user.User user,
                    @NotNull
                    java.util.Date date)
Quarantines a given test

Parameters:
testId - - Id of the required test case
user - - @NotNull User quarantining test
date - - date of test quarantine

unleashTest

void unleashTest(long testId)
Unleash a given test

Parameters:
testId - - ID of required test case

getCurrentlyQuarantinedTests

@Nullable
java.util.List<TestCase> getCurrentlyQuarantinedTests(@NotNull
                                                               ImmutableJob job)
Get a list of TestClass and TestCase names of all the tests currently quarantined for a given job In string form for use in the BuildContext custom config

Parameters:
job - to get quarantined tests for
Returns:
A list of TestCase

getCurrentlyQuarantinedTests

@Nullable
java.util.List<TestCase> getCurrentlyQuarantinedTests(@NotNull
                                                               ImmutableChain chain)
Get a list of TestCase of all the tests currently quarantined for a given plan

Parameters:
chain - - the chain representing a plan to get quarantined tests for
Returns:
A list of TestCase

getQuarantinedTestsListForChainResult

@Nullable
java.util.List<TestCaseResult> getQuarantinedTestsListForChainResult(@NotNull
                                                                              ChainResultsSummary chainResultsSummary)
Get a list of TestCase of all the tests quarantined for a given chain result

Parameters:
chainResultsSummary - - results summary of the build you need quarantined tests for
Returns:
a list of TestCase of all the tests quarantined for a chain result

getQuarantinedTestsListForBuildResult

@NotNull
java.util.List<TestCaseResult> getQuarantinedTestsListForBuildResult(@NotNull
                                                                             BuildResultsSummary buildResultsSummary)
Returns List of TestCaseResult that are quarantined for a given build result.

Parameters:
buildResultsSummary - - results summary of the build you need quarantined tests for
Returns:
List of TestCaseResult. Empty list if no quarantined tests


Copyright © 2012 Atlassian. All Rights Reserved.