org.squashtest.csp.tm.service
Interface CustomTestCaseModificationService

All Superinterfaces:
TestCaseFinder
All Known Subinterfaces:
TestCaseModificationService
All Known Implementing Classes:
CustomTestCaseModificationServiceImpl

@Transactional
public interface CustomTestCaseModificationService
extends TestCaseFinder

Author:
Gregory Fouquet

Method Summary
 TestStep addActionTestStep(long parentTestCaseId, ActionTestStep newTestStep)
           
 AutomatedTest bindAutomatedTest(Long testCaseId, Long taProjectId, String testName)
           
 void changeImportanceAuto(long testCaseId, boolean auto)
          will change the test case importance too if auto is true.
 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.
 Collection<TestAutomationProjectContent> findAssignableAutomationTests(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 pasteCopiedTestStepToLastIndex(long testCaseId, long copiedTestStepId)
          will insert a test step into a test case script at the last position
 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)
           
 
Methods inherited from interface org.squashtest.csp.tm.service.TestCaseFinder
findAllVerifiedRequirementsByTestCaseId, findById, findCallingTestCases, findStepsByTestCaseId, findStepsByTestCaseIdFiltered, findTestCaseWithSteps
 

Method Detail

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)

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.

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.

pasteCopiedTestStepToLastIndex

void pasteCopiedTestStepToLastIndex(long testCaseId,
                                    long copiedTestStepId)
will insert a test step into a test case script at the last position

Parameters:
testCaseId - the id of the test case.
copiedTestStepId - the id of the testStep to copy.

changeImportanceAuto

void changeImportanceAuto(long testCaseId,
                          boolean auto)
will change the test case importance too if auto is true.

Parameters:
testCaseId -
auto -

findAssignableAutomationTests

Collection<TestAutomationProjectContent> findAssignableAutomationTests(long testCaseId)

bindAutomatedTest

AutomatedTest bindAutomatedTest(Long testCaseId,
                                Long taProjectId,
                                String testName)


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