org.squashtest.csp.tm.service
Interface CustomTestCaseModificationService

All Known Subinterfaces:
TestCaseModificationService
All Known Implementing Classes:
CustomTestCaseModificationServiceImpl

@Transactional
public interface CustomTestCaseModificationService

Author:
Gregory Fouquet

Method Summary
 TestStep addActionTestStep(long parentTestCaseId, ActionTestStep newTestStep)
           
 void changeTestStepPosition(long testCaseId, long testStepId, int newStepPosition)
          Deprecated. 
 void changeTestStepsPosition(long testCaseId, int newPosition, List<Long> stepIds)
          Will move a list of steps to a new position.
 org.squashtest.csp.core.infrastructure.collection.PagedCollectionHolder<List<RequirementVersion>> findAllDirectlyVerifiedRequirementsByTestCaseId(long testCaseId, org.squashtest.csp.core.infrastructure.collection.PagingAndSorting pas)
          Returns the filtered list of RequirementVersions directly verified by a test case.
 org.squashtest.csp.core.infrastructure.collection.PagedCollectionHolder<List<VerifiedRequirement>> findAllVerifiedRequirementsByTestCaseId(long testCaseId, org.squashtest.csp.core.infrastructure.collection.PagingAndSorting pas)
          Deprecated. not used ?
 TestCase findById(long testCaseId)
           
 FilteredCollectionHolder<List<TestCase>> findCallingTestCases(long testCaseId, CollectionSorting sorting)
          That method returns the list of test cases having at least one CallTestStep directly calling the test case identified by testCaseId.
 List<TestStep> findStepsByTestCaseId(long testCaseId)
           
 FilteredCollectionHolder<List<TestStep>> findStepsByTestCaseIdFiltered(long testCaseId, CollectionFilter filter)
           
 TestCase findTestCaseWithSteps(long testCaseId)
           
 void pasteCopiedTestStep(Long testCaseId, Long idToCopyAfter, Long copiedTestStepId)
          will insert a test step into a test case script, possibly after a step (the position), given their Ids.
 void removeListOfSteps(long testCaseId, List<Long> testStepIds)
           
 void removeStepFromTestCase(long testCaseId, long testStepId)
           
 void rename(long testCaseId, String newName)
           
 void updateTestStepAction(long testStepId, String newAction)
           
 void updateTestStepExpectedResult(long testStepId, String newExpectedResult)
           
 

Method Detail

findById

@Transactional(readOnly=true)
TestCase findById(long testCaseId)

findTestCaseWithSteps

@Transactional(readOnly=true)
TestCase findTestCaseWithSteps(long testCaseId)

findStepsByTestCaseId

@Transactional(readOnly=true)
List<TestStep> findStepsByTestCaseId(long testCaseId)

findStepsByTestCaseIdFiltered

@Transactional(readOnly=true)
FilteredCollectionHolder<List<TestStep>> findStepsByTestCaseIdFiltered(long testCaseId,
                                                                                     CollectionFilter filter)

rename

void rename(long testCaseId,
            String newName)

addActionTestStep

TestStep addActionTestStep(long parentTestCaseId,
                           ActionTestStep newTestStep)

updateTestStepAction

void updateTestStepAction(long testStepId,
                          String newAction)

updateTestStepExpectedResult

void updateTestStepExpectedResult(long testStepId,
                                  String newExpectedResult)

changeTestStepPosition

@Deprecated
void changeTestStepPosition(long testCaseId,
                                       long testStepId,
                                       int newStepPosition)
Deprecated. 


changeTestStepsPosition

void changeTestStepsPosition(long testCaseId,
                             int newPosition,
                             List<Long> stepIds)
Will move a list of steps to a new position.

Parameters:
testCaseId - the id of the test case
newPosition - the position we want the first element of movedSteps to be once the operation is complete
movedSteps - the list of steps to move, sorted by rank among each others.

removeStepFromTestCase

void removeStepFromTestCase(long testCaseId,
                            long testStepId)

removeListOfSteps

void removeListOfSteps(long testCaseId,
                       List<Long> testStepIds)

findAllDirectlyVerifiedRequirementsByTestCaseId

@Transactional(readOnly=true)
org.squashtest.csp.core.infrastructure.collection.PagedCollectionHolder<List<RequirementVersion>> findAllDirectlyVerifiedRequirementsByTestCaseId(long testCaseId,
                                                                                                                                                                org.squashtest.csp.core.infrastructure.collection.PagingAndSorting pas)
Returns the filtered list of RequirementVersions directly verified by a test case.

Parameters:
testCaseId -
filter -
Returns:

findAllVerifiedRequirementsByTestCaseId

@Deprecated
@Transactional(readOnly=true)
org.squashtest.csp.core.infrastructure.collection.PagedCollectionHolder<List<VerifiedRequirement>> findAllVerifiedRequirementsByTestCaseId(long testCaseId,
                                                                                                                                                                    org.squashtest.csp.core.infrastructure.collection.PagingAndSorting pas)
Deprecated. not used ?

Parameters:
testCaseId -
pas -
Returns:

findCallingTestCases

@Transactional(readOnly=true)
FilteredCollectionHolder<List<TestCase>> findCallingTestCases(long testCaseId,
                                                                            CollectionSorting sorting)
That method returns the list of test cases having at least one CallTestStep directly calling the test case identified by testCaseId. The list is wrapped in a FilteredCollectionHolder, that contains meta informations regarding the filtering, as usual.

Parameters:
testCaseId - the Id of the called test case.
sorting - the sorting parameters.
Returns:
a non null but possibly empty FilteredCollectionHolder wrapping the list of first-level calling test cases.

pasteCopiedTestStep

void pasteCopiedTestStep(Long testCaseId,
                         Long idToCopyAfter,
                         Long copiedTestStepId)
will insert a test step into a test case script, possibly after a step (the position), given their Ids. If no position is provided, it defaults to the first position.

Parameters:
testCaseId - the id of the test case.
idToCopyAfter - the id of the step after which we'll insert the copy of a step, may be null.
copiedTestStepId - the id of the testStep to copy.


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