org.squashtest.tm.service.internal.campaign
@Service(value="CustomTestSuiteModificationService") public class CustomTestSuiteModificationServiceImpl extends Object implements CustomTestSuiteModificationService
| Constructor and Description |
|---|
CustomTestSuiteModificationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.squashtest.tm.domain.execution.Execution |
addAutomatedExecution(long testPlanItemId) |
org.squashtest.tm.domain.execution.Execution |
addExecution(long testPlanItemId) |
org.squashtest.tm.domain.testautomation.AutomatedSuite |
createAndStartAutomatedSuite(long suiteId)
Create an automated execution for every automated item test plan in the given test-suite, group them in an
automated suite and tells the connector to process them.
|
org.squashtest.tm.domain.testautomation.AutomatedSuite |
createAndStartAutomatedSuite(long suiteId,
List<Long> testPlanIds)
Create an automated execution for each of the test plan in arguments, group them in an automated suite and tells
the connectors to process them .
|
org.squashtest.tm.domain.campaign.TestSuite |
findById(long suiteId)
That method will find the test Suite by its ID
|
org.squashtest.tm.domain.campaign.TestPlanStatistics |
findTestSuiteStatistics(long suiteId)
That method will retrieve the data and fill the testSuiteStatistics DTO.
|
void |
rename(long suiteId,
String newName)
That method will update the name of the suite with newName, identified by suiteId.
|
public CustomTestSuiteModificationServiceImpl()
@PreAuthorize(value="hasPermission(#suiteId, \'org.squashtest.tm.domain.campaign.TestSuite\', \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void rename(long suiteId,
String newName)
throws org.squashtest.tm.exception.DuplicateNameException
CustomTestSuiteModificationServiceDuplicateNameException
if the suite could not rename itself due to name already used by another suite from the same owning Iteration (as as spec of TestSuite).rename in interface CustomTestSuiteModificationServiceorg.squashtest.tm.exception.DuplicateNameException@PreAuthorize(value="hasPermission(#suiteId, \'org.squashtest.tm.domain.campaign.TestSuite\',\'READ\') or hasRole(\'ROLE_ADMIN\')") public org.squashtest.tm.domain.campaign.TestSuite findById(long suiteId)
TestSuiteFinderfindById in interface TestSuiteFinder@PreAuthorize(value="hasPermission(#suiteId, \'org.squashtest.tm.domain.campaign.TestSuite\',\'READ\') or hasRole(\'ROLE_ADMIN\')") public org.squashtest.tm.domain.campaign.TestPlanStatistics findTestSuiteStatistics(long suiteId)
CustomTestSuiteModificationServiceThat method will retrieve the data and fill the testSuiteStatistics DTO.
findTestSuiteStatistics in interface CustomTestSuiteModificationService@PreAuthorize(value="hasPermission(#testPlanItemId, \'org.squashtest.tm.domain.campaign.IterationTestPlanItem\', \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')") public org.squashtest.tm.domain.execution.Execution addExecution(long testPlanItemId)
addExecution in interface CustomTestSuiteModificationService@PreAuthorize(value="hasPermission(#testPlanItemId, \'org.squashtest.tm.domain.campaign.IterationTestPlanItem\', \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')") public org.squashtest.tm.domain.execution.Execution addAutomatedExecution(long testPlanItemId)
addAutomatedExecution in interface CustomTestSuiteModificationService@PreAuthorize(value="hasPermission(#suiteId, \'org.squashtest.tm.domain.campaign.TestSuite\', \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')") public org.squashtest.tm.domain.testautomation.AutomatedSuite createAndStartAutomatedSuite(long suiteId)
CustomTestSuiteModificationServicecreateAndStartAutomatedSuite in interface CustomTestSuiteModificationServiceAutomatedSuite@PreAuthorize(value="hasPermission(#suiteId, \'org.squashtest.tm.domain.campaign.TestSuite\', \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')")
public org.squashtest.tm.domain.testautomation.AutomatedSuite createAndStartAutomatedSuite(long suiteId,
List<Long> testPlanIds)
CustomTestSuiteModificationServicecreateAndStartAutomatedSuite in interface CustomTestSuiteModificationServicesuiteId - the id of the testSuite that holds them all, and against which will be tested the user credentialsAutomatedSuiteCopyright © 2010-2014 Henix, henix.fr. All Rights Reserved.