org.squashtest.csp.tm.service
Interface CustomTestSuiteModificationService

All Superinterfaces:
TestSuiteFinder
All Known Subinterfaces:
TestSuiteModificationService
All Known Implementing Classes:
CustomTestSuiteModificationServiceImpl

@Transactional
public interface CustomTestSuiteModificationService
extends TestSuiteFinder


Method Summary
 void bindTestPlan(long suiteId, List<Long> itemTestPlanIds)
          That method will attach several IterationTestPlanItem to the given TestSuite.
 void bindTestPlanObj(TestSuite testSuite, List<IterationTestPlanItem> itemTestPlans)
          That method will attach several IterationTestPlanItem to the given TestSuite.
 void changeTestPlanPosition(Long testSuiteId, int newIndex, List<Long> itemIds)
           
 AutomatedSuite createAutomatedSuite(long id)
          Create an automated execution for every automated item test plan in the given test-suite, group them in an automated suite and tells the connector to process them.
 TestSuiteStatistics findTestSuiteStatistics(long suiteId)
          That method will retrieve the data and fill the testSuiteStatistics DTO.
 org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<IterationTestPlanItem>> findTestSuiteTestPlan(long suiteId, org.squashtest.tm.core.foundation.collection.Paging paging)
          That method will retrieve the test plan items attached to a given test suite.
 void rename(long suiteId, String newName)
          That method will update the name of the suite with newName, identified by suiteId.
 void unbindTestPlanObj(TestSuite testSuite, List<IterationTestPlanItem> itemTestPlans)
          That method will detach several IterationTestPlanItem from the given TestSuite.
 
Methods inherited from interface org.squashtest.csp.tm.service.TestSuiteFinder
findById
 

Method Detail

rename

void rename(long suiteId,
            String newName)
            throws DuplicateNameException
That method will update the name of the suite with newName, identified by suiteId. Will throw a DuplicateNameException if the suite could not rename itself due to name already used by another suite from the same owning Iteration (as as spec of TestSuite).

Parameters:
suiteId -
newName -
Throws:
DuplicateNameException

bindTestPlan

void bindTestPlan(long suiteId,
                  List<Long> itemTestPlanIds)

That method will attach several IterationTestPlanItem to the given TestSuite. As usual, they are identified using their Ids. Since a given item can be bound to at most one test suite, the item be deassociated from its former TestSuite.

The implementation must also check that all these entities all belong to the same iteration or throw an unchecked exception if not. TODO : define that exception.

Parameters:
suiteId -
itemTestPlanIds -

bindTestPlanObj

void bindTestPlanObj(TestSuite testSuite,
                     List<IterationTestPlanItem> itemTestPlans)

That method will attach several IterationTestPlanItem to the given TestSuite. They are identified using their Objects. Since a given item can be bound to at most one test suite, the item be deassociated from its former TestSuite.

These entities all belong to the same iteration since they have previously been attached to it.

Parameters:
testSuite -
itemTestPlans -

unbindTestPlanObj

void unbindTestPlanObj(TestSuite testSuite,
                       List<IterationTestPlanItem> itemTestPlans)

That method will detach several IterationTestPlanItem from the given TestSuite. They are identified using their Objects. Since a given item can be bound to at most one test suite, the item be deassociated from its former TestSuite.

These entities all belong to the same iteration since they have previously been attached to it.

Parameters:
testSuite -
itemTestPlans -

findTestSuiteTestPlan

org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<IterationTestPlanItem>> findTestSuiteTestPlan(long suiteId,
                                                                                                                      org.squashtest.tm.core.foundation.collection.Paging paging)

That method will retrieve the test plan items attached to a given test suite.

Parameters:
suiteId -
paging -

findTestSuiteStatistics

TestSuiteStatistics findTestSuiteStatistics(long suiteId)

That method will retrieve the data and fill the testSuiteStatistics DTO.

Parameters:
suiteId -

changeTestPlanPosition

void changeTestPlanPosition(Long testSuiteId,
                            int newIndex,
                            List<Long> itemIds)

createAutomatedSuite

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

Returns:
an AutomatedSuite


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