@Service(value="squashtest.tm.service.TestSuiteExecutionProcessingService") @Transactional public class TestSuiteExecutionProcessingServiceImpl extends Object implements TestSuiteExecutionProcessingService
| Constructor and Description |
|---|
TestSuiteExecutionProcessingServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public TestSuiteExecutionProcessingServiceImpl()
@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)
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
startResume in interface TestSuiteExecutionProcessingServiceorg.squashtest.tm.service.campaign.TestSuiteExecutionProcessingService#startResume(long, long)@PreAuthorize(value="hasPermission(#testSuiteId, \'org.squashtest.tm.domain.campaign.TestSuite\', \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')") public void deleteAllExecutions(long testSuiteId)
TestSuiteExecutionProcessingServicewill delete all existing executions
deleteAllExecutions in interface TestSuiteExecutionProcessingServiceorg.squashtest.tm.service.campaign.TestSuiteExecutionProcessingService#restart(long, long)public boolean hasMoreExecutableItems(long testSuiteId,
long testPlanItemId)
TestSuiteExecutionProcessingServicetells if a test suite has at least one executable item in its test plan after the given item.
hasMoreExecutableItems in interface TestSuiteExecutionProcessingServiceTestSuiteExecutionProcessingService.hasMoreExecutableItems(long, long)public boolean hasPreviousExecutableItems(long testSuiteId,
long testPlanItemId)
TestSuiteExecutionProcessingServicetells if a test suite has at least one executable item in its test plan before the given item.
hasPreviousExecutableItems in interface TestSuiteExecutionProcessingServiceTestSuiteExecutionProcessingService.hasPreviousExecutableItems(long,
long)@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)
TestSuiteExecutionProcessingServiceShould 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 :
startResumeNextExecution in interface TestSuiteExecutionProcessingServiceorg.squashtest.tm.service.campaign.TestSuiteExecutionProcessingService#startNextExecution(long, long)Copyright © 2010–2017 Henix, henix.fr. All rights reserved.