org.squashtest.tm.service.internal.campaign
Class TestSuiteExecutionProcessingServiceImpl

java.lang.Object
  extended by org.squashtest.tm.service.internal.campaign.TestSuiteExecutionProcessingServiceImpl
All Implemented Interfaces:
TestSuiteExecutionProcessingService

@Service(value="squashtest.tm.service.TestSuiteExecutionProcessingService")
@Transactional
public class TestSuiteExecutionProcessingServiceImpl
extends Object
implements TestSuiteExecutionProcessingService


Constructor Summary
TestSuiteExecutionProcessingServiceImpl()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestSuiteExecutionProcessingServiceImpl

public TestSuiteExecutionProcessingServiceImpl()
Method Detail

startResume

@PreAuthorize(value="hasPermission(#testSuiteId, \'org.squashtest.tm.domain.campaign.TestSuite\', \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')")
public org.squashtest.tm.domain.execution.Execution startResume(long testSuiteId)
Description copied from interface: TestSuiteExecutionProcessingService

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

Specified by:
startResume in interface TestSuiteExecutionProcessingService
Returns:
the Execution where to resume or null
See Also:
org.squashtest.tm.service.campaign.TestSuiteExecutionProcessingService#startResume(long, long)

deleteAllExecutions

@PreAuthorize(value="hasPermission(#testSuiteId, \'org.squashtest.tm.domain.campaign.TestSuite\', \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')")
public void deleteAllExecutions(long testSuiteId)
Description copied from interface: TestSuiteExecutionProcessingService

will delete all existing executions

Specified by:
deleteAllExecutions in interface TestSuiteExecutionProcessingService
See Also:
org.squashtest.tm.service.campaign.TestSuiteExecutionProcessingService#restart(long, long)

hasMoreExecutableItems

public boolean hasMoreExecutableItems(long testSuiteId,
                                      long testPlanItemId)
Description copied from interface: TestSuiteExecutionProcessingService

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

Specified by:
hasMoreExecutableItems in interface TestSuiteExecutionProcessingService
Returns:
See Also:
TestSuiteExecutionProcessingService.hasMoreExecutableItems(long, long)

hasPreviousExecutableItems

public boolean hasPreviousExecutableItems(long testSuiteId,
                                          long testPlanItemId)
Description copied from interface: TestSuiteExecutionProcessingService

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

Specified by:
hasPreviousExecutableItems in interface TestSuiteExecutionProcessingService
Returns:
See Also:
TestSuiteExecutionProcessingService.hasPreviousExecutableItems(long, long)

startResumeNextExecution

@PreAuthorize(value="hasPermission(#testSuiteId, \'org.squashtest.tm.domain.campaign.TestSuite\', \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')")
public org.squashtest.tm.domain.execution.Execution startResumeNextExecution(long testSuiteId,
                                                                                          long testPlanItemId)
Description copied from interface: TestSuiteExecutionProcessingService

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 :

Specified by:
startResumeNextExecution in interface TestSuiteExecutionProcessingService
Returns:
the execution to resume/restart or null if there is none
See Also:
org.squashtest.tm.service.campaign.TestSuiteExecutionProcessingService#startNextExecution(long, long)


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