org.squashtest.csp.tm.service
Interface IterationTestPlanManagerService

All Superinterfaces:
IterationTestPlanFinder
All Known Implementing Classes:
IterationTestPlanManagerServiceImpl

@Transactional
public interface IterationTestPlanManagerService
extends IterationTestPlanFinder

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 an iteration.
 List<IterationTestPlanItem> addTestPlanItemsToIteration(List<Long> testCaseIds, Iteration iteration)
          Adds a list of test cases to an iteration.
 void addTestPlanToIteration(List<IterationTestPlanItem> testPlan, long iterationId)
           persist each iteration_test_plan_item and add it to iteration
 void assignExecutionStatusToTestPlanItem(Long testPlanId, long iterationId, String statusName)
          Assigns an execution status to a test plan item Overrides the current execution status
 void assignUserToTestPlanItem(Long testPlanId, long iterationId, Long userId)
          Assign User with Execute Access to a TestPlan item.
 void assignUserToTestPlanItems(List<Long> testPlanIds, long iterationId, Long userId)
          Assign User with Execute Access to a multiple TestPlan items.
 List<ExecutionStatus> getExecutionStatusList()
           
 boolean removeTestPlanFromIteration(Long testPlanId, long iterationId)
          Removes a test case from an iteration except if the test plans was executed
 boolean removeTestPlansFromIteration(List<Long> testPlanIds, long iterationId)
          Removes a list of test cases from a campaign excepted the test plans which were executed
 boolean removeTestPlansFromIterationObj(List<Long> testPlanIds, Iteration iteration)
          Removes a list of test cases from an iteration 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)
 
Methods inherited from interface org.squashtest.csp.tm.service.IterationTestPlanFinder
findAssignableUserForTestPlan, findLinkableTestCaseLibraries, findPlannedTestCases, findTestPlan, findTestPlanItem, findTestPlanItemByTestCaseId
 

Method Detail

addTestCasesToIteration

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

Parameters:
testCaseIds -
iterationId -

addTestPlanItemsToIteration

List<IterationTestPlanItem> addTestPlanItemsToIteration(List<Long> testCaseIds,
                                                        Iteration iteration)
Adds a list of test cases to an iteration.

Parameters:
testCaseIds -
iteration -

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

removeTestPlansFromIterationObj

boolean removeTestPlansFromIterationObj(List<Long> testPlanIds,
                                        Iteration iteration)
Removes a list of test cases from an iteration excepted the test plans which were executed

Parameters:
testPlanIds - the ids of the test plan managing that test case for that iteration
iteration - 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 an iteration except if the test plans was executed

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

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

assignUserToTestPlanItem

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

Parameters:
testCaseId -
campaignId -

assignUserToTestPlanItems

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

Parameters:
testPlanIds -
campaignId -

addTestPlanToIteration

void addTestPlanToIteration(List<IterationTestPlanItem> testPlan,
                            long iterationId)

persist each iteration_test_plan_item and add it to iteration

Parameters:
testPlan -
iterationId -

getExecutionStatusList

List<ExecutionStatus> getExecutionStatusList()
Returns:
the list of defined execution statuses

assignExecutionStatusToTestPlanItem

void assignExecutionStatusToTestPlanItem(Long testPlanId,
                                         long iterationId,
                                         String statusName)
Assigns an execution status to a test plan item Overrides the current execution status

Parameters:
testPlanId -
iterationId -
statusName -


Copyright © 2010-2012 Henix, henix.fr. All Rights Reserved.