org.squashtest.csp.tm.service
Interface CallStepManagerService

All Known Implementing Classes:
CallStepManagerServiceImpl

public interface CallStepManagerService


Method Summary
 void addCallTestStep(long parentTestCaseId, long calledTestCaseId)
          will add a call test step.
 void checkForCyclicStepCallBeforeExecutionCreation(Long testPlanId)
          Used to check if the testPlan call tree is not cyclic before creating it's execution This method is used to prevent infinite cycle in case of bugged data.
 void checkForCyclicStepCallBeforePaste(long destinationTestCaseId, String[] pastedStepsIds)
          Used to check if the destination test case id is found in the calling tree of the pasted steps if so : a CyclicStepCallException is thrown.
 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<TestCaseLibrary> findLinkableTestCaseLibraries()
          Returns the collection of TestCaseLibrarys which TestCases can be linked by a TestCase via a CallTestStep
 TestCase findTestCase(long testCaseId)
           
 Set<Long> getTestCaseCallTree(Long rootTcId)
          given the Id of a test case, will compute the subsequent test case call tree.
 

Method Detail

findTestCase

TestCase findTestCase(long testCaseId)

findLinkableTestCaseLibraries

List<TestCaseLibrary> findLinkableTestCaseLibraries()
Returns the collection of TestCaseLibrarys which TestCases can be linked by a TestCase via a CallTestStep

Returns:

addCallTestStep

void addCallTestStep(long parentTestCaseId,
                     long calledTestCaseId)
will add a call test step.

Parameters:
parentTestCaseId - that calls a step
calledTestCaseId - being called

getTestCaseCallTree

Set<Long> getTestCaseCallTree(Long rootTcId)
given the Id of a test case, will compute the subsequent test case call tree.

Parameters:
rootTcId. - Null is not legal and unchecked.
Returns:
a set containing the ids of the called test cases, that will not include the calling test case id. Not null, possibly empty.

findCallingTestCases

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.

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

checkForCyclicStepCallBeforePaste

void checkForCyclicStepCallBeforePaste(long destinationTestCaseId,
                                       String[] pastedStepsIds)
Used to check if the destination test case id is found in the calling tree of the pasted steps if so : a CyclicStepCallException is thrown.

Parameters:
testCaseId -
copiedStepId -

checkForCyclicStepCallBeforeExecutionCreation

void checkForCyclicStepCallBeforeExecutionCreation(Long testPlanId)
Used to check if the testPlan call tree is not cyclic before creating it's execution This method is used to prevent infinite cycle in case of bugged data. if so : a CyclicStepCallException is thrown.

Parameters:
testPlanId -


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