org.squashtest.tm.service.campaign
Interface CustomIterationModificationService

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

public interface CustomIterationModificationService
extends IterationFinder

Iteration modification services which cannot be dynamically generated.

Author:
Gregory Fouquet

Method Summary
 org.squashtest.tm.domain.execution.Execution addAutomatedExecution(long testPlanItemId)
           
 org.squashtest.tm.domain.execution.Execution addExecution(long testPlanItemId)
           
 int addIterationToCampaign(org.squashtest.tm.domain.campaign.Iteration iteration, long campaignId, boolean copyTestPlan)
          Adds an iteration to the list of iterations of a campaign.
 void addTestSuite(long iterationId, org.squashtest.tm.domain.campaign.TestSuite suite)
           
 List<org.squashtest.tm.domain.campaign.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
 org.squashtest.tm.domain.campaign.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
 org.squashtest.tm.domain.testautomation.AutomatedSuite createAndStartAutomatedSuite(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.
 org.squashtest.tm.domain.testautomation.AutomatedSuite createAndStartAutomatedSuite(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)
           
 OperationReport deleteNodes(List<Long> targetIds)
          that method should delete the nodes.
 List<org.squashtest.tm.domain.campaign.TestSuite> findAllTestSuites(long iterationId)
           
 IterationStatisticsBundle gatherIterationStatisticsBundle(long iterationId)
           
 OperationReport 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.tm.service.campaign.IterationFinder
findAllExecutions, findById, findExecutionsByTestPlan, findIterationContainingTestCase, findIterationsByCampaignId, findPlannedTestCases
 

Method Detail

addIterationToCampaign

int addIterationToCampaign(org.squashtest.tm.domain.campaign.Iteration iteration,
                           long campaignId,
                           boolean copyTestPlan)
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

org.squashtest.tm.domain.execution.Execution addExecution(long testPlanItemId)

addAutomatedExecution

org.squashtest.tm.domain.execution.Execution addAutomatedExecution(long testPlanItemId)

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

OperationReport 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,
                  org.squashtest.tm.domain.campaign.TestSuite suite)

findAllTestSuites

List<org.squashtest.tm.domain.campaign.TestSuite> findAllTestSuites(long iterationId)

removeTestSuites

OperationReport 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:

copyPasteTestSuiteToIteration

org.squashtest.tm.domain.campaign.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<org.squashtest.tm.domain.campaign.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

createAndStartAutomatedSuite

org.squashtest.tm.domain.testautomation.AutomatedSuite createAndStartAutomatedSuite(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

createAndStartAutomatedSuite

org.squashtest.tm.domain.testautomation.AutomatedSuite createAndStartAutomatedSuite(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

gatherIterationStatisticsBundle

IterationStatisticsBundle gatherIterationStatisticsBundle(long iterationId)


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