org.squashtest.csp.tm.service
Interface CustomIterationModificationService

All Superinterfaces:
IterationFinder
All Known Subinterfaces:
IterationModificationService
All Known Implementing Classes:
CustomIterationModificationServiceImpl

@Transactional
public interface CustomIterationModificationService
extends IterationFinder

Author:
Gregory Fouquet

Method Summary
 Execution addAutomatedExecution(long iterationId, long testPlanId)
           
 Execution addExecution(long iterationId, long testPlanId)
           
 int addIterationToCampaign(Iteration iteration, long campaignId)
          Adds an iteration to the list of iterations of a campaign.
 void addTestSuite(long iterationId, TestSuite suite)
           
 void changeTestPlanPosition(long iterationId, int newPosition, List<Long> itemIds)
           
 void changeTestPlanPosition(long iterationId, long testPlanId, int newIndex)
          Deprecated. 
 List<TestSuite> copyPasteTestSuitesToIteration(Long[] testSuiteIds, long iterationId)
           will create a copy of the test suites and their test plan , then associate them to the given iteration
will rename test suites if there is name conflict at destination
 TestSuite copyPasteTestSuiteToIteration(long testSuiteId, long iterationId)
           will create a copy of the test suite and it's test plan , then associate it to the given iteration
will rename test suite if there is name conflict at destination
 AutomatedSuite createAutomatedSuite(long iterationId)
          Create an automated execution for every automated item test plan in the given iteration, group them in an automated suite and tells the connector to process them.
 AutomatedSuite createAutomatedSuite(long iterationId, Collection<Long> testPlanIds)
          Create an automated execution for each of the test plan in arguments, group them in an automated suite and tells the connectors to process them .
 String delete(long iterationId)
           
 List<Long> deleteNodes(List<Long> targetIds)
          that method should delete the nodes.
 List<TestSuite> findAllTestSuites(long iterationId)
           
 List<Long> removeTestSuites(List<Long> suitesIds)
           That method will remove each test suite, leaving it's test plan items linked to no test_suite
 void rename(long iterationId, String newName)
           
 List<SuppressionPreviewReport> simulateDeletion(List<Long> targetIds)
          that method should investigate the consequences of the deletion request, and return a report about what will happen.
 
Methods inherited from interface org.squashtest.csp.tm.service.IterationFinder
findAllExecutions, findById, findExecutionsByTestPlan, findIterationsByCampaignId, findPlannedTestCases
 

Method Detail

addIterationToCampaign

int addIterationToCampaign(Iteration iteration,
                           long campaignId)
Adds an iteration to the list of iterations of a campaign.

Parameters:
iteration -
campaignId -
Returns:
the index of the added iteration.

delete

String delete(long iterationId)

rename

void rename(long iterationId,
            String newName)

addExecution

Execution addExecution(long iterationId,
                       long testPlanId)

addAutomatedExecution

Execution addAutomatedExecution(long iterationId,
                                long testPlanId)

changeTestPlanPosition

@Deprecated
void changeTestPlanPosition(long iterationId,
                                       long testPlanId,
                                       int newIndex)
Deprecated. 


changeTestPlanPosition

void changeTestPlanPosition(long iterationId,
                            int newPosition,
                            List<Long> itemIds)

simulateDeletion

List<SuppressionPreviewReport> simulateDeletion(List<Long> targetIds)
that method should investigate the consequences of the deletion request, and return a report about what will happen.

Parameters:
targetIds -
Returns:

deleteNodes

List<Long> deleteNodes(List<Long> targetIds)
that method should delete the nodes. It still takes care of non deletable nodes so the implementation should filter out the ids who can't be deleted.

Parameters:
targetIds -
Returns:

addTestSuite

void addTestSuite(long iterationId,
                  TestSuite suite)

findAllTestSuites

List<TestSuite> findAllTestSuites(long iterationId)

removeTestSuites

List<Long> removeTestSuites(List<Long> suitesIds)

That method will remove each test suite, leaving it's test plan items linked to no test_suite

Parameters:
suitesIds -
Returns:
the deleted suitesIds

copyPasteTestSuiteToIteration

TestSuite copyPasteTestSuiteToIteration(long testSuiteId,
                                        long iterationId)

will create a copy of the test suite and it's test plan , then associate it to the given iteration
will rename test suite if there is name conflict at destination

Parameters:
testSuiteId - = test suite to copy
iterationId - = iteration where to add the copy of the test suite
Returns:
the copy of the test suite

copyPasteTestSuitesToIteration

List<TestSuite> copyPasteTestSuitesToIteration(Long[] testSuiteIds,
                                               long iterationId)

will create a copy of the test suites and their test plan , then associate them to the given iteration
will rename test suites if there is name conflict at destination

Parameters:
testSuiteIds - = list of test suites to copy
iterationId - = iteration where to add the copy of the test suite
Returns:
the list containing all the copies of the test suites

createAutomatedSuite

AutomatedSuite createAutomatedSuite(long iterationId)
Create an automated execution for every automated item test plan in the given iteration, group them in an automated suite and tells the connector to process them.

Returns:
an AutomatedSuite

createAutomatedSuite

AutomatedSuite createAutomatedSuite(long iterationId,
                                    Collection<Long> testPlanIds)
Create an automated execution for each of the test plan in arguments, group them in an automated suite and tells the connectors to process them .

Parameters:
iterationId - the id of the iteration that holds them all, and against which will be tested the user credentials
testPlanIds -
Returns:
an AutomatedSuite


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