org.squashtest.csp.tm.service
Interface IterationTestPlanManagerService

All Known Implementing Classes:
IterationTestPlanManagerServiceImpl

public interface IterationTestPlanManagerService

Service that aims at managing the test cases of a campaign (i.e. its test plan)

Author:
Agnes Durand

Method Summary
 void addTestCasesToIteration(List<Long> testCaseIds, long iterationId)
          Adds a list of test cases to a campaign.
 void assignUserToTestPlanItem(Long testPlanId, long iterationId, Long userId)
          Assign User with Write Access to a TestPlan item.
 void assignUserToTestPlanItems(List<Long> testPlanIds, long iterationId, Long userId)
          Assign User with Write Access to a multiple TestPlan items.
 List<User> findAssignableUserForTestPlan(long iterationId)
          Get Users with Write Access for an Iteration and its TestPlan.
 Iteration findIteration(long iterationId)
          Find a iteration using its id
 List<TestCaseLibrary> findLinkableTestCaseLibraries()
          Returns a collection of TestCaseLibrary, the test cases of which may be added to the campaign
 List<TestCase> findPlannedTestCases(Long iterationId)
           
 FilteredCollectionHolder<List<IterationTestPlanItem>> findTestPlan(long iterationId, CollectionSorting filter)
           
 IterationTestPlanItem findTestPlanItem(Long iterationId, Long itemTestPlanId)
           
 IterationTestPlanItem findTestPlanItemByTestCaseId(long iterationId, long testCaseId)
          Adds a list of test cases to a campaign.
 boolean removeTestPlanFromIteration(Long testPlanId, long iterationId)
          Removes a test case from a campaign excepted the test plans which were executed
 boolean removeTestPlansFromIteration(List<Long> testPlanIds, long iterationId)
          Removes a list of test cases from a campaign excepted the test plans which were executed
 void updateTestCaseLastExecutedByAndOn(IterationTestPlanItem givenTestPlan, Date lastExecutedOn, String lastExecutedBy)
          Update item test plan lastExecuted data (by and on) (for the moment they're constants)
 

Method Detail

findIteration

Iteration findIteration(long iterationId)
Find a iteration using its id

Parameters:
iterationId -

findLinkableTestCaseLibraries

List<TestCaseLibrary> findLinkableTestCaseLibraries()
Returns a collection of TestCaseLibrary, the test cases of which may be added to the campaign


addTestCasesToIteration

void addTestCasesToIteration(List<Long> testCaseIds,
                             long iterationId)
Adds a list of test cases to a campaign.

Parameters:
testCaseIdss -
campaignId -

findTestPlanItemByTestCaseId

IterationTestPlanItem findTestPlanItemByTestCaseId(long iterationId,
                                                   long testCaseId)
Adds a list of test cases to a campaign.

Parameters:
testCaseIdss -
campaignId -

findTestPlanItem

IterationTestPlanItem findTestPlanItem(Long iterationId,
                                       Long itemTestPlanId)

removeTestPlansFromIteration

boolean removeTestPlansFromIteration(List<Long> testPlanIds,
                                     long iterationId)
Removes a list of test cases from a campaign excepted the test plans which were executed

Parameters:
testPlanIds - the ids of the test plan managing that test case for that iteration
iterationId - the id of the iteration
Returns:
true if at least one test plan was already executed and therefore not deleted

removeTestPlanFromIteration

boolean removeTestPlanFromIteration(Long testPlanId,
                                    long iterationId)
Removes a test case from a campaign excepted the test plans which were executed

Parameters:
testPlanId - the id of the test plan managing that test case for that iteration
campaignId -
Returns:
true if the test plan was already executed and therefore not deleted

findPlannedTestCases

List<TestCase> findPlannedTestCases(Long iterationId)

updateTestCaseLastExecutedByAndOn

void updateTestCaseLastExecutedByAndOn(IterationTestPlanItem givenTestPlan,
                                       Date lastExecutedOn,
                                       String lastExecutedBy)
Update item test plan lastExecuted data (by and on) (for the moment they're constants)

Parameters:
givenTestPlan - : the test plan to update
executionDate - : the execution date

findAssignableUserForTestPlan

List<User> findAssignableUserForTestPlan(long iterationId)
Get Users with Write Access for an Iteration and its TestPlan.

Parameters:
testCaseId -
campaignId -

assignUserToTestPlanItem

void assignUserToTestPlanItem(Long testPlanId,
                              long iterationId,
                              Long userId)
Assign User with Write Access to a TestPlan item.

Parameters:
testCaseId -
campaignId -

assignUserToTestPlanItems

void assignUserToTestPlanItems(List<Long> testPlanIds,
                               long iterationId,
                               Long userId)
Assign User with Write Access to a multiple TestPlan items.

Parameters:
testPlanIds -
campaignId -

findTestPlan

FilteredCollectionHolder<List<IterationTestPlanItem>> findTestPlan(long iterationId,
                                                                   CollectionSorting filter)


Copyright © 2010-2012 Squashtest TM, Squashtest.org. All Rights Reserved.