|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.tm.service.internal.testautomation.service.TestAutomationManagementServiceImpl
@Transactional @Service(value="squashtest.tm.service.TestAutomationService") public class TestAutomationManagementServiceImpl
| Constructor Summary | |
|---|---|
TestAutomationManagementServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
fetchAllResultURL(org.squashtest.tm.domain.testautomation.TestAutomationProject project,
org.squashtest.tm.domain.testautomation.AutomatedSuite suite)
Will (attempt to) retrieve the result url for all the executions that belongs to a given automated suite, and of which tests belongs to a given project. |
org.squashtest.tm.domain.testautomation.AutomatedSuite |
findAutomatedTestSuiteById(String suiteId)
|
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. |
org.squashtest.tm.domain.testautomation.TestAutomationProject |
findProjectById(long projectId)
|
org.squashtest.tm.domain.testautomation.AutomatedTest |
findTestById(long testId)
|
org.squashtest.tm.domain.testautomation.TestAutomationServer |
getDefaultServer()
That method returns the default server configuration. |
int |
getTimeoutMillis()
|
Collection<org.squashtest.tm.domain.testautomation.TestAutomationProject> |
listProjectsOnServer(org.squashtest.tm.domain.testautomation.TestAutomationServer server)
see TestAutomationFinderService.listProjectsOnServer(URL, String, String), using a TestAutomationServer for argument |
Collection<org.squashtest.tm.domain.testautomation.TestAutomationProject> |
listProjectsOnServer(URL serverURL,
String login,
String password)
Given the URL of the test automation server, and the credentials required to connect it, will return the list of project currently available on it. |
Collection<TestAutomationProjectContent> |
listTestsInProjects(Collection<org.squashtest.tm.domain.testautomation.TestAutomationProject> projects)
Given a collection of TestAutomationProject, will return the aggregated list of AutomatedTest
paired with their owner project. |
org.squashtest.tm.domain.testautomation.AutomatedTest |
persistOrAttach(org.squashtest.tm.domain.testautomation.AutomatedTest newTest)
Pretty much the same than InsecureTestAutomationManagementService.persistOrAttach(TestAutomationProject). |
org.squashtest.tm.domain.testautomation.TestAutomationProject |
persistOrAttach(org.squashtest.tm.domain.testautomation.TestAutomationProject newProject)
Will persist the supplied remote TestAutomationProject. |
void |
setAsyncTaskExecutor(org.springframework.core.task.AsyncTaskExecutor executor)
|
void |
setTimeoutMillis(int timeoutMillis)
|
void |
startAutomatedSuite(org.squashtest.tm.domain.testautomation.AutomatedSuite suite)
Will start a test suite, by dispatching the tests to the corresponding connectors. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestAutomationManagementServiceImpl()
| Method Detail |
|---|
@Inject public void setAsyncTaskExecutor(org.springframework.core.task.AsyncTaskExecutor executor)
public int getTimeoutMillis()
public void setTimeoutMillis(int timeoutMillis)
public Collection<org.squashtest.tm.domain.testautomation.TestAutomationProject> listProjectsOnServer(org.squashtest.tm.domain.testautomation.TestAutomationServer server)
TestAutomationFinderServiceTestAutomationFinderService.listProjectsOnServer(URL, String, String), using a TestAutomationServer for argument
listProjectsOnServer in interface TestAutomationFinderService
public Collection<org.squashtest.tm.domain.testautomation.TestAutomationProject> listProjectsOnServer(URL serverURL,
String login,
String password)
TestAutomationFinderServiceGiven the URL of the test automation server, and the credentials required to connect it, will return the list of project currently available on it. The credentials will be tested on the fly.
listProjectsOnServer in interface TestAutomationFinderServicepublic Collection<TestAutomationProjectContent> listTestsInProjects(Collection<org.squashtest.tm.domain.testautomation.TestAutomationProject> projects)
TestAutomationFinderServiceTestAutomationProject, will return the aggregated list of AutomatedTest
paired with their owner project.
listTestsInProjects in interface TestAutomationFinderService@PostFilter(value="hasPermission(filterObject, \'READ\') or hasRole(\'ROLE_ADMIN\')") @Transactional(readOnly=true) public List<org.squashtest.tm.domain.execution.Execution> findExecutionsByAutomatedTestSuiteId(String automatedTestSuiteId)
TestAutomationFinderService
findExecutionsByAutomatedTestSuiteId in interface TestAutomationFinderServicepublic org.squashtest.tm.domain.testautomation.TestAutomationProject persistOrAttach(org.squashtest.tm.domain.testautomation.TestAutomationProject newProject)
InsecureTestAutomationManagementService
Will persist the supplied remote TestAutomationProject. The argument must be attached to a TestAutomationServer
and return it using TestAutomationProject.getServer().
The service will first try to reattach the server and project instance to existing instance in the database (See org.squashtest.tm.domain.testautomation package info for more about this), then persist the unknown entities.
That method returns the persisted instance of TestAutomationProject, that should be used in place of the one supplied in arguments from now on by the client code. That method is idempotent : an attached entity won't be peristed again.
persistOrAttach in interface InsecureTestAutomationManagementServicepublic org.squashtest.tm.domain.testautomation.AutomatedTest persistOrAttach(org.squashtest.tm.domain.testautomation.AutomatedTest newTest)
InsecureTestAutomationManagementServicePretty much the same than InsecureTestAutomationManagementService.persistOrAttach(TestAutomationProject). The argument must be attached to a persisted and
session-bound TestAutomationProject.
Same principles and same results apply here
persistOrAttach in interface InsecureTestAutomationManagementServicepublic org.squashtest.tm.domain.testautomation.TestAutomationProject findProjectById(long projectId)
findProjectById in interface InsecureTestAutomationManagementServicepublic org.squashtest.tm.domain.testautomation.AutomatedTest findTestById(long testId)
findTestById in interface InsecureTestAutomationManagementServicepublic org.squashtest.tm.domain.testautomation.TestAutomationServer getDefaultServer()
InsecureTestAutomationManagementService
getDefaultServer in interface InsecureTestAutomationManagementServicepublic void startAutomatedSuite(org.squashtest.tm.domain.testautomation.AutomatedSuite suite)
InsecureTestAutomationManagementService
startAutomatedSuite in interface InsecureTestAutomationManagementServicepublic org.squashtest.tm.domain.testautomation.AutomatedSuite findAutomatedTestSuiteById(String suiteId)
findAutomatedTestSuiteById in interface TestAutomationFinderService
public void fetchAllResultURL(org.squashtest.tm.domain.testautomation.TestAutomationProject project,
org.squashtest.tm.domain.testautomation.AutomatedSuite suite)
InsecureTestAutomationManagementService
fetchAllResultURL in interface InsecureTestAutomationManagementService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||