org.squashtest.tm.service.campaign
Interface TestSuiteExecutionProcessingService

All Known Implementing Classes:
TestSuiteExecutionProcessingServiceImpl

public interface TestSuiteExecutionProcessingService


Method Summary
 void deleteAllExecutions(long testSuiteId)
           will delete all existing executions
 boolean hasMoreExecutableItems(long testSuiteId, long testPlanItemId)
           tells if a test suite has at least one executable item in its test plan after the given item.
 boolean hasPreviousExecutableItems(long testSuiteId, long testPlanItemId)
           tells if a test suite has at least one executable item in its test plan before the given item.
 org.squashtest.tm.domain.execution.Execution startResume(long testSuiteId)
           returns the execution were to resume the test suite
or throw a @linkEmptyTestSuiteTestPlanException or TestPlanItemNotExecutableException if no execution is to be resumed because : all terminated, or no execution-step on executions, or no execution and test-case deleted if there is no execution should start a new execution for the given test suite, ie create an execution for the first test case of this suite's test plan
 org.squashtest.tm.domain.execution.Execution startResumeNextExecution(long testSuiteId, long testPlanItemId)
           Should start a new execution for the next executable test plan item of the given test suite's test plan.
 

Method Detail

deleteAllExecutions

void deleteAllExecutions(long testSuiteId)

will delete all existing executions

Parameters:
testSuiteId -

startResumeNextExecution

org.squashtest.tm.domain.execution.Execution startResumeNextExecution(long testSuiteId,
                                                                      long testPlanItemId)

Should start a new execution for the next executable test plan item of the given test suite's test plan. Or should return the execution to resume or null if :

Parameters:
testSuiteId -
testPlanItemId -
Returns:
the execution to resume/restart or null if there is none

startResume

org.squashtest.tm.domain.execution.Execution startResume(long testSuiteId)

returns the execution were to resume the test suite
or throw a @linkEmptyTestSuiteTestPlanException or TestPlanItemNotExecutableException if no execution is to be resumed because :

if there is no execution should start a new execution for the given test suite, ie create an execution for the first test case of this suite's test plan

Parameters:
testSuiteId -
Returns:
the Execution where to resume or null
Throws:
org.squashtest.tm.exception.execution.EmptyTestSuiteTestPlanException
{@link - TestPlanItemNotExecutableException}

hasMoreExecutableItems

boolean hasMoreExecutableItems(long testSuiteId,
                               long testPlanItemId)

tells if a test suite has at least one executable item in its test plan after the given item.

Parameters:
testSuiteId -
testPlanItemId -
Returns:

hasPreviousExecutableItems

boolean hasPreviousExecutableItems(long testSuiteId,
                                   long testPlanItemId)

tells if a test suite has at least one executable item in its test plan before the given item.

Parameters:
testSuiteId -
testPlanItemId -
Returns:


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