org.squashtest.tm.service.testcase
Interface CustomTestCaseModificationService

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

public interface CustomTestCaseModificationService
extends CustomTestCaseFinder

Test-Case modification services which cannot be dynamically generated.

Author:
Gregory Fouquet

Method Summary
 org.squashtest.tm.domain.testcase.ActionTestStep addActionTestStep(long parentTestCaseId, org.squashtest.tm.domain.testcase.ActionTestStep newTestStep)
           
 org.squashtest.tm.domain.testcase.ActionTestStep addActionTestStep(long parentTestCaseId, org.squashtest.tm.domain.testcase.ActionTestStep newTestStep, Map<Long,String> customFieldValues)
          Adds an action test step to a test case, and its initial custom field values.
 org.squashtest.tm.domain.testautomation.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 removeAutomation(long testCaseId)
          Will delete the link
 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.tm.service.testcase.CustomTestCaseFinder
findAllByAncestorIds, findAllCallingTestCases, findCallingTestCases, findStepsByTestCaseId, findStepsByTestCaseIdFiltered, findTestCaseFromStep, findTestCaseWithSteps
 

Method Detail

rename

void rename(long testCaseId,
            String newName)

addActionTestStep

org.squashtest.tm.domain.testcase.ActionTestStep addActionTestStep(long parentTestCaseId,
                                                                   org.squashtest.tm.domain.testcase.ActionTestStep newTestStep)

addActionTestStep

org.squashtest.tm.domain.testcase.ActionTestStep addActionTestStep(long parentTestCaseId,
                                                                   org.squashtest.tm.domain.testcase.ActionTestStep newTestStep,
                                                                   Map<Long,String> customFieldValues)
Adds an action test step to a test case, and its initial custom field values. The initial custom field values are passed as a Map, that maps the id of the CustomField to the values of the corresponding CustomFieldValue. Read that last sentence again.

Parameters:
libraryId -
testCase -
customFieldValues -

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

org.squashtest.tm.domain.testautomation.AutomatedTest bindAutomatedTest(Long testCaseId,
                                                                        Long taProjectId,
                                                                        String testName)

removeAutomation

void removeAutomation(long testCaseId)
Will delete the link

Parameters:
testCaseId -


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