@Transactional @Service(value="squashtest.tm.service.AutomatedSuiteManagementService") public class AutomatedSuiteManagerServiceImpl extends Object implements AutomatedSuiteManagerService
| Constructor and Description |
|---|
AutomatedSuiteManagerServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.squashtest.tm.domain.testautomation.AutomatedSuite |
createFromItemsAndIteration(List<Long> testPlanIds,
long iterationId)
Creates a new AutomatedSuite based on a collection of
IterationTestPlanItem, given their ID. |
org.squashtest.tm.domain.testautomation.AutomatedSuite |
createFromItemsAndTestSuite(List<Long> testPlanIds,
long testSuiteId)
Creates a new AutomatedSuite based on a collection of
IterationTestPlanItem, given their ID. |
org.squashtest.tm.domain.testautomation.AutomatedSuite |
createFromIterationTestPlan(long iterationId)
Creates a new AutomatedSuite based on the whole test plan of an
Iteration, given its ID. |
org.squashtest.tm.domain.testautomation.AutomatedSuite |
createFromTestSuiteTestPlan(long testSuiteId)
Creates a new AutomatedSuite based on the whole test plan of a
TestSuite, given its ID. |
void |
delete(org.squashtest.tm.domain.testautomation.AutomatedSuite suite) |
void |
delete(String automatedSuiteId) |
org.squashtest.tm.domain.testautomation.AutomatedSuite |
findById(String id)
Finds a suite given its id
|
List<org.squashtest.tm.domain.execution.Execution> |
findExecutionsByAutomatedTestSuiteId(String automatedTestSuiteId)
Given the id of an automated test suite, returns the list of executions associated to this automated test suite.
|
int |
getTimeoutMillis() |
void |
setTimeoutMillis(int timeoutMillis) |
Collection<TestAutomationProjectContent> |
sortByProject(org.squashtest.tm.domain.testautomation.AutomatedSuite suite)
Given an
AutomatedSuite, returns its content as tests grouped by projects. |
Collection<TestAutomationProjectContent> |
sortByProject(String autoSuiteId)
Given the id of an
AutomatedSuite, returns its content as tests grouped by projects. |
void |
start(org.squashtest.tm.domain.testautomation.AutomatedSuite suite)
Runs the given AutomatedSuite, equivalent to
AutomatedSuiteManagerService.start(AutomatedSuite, Collection) with
an empty configuration. |
void |
start(org.squashtest.tm.domain.testautomation.AutomatedSuite suite,
Collection<SuiteExecutionConfiguration> configuration)
Runs an automatedSuite with the given configuration.
|
void |
start(String autoSuiteId)
Runs an AutomatedSuite given its ID, equivalent to
AutomatedSuiteManagerService.start(AutomatedSuite, Collection) with
an empty configuration. |
void |
start(String suiteId,
Collection<SuiteExecutionConfiguration> configuration)
Runs an automatedSuite given its ID with the given configuration.
|
public int getTimeoutMillis()
public void setTimeoutMillis(int timeoutMillis)
public org.squashtest.tm.domain.testautomation.AutomatedSuite findById(String id)
AutomatedSuiteManagerServicefindById in interface AutomatedSuiteManagerServiceAutomatedSuiteManagerService.findById(java.lang.String)@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.tm.domain.campaign.Iteration\', \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')") public org.squashtest.tm.domain.testautomation.AutomatedSuite createFromIterationTestPlan(long iterationId)
AutomatedSuiteManagerServiceIteration, given its ID. Only automated tests planned in the
test plan will be included. The automated executions are ordered according to the test plan.createFromIterationTestPlan in interface AutomatedSuiteManagerServiceAutomatedSuiteManagerService.createFromIterationTestPlan(long)@PreAuthorize(value="hasPermission(#testSuiteId, \'org.squashtest.tm.domain.campaign.TestSuite\', \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')") public org.squashtest.tm.domain.testautomation.AutomatedSuite createFromTestSuiteTestPlan(long testSuiteId)
AutomatedSuiteManagerServiceTestSuite, given its ID. Only automated tests planned in the
test plan will be included. The automated executions are ordered according to the test plan.createFromTestSuiteTestPlan in interface AutomatedSuiteManagerServiceAutomatedSuiteManagerService.createFromTestSuiteTestPlan(long)public Collection<TestAutomationProjectContent> sortByProject(String autoSuiteId)
AutomatedSuiteManagerServiceAutomatedSuite, returns its content as tests grouped by projects.sortByProject in interface AutomatedSuiteManagerServiceAutomatedSuiteManagerService.sortByProject(java.lang.String)public Collection<TestAutomationProjectContent> sortByProject(org.squashtest.tm.domain.testautomation.AutomatedSuite suite)
AutomatedSuiteManagerServiceAutomatedSuite, returns its content as tests grouped by projects.sortByProject in interface AutomatedSuiteManagerServiceAutomatedSuiteManagerService.sortByProject(org.squashtest.tm.domain.testautomation.AutomatedSuite)public void delete(String automatedSuiteId)
delete in interface AutomatedSuiteManagerServiceAutomatedSuiteManagerService.delete(java.lang.String)public void delete(org.squashtest.tm.domain.testautomation.AutomatedSuite suite)
delete in interface AutomatedSuiteManagerServiceAutomatedSuiteManagerService.delete(org.squashtest.tm.domain.testautomation.AutomatedSuite)@PostFilter(value="hasPermission(filterObject, \'READ\') or hasRole(\'ROLE_ADMIN\')") @Transactional(readOnly=true) public List<org.squashtest.tm.domain.execution.Execution> findExecutionsByAutomatedTestSuiteId(String automatedTestSuiteId)
AutomatedSuiteManagerServicefindExecutionsByAutomatedTestSuiteId in interface AutomatedSuiteManagerServicepublic void start(String autoSuiteId)
AutomatedSuiteManagerServiceAutomatedSuiteManagerService.start(AutomatedSuite, Collection) with
an empty configuration.start in interface AutomatedSuiteManagerServicepublic void start(org.squashtest.tm.domain.testautomation.AutomatedSuite suite)
AutomatedSuiteManagerServiceAutomatedSuiteManagerService.start(AutomatedSuite, Collection) with
an empty configuration.start in interface AutomatedSuiteManagerServicepublic void start(String suiteId, Collection<SuiteExecutionConfiguration> configuration)
AutomatedSuiteManagerServicestart in interface AutomatedSuiteManagerServicepublic void start(org.squashtest.tm.domain.testautomation.AutomatedSuite suite,
Collection<SuiteExecutionConfiguration> configuration)
AutomatedSuiteManagerServicestart in interface AutomatedSuiteManagerServicepublic org.squashtest.tm.domain.testautomation.AutomatedSuite createFromItemsAndIteration(List<Long> testPlanIds, long iterationId)
AutomatedSuiteManagerServiceIterationTestPlanItem, given their ID. Only automated tests will
be included. The automated executions are ordered according to the iteration's test plan.createFromItemsAndIteration in interface AutomatedSuiteManagerServiceAutomatedSuiteManagerService.createFromItemsAndIteration(java.util.List, long)public org.squashtest.tm.domain.testautomation.AutomatedSuite createFromItemsAndTestSuite(List<Long> testPlanIds, long testSuiteId)
AutomatedSuiteManagerServiceIterationTestPlanItem, given their ID. Only automated tests will
be included. The automated executions are ordered according to the test suite's test plan.createFromItemsAndTestSuite in interface AutomatedSuiteManagerServiceAutomatedSuiteManagerService.createFromItemsAndTestSuite(java.util.List, long)Copyright © 2010–2017 Henix, henix.fr. All rights reserved.